Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
ERC-7802 proposes a minimal interface that lets bridge contracts mint and burn tokens in a consistent way when transferring tokens across chains.
This article translates, summarizes, and expands on the specification linked below.
I also cover a variety of EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.
Overview
ERC-7802 defines a minimal interface, IERC7802, for bridge contracts to mint and burn tokens during crosschain transfers.
The standard defines two functions, crosschainMint and crosschainBurn, and two events, CrosschainMint and CrosschainBurn.
This allows offchain monitoring tools to index crosschain activity deterministically.
ERC-7802 is fully compatible with ERC-20 tokens and can be adopted by existing tokens.
For background on ERC-20, see the following article.
[ERC-20] An Introduction to ERC-20
Non-upgradeable tokens can migrate using a lockbox mechanism.
Motivation
Several issues motivated this proposal.
Canonical Bridges
Rollups and several prominent sidechains implement canonical bridges whose security is integrated into the network's core architecture. These bridges generally do not have permission to mint or burn the original token.
A canonical bridge is a standard bridge officially provided by a rollup or sidechain. Its security is directly integrated into the network's security model, unlike third-party bridges, and it is trusted at the protocol level.
The usual approach is therefore to lock or unlock liquidity on the native chain and mint or burn wrapped tokens on another chain.
A wrapped token is issued on another chain to represent the original token at a one-to-one ratio. For example, bridging USDC from Ethereum to Optimism can result in a wrapped token issued as Bridged USDC on Optimism. It has a different contract address from the original USDC and is not strictly the same token.
Minting and burning are used because the native token does not exist on that chain and a new representation must be created.
Interface Fragmentation
Different bridges implement different interfaces for minting and burning on non-native chains. This fragmentation is a significant problem for crosschain interoperability.
| Problem | Impact |
|---|---|
| Inconsistent function names | Token contracts depend on specific bridges |
| Different parameter formats | Adding another bridge later is difficult |
| Inconsistent event formats | Offchain tracking becomes more complicated |
Earlier Standardization Attempts
There have been previous attempts to standardize token bridging interfaces. However, third-party providers have also developed their own crosschain token frameworks.
Each framework defines features such as rate limits and fee switches, along with its own minting and burning functions. As a result, naming conventions and structures are inconsistent, and the interfaces are highly specialized.
The ERC-7802 Approach
ERC-7802 proposes the most relevant minimal set of actions shared by most standards. These actions do not require governance or owner participation, unlike configuring a rate limit, for example.
| Solution | Effect |
|---|---|
| Standardized minting and burning | Enables token issuance compatible with multiple bridges |
| Standardized events | Allows indexers, analytics tools, and auditors to track activity consistently |
| Minimal interface | Provides a foundation for extensions |
Specification
Interface Definition
The complete definition of the IERC7802 interface is shown below.
interface IERC7802 {
/// @notice クロスチェーンmintが完了した時に発行されるイベント
/// @param _to トークンを受け取るアドレス
/// @param _amount mintされるトークン量
/// @param _sender mint操作を開始したブリッジコントラクトのアドレス
event CrosschainMint(address indexed _to, uint256 _amount, address indexed _sender);
/// @notice クロスチェーンburnが完了した時に発行されるイベント
/// @param _from トークンがburnされるアドレス
/// @param _amount burnされるトークン量
/// @param _sender burn操作を開始したブリッジコントラクトのアドレス
event CrosschainBurn(address indexed _from, uint256 _amount, address indexed _sender);
/// @notice クロスチェーン転送でトークンをmintするためにブリッジが呼び出す関数
/// @param _account トークンを受け取るアドレス
/// @param _amount mintするトークン量
function crosschainMint(address _account, uint256 _amount) external;
/// @notice クロスチェーン転送でトークンをburnするためにブリッジが呼び出す関数
/// @param _account トークンがburnされるアドレス
/// @param _amount burnするトークン量
function crosschainBurn(address _account, uint256 _amount) external;
}The interface defines only the minimum functionality needed for crosschain transfers. Bridge-specific logic resides in the bridge contract, keeping the token contract simple.
Interface ID
The ERC-165 interface ID is 0x33331994.
It is calculated by XORing the two function selectors.
crosschainMint(address,uint256) XOR crosschainBurn(address,uint256) = 0x33331994A token contract can signal support for ERC-7802 by returning true from supportsInterface for this ID.
For background on ERC-165, see the following article.
[ERC-165] How to Check Whether a Contract Supports an Interface
Functions
crosschainMint
function crosschainMint(address _account, uint256 _amount) external;This is the entry point for a bridge contract to mint tokens during a crosschain transfer.
Calling this function mints the specified amount of tokens to the specified address.
The implementation must emit the standard ERC-20 Transfer event from address(0).
It must also emit the CrosschainMint event.
| Parameter | Type | Description |
|---|---|---|
_account |
address | Address receiving the tokens |
_amount |
uint256 | Amount of tokens to mint |
crosschainBurn
function crosschainBurn(address _account, uint256 _amount) external;This is the entry point for a bridge contract to burn tokens during a crosschain transfer.
Calling this function burns the specified amount of tokens from the specified address.
Following ERC-5679, emitting a Transfer event to address(0) is recommended.
The implementation must also emit the CrosschainBurn event.
| Parameter | Type | Description |
|---|---|---|
_account |
address | Address whose tokens are burned |
_amount |
uint256 | Amount of tokens to burn |
Events
CrosschainMint
event CrosschainMint(address indexed _to, uint256 _amount, address indexed _sender);This event is emitted when a crosschain mint operation succeeds.
It allows offchain indexers and analytics tools to track crosschain minting.
The _sender parameter identifies which bridge performed the mint operation.
| Parameter | Type | Indexed | Description |
|---|---|---|---|
_to |
address | yes | Address receiving the tokens |
_amount |
uint256 | no | Amount of tokens minted |
_sender |
address | yes | Bridge contract that performed the mint operation |
CrosschainBurn
event CrosschainBurn(address indexed _from, uint256 _amount, address indexed _sender);This event is emitted when a crosschain burn operation succeeds.
It allows offchain indexers and analytics tools to track crosschain burning.
The _sender parameter identifies which bridge performed the burn operation.
| Parameter | Type | Indexed | Description |
|---|---|---|---|
_from |
address | yes | Address whose tokens were burned |
_amount |
uint256 | no | Amount of tokens burned |
_sender |
address | yes | Bridge contract that performed the burn operation |
Rationale
Design Principles
The key design decisions behind ERC-7802 are bridge independence and extensibility.
Bridge Independence
The interface is designed so that the bridge, rather than the token, contains the logic for handling crosschain actions. Maintaining this separation of concerns keeps the token contract simple, reduces its attack surface, and makes auditing and upgrading easier.
Implementing the proposed interface allows tokens to support a variety of bridge designs.
| Bridge type | Behavior |
|---|---|
| Lock/unlock bridge | Can continue operating as before, without modifying the token |
| Burn/mint bridge | Can use a generic, minimal interface without bridge-specific token representations |
Extensibility
The minimal interface serves as a foundation on which other standards can be built. Token issuers and bridge contracts can add functionality such as mint and burn limits or crosschain transfer fees without changing the core interface.
The interface is intentionally neutral and does not impose the following requirements.
| Area | Description |
|---|---|
| Access control | The token issuer decides who may call crosschainMint and crosschainBurn |
| Zero-amount calls | The token issuer decides whether to allow or revert calls with a zero amount |
Separating Local and Crosschain Minting and Burning
Different Operations
Local minting and burning differ fundamentally from crosschain minting and burning.
| Type | Characteristics |
|---|---|
| Local minting and burning | Changes total supply by creating or destroying tokens |
| Crosschain minting and burning | Intended to preserve aggregate circulating supply across chains by moving tokens between them |
The actor that mints and burns tokens during crosschain transfers differs fundamentally from the token owner. It therefore makes sense for the two actors to have different permissions. Crosschain actions may require distinct checks, access controls, and logic, such as mint and burn limits.
Separation of Concerns
Combining local and crosschain minting and burning into the same functions can produce a complex implementation with intertwined operational logic. Separating the two makes the codebase clearer and easier to maintain.
This separation is particularly important in the following areas.
| Area | Effect |
|---|---|
| Upgrades | Changes to access controls, limits, or logic can affect only the separate crosschain functions without modifying standard local minting and burning |
| Integration with different chains | An ERC-20 token can implement the ERC-7802 extension with access controls appropriate to each chain |
For example, when integrating with Optimism, the ERC-20 token grants access to the Optimism bridge. When integrating with Arbitrum, it grants access to the Arbitrum bridge. The local mint and burn functions remain unchanged. Dedicated crosschain functions avoid changes to the base implementation for each chain, allowing a more modular approach.
Dedicated Events
Similar reasoning applies to having events dedicated to crosschain operations. This separation greatly simplifies the work of indexers, analytics tools, and auditors. They can directly track crosschain activity, detect anomalies, and monitor bridge operations.
If crosschain and local events are indistinguishable, offchain agents must implement complex logic to tell them apart, increasing the chance of errors and inefficiencies.
ERC-165 Interface
Including ERC-165 provides an additional security check for integrators.
By exposing the interface identifier through supportsInterface, a caller can programmatically check whether a token declares support for IERC7802.
A compliant implementation must support both crosschainMint and crosschainBurn; the interface check is intended to verify that both are supported.
This helps prevent integrations with incomplete implementations that provide only one of the functions. However, an incorrect or dishonest supportsInterface implementation can still misreport support.
An incomplete implementation could cause a crosschain operation to fail, for example when users burn tokens to bridge out but cannot mint tokens on their return.
Note that this check can only be performed locally on the chain where the token contract exists.
There is no inherent guarantee that the token on the receiving chain also supports IERC7802.
Ensuring consistent interface support across chains is the responsibility of the bridge implementation.
Crosschain Transfer Flow
A typical crosschain transfer proceeds as follows. The original diagram is retained, including its Japanese labels.
sequenceDiagram
participant User as ユーザー
participant TokenA as トークン(チェーンA)
participant BridgeA as ブリッジ(チェーンA)
participant BridgeB as ブリッジ(チェーンB)
participant TokenB as トークン(チェーンB)
User->>BridgeA: 転送リクエスト
BridgeA->>TokenA: crosschainBurn(user, amount)
TokenA-->>BridgeA: CrosschainBurnイベント発行
BridgeA->>BridgeB: クロスチェーンメッセージ
BridgeB->>TokenB: crosschainMint(user, amount)
TokenB-->>BridgeB: CrosschainMintイベント発行
TokenB-->>User: トークン受け取り
When a user requests a transfer through a bridge on chain A, the bridge calls crosschainBurn on the token contract.
After burning is complete, the bridge sends a crosschain message to chain B, where the destination bridge calls crosschainMint to issue the tokens.
Backward Compatibility
ERC-7802 is fully compatible with ERC-20. It extends existing ERC-20 functionality without changing existing token behavior.
As discussed in the motivation section, a minimal, flexible standard crosschain interface is needed. The problem grows as more tokens are deployed without a standardized format.
Support by Token Type
| Token type | Adoption approach |
|---|---|
| Upgradeable tokens | Can be upgraded to implement the new interface |
| Non-upgradeable tokens | Cannot add the interface directly to the existing token contract |
Migrating Non-Upgradeable Tokens
Non-upgradeable tokens can migrate to a standard-compliant representation using the lockbox mechanism proposed by xERC-20.
The lockbox mechanism works as follows.
- Lock the tokens that cannot be minted.
- Mint an equivalent amount of tokens implementing the interface.
- The bridge contract can act as a lockbox on the native chain.
This adds crosschain functionality without modifying the existing token contract.
Updating Bridge Contracts
Bridge contracts may also need to be upgraded to integrate the interface.
Security
Security Considerations
Keep the following security considerations in mind when implementing ERC-7802.
Access Control (Permissions)
Token issuers are responsible for controlling which contracts are authorized to call crosschainMint and crosschainBurn.
Buggy or malicious authorized callers can mint or burn tokens improperly, harm token holders, and disrupt integrations.
| Risk | Impact |
|---|---|
| Authorizing a malicious caller | Potentially unlimited token issuance |
| Authorizing a buggy contract | Improper burning of user assets |
Limiting Losses
One way to minimize potential losses is to introduce mint and burn limits, such as those proposed by xERC-20. These features are fully compatible with the proposed interface.
| Mitigation | Effect |
|---|---|
| Mint and burn limits | Limit the amount minted and burned within a period to contain potential damage |
| Rate limits | Detect or prevent unusually large operations, depending on the implementation |
Wrapped Native Tokens
The standard should not be used for wrapped native tokens such as WETH. If the bridge does not control the underlying asset, this can lead to uncollateralized minting.
The only safe exception is when the bridge can symmetrically burn and mint native tokens on both chains and ensure proper collateralization.
For example, if WETH is issued on chain B through crosschainMint, the corresponding ETH must be locked on chain A to maintain backing. This does not by itself guarantee the full symmetric native-token control required by the specification.
Reference Implementation
The following is a reference implementation of ERC-7802.
IERC7802 Interface
First, define the IERC7802 interface.
// SPDX-License-Identifier: CC0-1.0
pragma solidity 0.8.25;
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
/// @title IERC7802
/// @notice クロスチェーンERC20転送のためのインターフェースを定義
interface IERC7802 is IERC165 {
/// @notice クロスチェーン転送でトークンがmintされた時に発行
/// @param to トークンがmintされるアカウントのアドレス
/// @param amount mintされるトークン量
/// @param sender crosschainMintを呼び出した呼び出し元(msg.sender)のアドレス
event CrosschainMint(address indexed to, uint256 amount, address indexed sender);
/// @notice クロスチェーン転送でトークンがburnされた時に発行
/// @param from トークンがburnされるアカウントのアドレス
/// @param amount burnされるトークン量
/// @param sender crosschainBurnを呼び出した呼び出し元(msg.sender)のアドレス
event CrosschainBurn(address indexed from, uint256 amount, address indexed sender);
/// @notice クロスチェーン転送でトークンをmint
/// @param _to トークンをmintするアドレス
/// @param _amount mintするトークン量
function crosschainMint(address _to, uint256 _amount) external;
/// @notice クロスチェーン転送でトークンをburn
/// @param _from トークンをburnするアドレス
/// @param _amount burnするトークン量
function crosschainBurn(address _from, uint256 _amount) external;
}This interface inherits IERC165, enabling interface detection through supportsInterface.
CrosschainERC20 Implementation
Here is an example of a token contract implementing the interface.
// SPDX-License-Identifier: CC0-1.0
pragma solidity 0.8.25;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract CrosschainERC20 is ERC20, IERC7802 {
/// @notice トークンのmint/burnが許可されたTOKEN_BRIDGEコントラクトのアドレス
address public immutable TOKEN_BRIDGE;
/// @notice 認可されていないアクセスに対するカスタムエラー
error Unauthorized();
/// @notice TOKEN_BRIDGEアドレスを設定するコンストラクタ
/// @param _tokenBridge TOKEN_BRIDGEのアドレス
constructor(address _tokenBridge, string memory name, string memory symbol) ERC20(name, symbol) {
require(_tokenBridge != address(0), "Invalid TOKEN_BRIDGE address");
TOKEN_BRIDGE = _tokenBridge;
}
/// @notice TOKEN_BRIDGEのみが呼び出せるようにする修飾子
modifier onlyTokenBridge() {
if (msg.sender != TOKEN_BRIDGE) revert Unauthorized();
_;
}
/// @notice TOKEN_BRIDGEがトークンをmintできるようにする
/// @param _to トークンをmintするアドレス
/// @param _amount mintするトークン量
function crosschainMint(address _to, uint256 _amount) external onlyTokenBridge {
_mint(_to, _amount);
emit CrosschainMint(_to, _amount, msg.sender);
}
/// @notice TOKEN_BRIDGEがトークンをburnできるようにする
/// @param _from トークンをburnするアドレス
/// @param _amount burnするトークン量
function crosschainBurn(address _from, uint256 _amount) external onlyTokenBridge {
_burn(_from, _amount);
emit CrosschainBurn(_from, _amount, msg.sender);
}
function supportsInterface(bytes4 interfaceId) external pure override returns (bool) {
return interfaceId == type(IERC7802).interfaceId || interfaceId == type(IERC165).interfaceId;
}
}The implementation has the following characteristics.
| Feature | Description |
|---|---|
Immutable TOKEN_BRIDGE |
Prevents changes after deployment, reducing the risk of unauthorized bridge replacement |
onlyTokenBridge modifier |
Only the authorized bridge can mint and burn through the crosschain entry points |
Custom error Unauthorized |
Gas-efficient error handling |
| Zero-address check in the constructor | Prevents configuration with a zero bridge address |
_mint and _burn use internal functions inherited from OpenZeppelin's ERC20, which also emit the standard Transfer event.
The supportsInterface function follows ERC-165 and reports support for the ERC-7802 interface ID.
References
Conclusion
This article covered the standardization of crosschain token interfaces through ERC-7802. The standard separates crosschain operations from local token supply management while providing a common interface for bridges.
If you have questions, feel free to send me a direct message on Twitter.
I also publish content on other platforms.



