Skip to main content
← Back to Learn

ERC-6909: The Multi-Token Standard for Efficient On-Chain Assets

ERC-6909 lets a single contract manage multiple token types with lower gas than ERC-1155. Here is how the standard works, how it differs from ERC-20 and ERC-1155, and when to use it.

If you have ever deployed a system that tracks multiple token types -- loyalty points, in-game items, fractional shares, receipt tokens -- you have probably hit the same wall. Deploy a separate ERC-20 for each token and you pay deployment gas N times. Deploy an ERC-1155 and you inherit mandatory callbacks, a single operator permission model, and a batch interface that may not fit your use case. ERC-6909 is a public EIP that strips the multi-token interface down to its minimum, removing callbacks and batching from the required surface area and adding a hybrid permission model.

This article walks through the EIP-6909 specification as published, compares it against ERC-20 and ERC-1155, and lays out when each standard is the right tool. Every code sample below is drawn directly from the public EIP text or OpenZeppelin's public implementation. No proprietary architecture is described here.

What Problem ERC-6909 Solves

The core problem is multiplicity. When a single logical system needs to represent many distinct token types, deploying one contract per token is expensive and operationally complex. Each contract needs its own deployment, its own approvals, its own event indexing. ERC-1155 solved this by letting a single contract manage multiple token IDs, but it came with design decisions that have been second-guessed since its publication in 2018.

ERC-6909, authored by JT Riley, Dillon, Sara Reynolds, Vectorized, and Neodaoist, and merged into the EIPs repository in June 2023, takes the multi-token concept and reduces the required interface to the bare minimum. The EIP abstract states it plainly: "a multi-token contract as a simplified alternative to the ERC-1155 Multi-Token Standard. In contrast to ERC-1155, callbacks and batching have been removed from the interface and the permission system is a hybrid operator-approval scheme for granular and scalable permissions."

The three things removed from ERC-1155 are:

  1. Mandatory callbacks. ERC-1155 requires that any transfer to a contract account calls onERC1155Received (or onERC1155BatchReceived) on the recipient and checks the return value. This forces an external call on every transfer to a contract, even when the recipient has no use for the callback. ERC-6909 makes no such requirement.

  2. Batch operations in the interface. ERC-1155 bakes batchTransfer and related batch methods into the standard. ERC-6909 deliberately omits batching from the required interface, leaving it to implementations to choose their own batch encoding. The EIP rationale notes this is "especially useful for specific applications such as roll-ups that commit calldata to global storage," where a custom ABI encoding can minimize calldata cost.

  3. Single operator-only permissions. ERC-1155 has one permission model: set an operator, and that operator can transfer any amount of any token ID. ERC-6909 adds a per-token-ID allowance model alongside the operator model, giving you both granular and broad permissions.

The Interface

Every ERC-6909 compliant contract must implement ERC-165 (the standard interface detection mechanism) in addition to the following interface. The interface ID is 0x0f632fb3.

Here is the interface as defined in the EIP and implemented in OpenZeppelin's public contracts (v5.x):

interface IERC6909 is IERC165 {
    event Approval(address indexed owner, address indexed spender, uint256 indexed id, uint256 amount);
    event OperatorSet(address indexed owner, address indexed spender, bool approved);
    event Transfer(address caller, address indexed sender, address indexed receiver, uint256 indexed id, uint256 amount);

    function balanceOf(address owner, uint256 id) external view returns (uint256);
    function allowance(address owner, address spender, uint256 id) external view returns (uint256);
    function isOperator(address owner, address spender) external view returns (bool);
    function approve(address spender, uint256 id, uint256 amount) external returns (bool);
    function setOperator(address spender, bool approved) external returns (bool);
    function transfer(address receiver, uint256 id, uint256 amount) external returns (bool);
    function transferFrom(address sender, address receiver, uint256 id, uint256 amount) external returns (bool);
}

That is the entire required surface. Seven functions, three events. Compare this to ERC-1155, which requires eleven functions (including safeBatchTransferFrom, balanceOfBatch, and uri) and two events.

Balance and Allowance

balanceOf(address owner, uint256 id) returns the amount of a specific token ID owned by an address. This is the multi-token equivalent of ERC-20's balanceOf(address), with an added id parameter.

allowance(address owner, address spender, uint256 id) returns the amount of a specific token ID that a spender is permitted to transfer on behalf of an owner. This mirrors ERC-20's allowance model but scopes it to a single token ID. The EIP notes that this does not include operator allowances -- operator status is checked separately via isOperator.

Operator Model

