Skip to main content

ERC-721 interaction

Standard ERC-721 contracts work on Sei without modification. This page shows how to read token ownership, transfer NFTs, and manage approvals.

Try it: deploy an ERC-721

Compile and deploy a real ERC-721 to Sei Testnet from the browser. The Remix sandbox preloads an OpenZeppelin-based DemoNFT with a public mint() function. Then use the patterns below with your deployed address. First, add Sei Testnet to your wallet: In Remix, compile the contract on the Solidity Compiler tab. Then deploy it from the Deploy & Run tab with Environment set to Injected Provider - MetaMask.

Setup

Reading token data

Checking ownership count

Transferring an NFT

Approving a single token

Approving all tokens (operator)

Watching transfer events

CosmWasm NFT compatibility

CW721 tokens on Sei have ERC-721 pointer contracts that expose the standard ERC-721 interface. You can use all of the patterns above with a CW721 pointer address. To look up the pointer address, see Pointer Contracts.