Skip to main content

ERC-1155 Interaction

ERC-1155 is the multi-token standard — a single contract can hold both fungible tokens (like gold coins in a game) and non-fungible tokens (like unique items), with efficient batch operations built in. Standard ERC-1155 contracts work on Sei without modification.

Try it: deploy an ERC-1155

Compile and deploy a real ERC-1155 to Sei testnet from the browser — the Remix sandbox preloads an OpenZeppelin-based DemoMultiToken with a public mint(id, amount). Then point the read/write patterns below at your deployed address. First, add Sei testnet to your wallet: In Remix, compile under Solidity Compiler, then Deploy & Run with Environment set to Injected Provider — MetaMask.

Setup

Reading a Single Balance

Batch Balance Query

balanceOfBatch retrieves multiple owner/ID pairs in one call — the most efficient way to load a user’s inventory:

Reading Token Metadata URI

viem

Transferring a Single Token

Batch Transfer

Send multiple token IDs in a single transaction:

Operator Approval

Watching Transfer Events