isOperator(address owner, address spender) returns true if the spender has been granted operator status for the owner. An operator has unlimited transfer permissions for all token IDs on behalf of that owner. This is the ERC-1155-style broad permission, preserved as an option.

setOperator(address spender, bool approved) grants or revokes operator status. The EIP specifies that this MUST log the OperatorSet event and MUST return true. The approved parameter is a boolean -- true to grant, false to revoke.

Transfer Functions

transfer(address receiver, uint256 id, uint256 amount) moves tokens from the caller to a receiver. The EIP requires that it revert on insufficient balance, log the Transfer event, and return true. Notably, there is no "safe" variant -- no callback to the receiver. The naming convention safeTransfer from ERC-1155 and ERC-721 is deliberately removed. The EIP rationale states: "The combination of removing mandatory callbacks and removing the word 'safe' from all method names improves the safety of the control flow by default." The argument is that the "safe" naming was misleading because it actually introduced an external call to untrusted code.

transferFrom(address sender, address receiver, uint256 id, uint256 amount) moves tokens on behalf of another account. The caller must be either the sender, an operator for the sender, or have sufficient allowance for the token ID. The EIP specifies precise allowance decrement rules: the allowance is decreased by the transfer amount unless the caller is an operator, is the sender, or the allowance is infinite (defined as 2 ** 256 - 1). This prevents the well-known infinite-approval-decrement bug where setting max allowance and then transferring causes an underflow.

Approve

approve(address spender, uint256 id, uint256 amount) sets the allowance for a specific token ID. An amount of type(uint256).max signifies unlimited approval for that ID. This is per-token-ID granularity, which ERC-1155 lacks entirely.

Events

Three events are defined:

  • Transfer -- Emitted on any transfer, mint (sender is zero address), or burn (receiver is zero address). The caller field is not indexed but records who initiated the transfer, which is useful for audit trails. The sender, receiver, and id are indexed.
  • OperatorSet -- Emitted when operator status is granted or revoked. owner and spender are indexed; approved is not.
  • Approval -- Emitted when a per-token-ID allowance is set. owner, spender, and id are indexed; amount is not.

Optional Extensions

The EIP defines three optional extensions that implementations may include:

Metadata Extension

Adds name(uint256 id), symbol(uint256 id), and decimals(uint256 id) functions, each taking a token ID parameter. This lets each token ID within a single contract have its own human-readable metadata. The base ERC-6909 does not include decimals -- the default is 0 -- so if your tokens are fungible with fractional units, you need this extension.

Content URI Extension

Adds contractURI() and uri(uint256 id) functions for off-chain metadata. The uri function follows the ERC-1155 convention of substituting {id} in the URI string with the actual token ID, allowing clients to fetch metadata per token.

Token Supply Extension

Adds totalSupply(uint256 id) to track the total supply of each token ID. The base standard does not require supply tracking, which saves storage for use cases where it is unnecessary.

Reference Implementation

The EIP includes a reference implementation. Here is the core transfer logic from the public EIP text:

function transfer(address receiver, uint256 id, uint256 amount) public returns (bool) {
    if (balanceOf[msg.sender][id] < amount) revert InsufficientBalance(msg.sender, id);
    balanceOf[msg.sender][id] -= amount;
    balanceOf[receiver][id] += amount;
    emit Transfer(msg.sender, msg.sender, receiver, id, amount);
    return true;
}

function transferFrom(address sender, address receiver, uint256 id, uint256 amount) public returns (bool) {
    if (sender != msg.sender && !isOperator[sender][msg.sender]) {
        uint256 senderAllowance = allowance[sender][msg.sender][id];
        if (senderAllowance < amount) revert InsufficientPermission(msg.sender, id);
        if (senderAllowance != type(uint256).max) {
            allowance[sender][msg.sender][id] = senderAllowance - amount;
        }
    }
    if (balanceOf[sender][id] < amount) revert InsufficientBalance(sender, id);
    balanceOf[sender][id] -= amount;
    balanceOf[receiver][id] += amount;
    emit Transfer(msg.sender, sender, receiver, id, amount);
    return true;
}

The storage layout uses three mappings: balanceOf (owner => id => amount), allowance (owner => spender => id => amount), and isOperator (owner => spender => bool). This is the minimal state required to support the interface.

OpenZeppelin provides a production-grade implementation in their v5.x contracts at @openzeppelin/contracts/token/ERC6909/ERC6909.sol, along with the metadata, content URI, and token supply extensions. Their implementation uses custom errors (ERC6909InsufficientBalance, ERC6909InsufficientAllowance, etc.) instead of revert strings for gas efficiency.

ERC-6909 vs ERC-20

ERC-20 is the standard for single-token fungible contracts. One contract, one token, one balance mapping. It is the most widely supported standard in the ecosystem -- every major wallet, exchange, and indexer handles ERC-20 out of the box.

Use ERC-20 when:

  • You have exactly one token type per contract.
  • You need maximum ecosystem compatibility (wallets, DEXs, indexers).
  • The overhead of a per-token-ID parameter on every call is wasteful.

Use ERC-6909 when:

  • You have multiple token types that share a logical system (receipt tokens for different assets, loyalty tiers, game items).
  • You want to avoid deploying N separate contracts.
  • You need per-token-ID allowances, which ERC-20 does not have because it only has one token.

The tradeoff is ecosystem support. ERC-20 is universally supported. ERC-6909 is newer and less widely integrated. If your token needs to be tradable on existing DEXs or displayable in every wallet, ERC-20 remains the safer choice. If you control the consumption layer and want gas efficiency across many token types, ERC-6909 is worth evaluating.

ERC-6909 vs ERC-1155

This is the more direct comparison, since both standards manage multiple token types in a single contract.

Feature ERC-1155 ERC-6909
Callbacks on transfer Required (onERC1155Received) Not required
Batch transfers Required in interface Not in interface (implementation-specific)
Permission model Operator only Hybrid: per-ID allowance + operator
Per-token-ID allowance No Yes
Interface size 11 functions, 2 events 7 functions, 3 events
"Safe" naming safeTransferFrom transfer / transferFrom
ERC-165 required Yes Yes

The gas savings from ERC-6909 come primarily from two sources. First, removing mandatory callbacks eliminates an external call on every transfer to a contract recipient. External calls cost at least 2,600 gas (cold account access) plus the cost of executing the callback logic. Second, the smaller interface means smaller contract bytecode, which reduces deployment cost and can reduce runtime gas for function dispatch.

The EIP rationale is explicit about why batching was removed: "While batching operations is useful, its place should not be in the standard itself, but rather on a case-by-case basis. This allows for different tradeoffs to be made in terms of calldata layout, which may be especially useful for specific applications such as roll-ups that commit calldata to global storage." Different L2s have different calldata economics, and a one-size-fits-all batch encoding may be suboptimal.

The hybrid permission model is the other major differentiator. In ERC-1155, if you want to let a spender transfer tokens on your behalf, you must grant them operator status -- which gives them unlimited access to all your token IDs. There is no way to say "you can transfer up to 100 of token ID 3 but nothing else." ERC-6909 gives you both options: approve for per-ID limits, setOperator for blanket access.

When to Use ERC-6909

Based on the EIP design and the public documentation, ERC-6909 is a good fit for:

Multi-asset receipt systems. If you are issuing receipt tokens for deposits of different underlying assets, a single ERC-6909 contract can manage all receipt IDs. Each asset gets its own token ID, and the per-ID allowance model lets you approve specific spenders for specific receipts.

Game economies. The OpenZeppelin documentation uses a game items example where gold, silver, a unique hammer, swords, and shields are all different token IDs in one contract. Each can have different decimals (fungible vs semi-fungible), and the contract manages all balances in a single deployment.

Loyalty and rewards programs. Multiple point types (bronze, silver, gold tiers; partner-specific points) can live in one contract with per-ID metadata, and the same multi-token efficiency applies to RWA credit protocols that manage multiple asset tranches.

Tokenized portfolios. If you are representing fractional ownership of multiple assets under a single management contract, ERC-6909 can issue one token ID per underlying asset, a pattern also seen in RWA credit protocol architectures.

ERC-6909 is less suitable when you need the callback mechanism for safety (e.g., preventing tokens from being locked in contracts that do not support them). The EIP's position is that callbacks should be opt-in, not mandatory, and that implementors who want callbacks can add them as an extension. If your threat model requires mandatory receiver validation, ERC-1155's enforced callbacks may be preferable despite the gas cost.

Security Considerations

The EIP includes a security considerations section focused on approvals and operators. The key points:

  • Infinite allowance is represented as type(uint256).max. The standard specifies that infinite allowances SHOULD NOT be decremented on transfer, which prevents the underflow bug that affected some early ERC-20 implementations.
  • Operator permissions are broad. Setting an operator grants unlimited transfer rights for all token IDs. Implementors should make this clear in their UI and documentation.
  • No callback means no receiver validation. Transfers to contracts that do not expect ERC-6909 tokens will succeed silently. Users can lose tokens by sending them to contracts that have no mechanism to handle them. This is the same risk as ERC-20's transfer function (as opposed to safeTransfer).

The EIP also notes that backwards compatibility with ERC-1155 is not preserved -- some methods are removed. However, wrappers can be implemented for ERC-20, ERC-721, and ERC-1155, meaning an ERC-6909 contract can expose compatibility interfaces for legacy integrations.

Implementation Checklist

If you are implementing ERC-6909, here is what you need:

  1. Implement ERC-165 (supportsInterface returning true for 0x0f632fb3).
  2. Implement all seven required functions with the exact signatures from the EIP.
  3. Emit the correct events on every state change.
  4. Handle the infinite allowance edge case (do not decrement type(uint256).max).
  5. Decide which optional extensions you need (metadata, content URI, token supply).
  6. If you need batching, implement it as an extension with your own ABI encoding -- do not expect the standard interface to provide it.
  7. If you need receiver callbacks, implement them as an opt-in extension rather than a mandatory requirement.

OpenZeppelin's implementation is the most audited reference. Their ERC6909 base contract, along with ERC6909Metadata, ERC6909ContentURI, and ERC6909TokenSupply extensions, covers the full EIP surface area and is available under the MIT license.

Summary

ERC-6909 is a minimal multi-token standard that reduces the required interface from ERC-1155 by removing mandatory callbacks, removing batch operations from the core interface, and adding a hybrid permission model with both per-token-ID allowances and operator-level broad permissions. The result is a smaller contract surface, lower gas costs for transfers to contracts, and more granular access control.

It is not a replacement for ERC-20 in single-token scenarios where ecosystem compatibility is paramount. It is not a drop-in replacement for ERC-1155 where mandatory callbacks are a hard requirement. It is a tool for systems that need to manage many token types efficiently in a single contract and want the flexibility to choose their own batching strategy and callback behavior.

The EIP is public, the reference implementation is public, and OpenZeppelin's production implementation is public. All technical details in this article are drawn from those sources. If you are building multi-token systems for tokenized credit, the EIP-6909 specification and OpenZeppelin's documentation are the primary references to consult.

Frequently Asked Questions

What is ERC-6909?

ERC-6909 is an Ethereum token standard for multi-token contracts that allows a single contract to manage multiple fungible token types, each identified by a uint256 token ID. It combines the batch transfer efficiency of multi-token standards with the simplicity of fungible accounting, where each token ID has its own supply and balance mapping. The standard was proposed to reduce the deployment overhead and integration complexity of managing many distinct token types in one contract. It is an open standard documented as an Ethereum Improvement Proposal.

How does ERC-6909 differ from ERC-1155?

ERC-1155 was designed primarily for semi-fungible and non-fungible tokens in gaming contexts, while ERC-6909 is optimized for fungible token management within a single contract. ERC-6909 simplifies the interface by removing the URI metadata management that ERC-1155 includes and by using a more gas-efficient balance and transfer structure. Both standards manage multiple token IDs in one contract, but ERC-6909 focuses on the fungible use case where each ID represents a distinct fungible currency or unit. The result is a leaner interface with lower gas costs for pure fungible multi-token scenarios.

What is a multi-token contract?

A multi-token contract is a single smart contract that manages several distinct token types, each tracked by a unique identifier, rather than deploying a separate contract per token. This pattern reduces deployment costs, simplifies integration for consumers that handle many related tokens, and enables atomic batch transfers across token types. Multi-token contracts are useful for systems like exchanges, lending protocols, or loyalty platforms that issue many related fungible tokens. ERC-6909 and ERC-1155 are the two main standards for this pattern on Ethereum.

What are the gas savings of ERC-6909?

ERC-6909 reduces gas costs relative to deploying separate ERC-20 contracts by consolidating all token types into a single contract, eliminating per-token deployment and approval overhead. Batch transfers of multiple token types in a single transaction save gas compared to multiple separate ERC-20 transfers, because the per-transaction overhead of base gas cost and storage access is amortized. The standard's simplified interface also reduces the calldata and execution cost of individual operations. Exact savings depend on the number of token types and transfer patterns, but the consolidation benefit scales with the number of tokens managed.

When should you use ERC-6909?

You should use ERC-6909 when a single application needs to manage many distinct fungible token types and the overhead of deploying separate ERC-20 contracts is prohibitive. Common scenarios include loyalty point systems with many denominations, prediction markets with many outcome tokens, and internal accounting systems that track many parallel balances. If you only need a single fungible token, a standard ERC-20 is simpler and more widely supported. If you need mixed fungible and non-fungible tokens with rich metadata, ERC-1155 may be more appropriate.

Put it to work

The research above powers the product — try it or compare it: