Comment on page
Mantle Bridge API
A guide on using the Mantle Bridge API to move assets and data between Layer 1 and Layer 2
The Mantle SDK implements methods to make contract calls for both:
- Locking $MNT/ERC20/ERC721 tokens on Layer 1 (L1) and minting equivalent tokens on Layer 2 (L2)
- Locking $MNT/ERC20/ERC721 tokens on L2 and minting equivalent tokens on L1
The Mantle Bridge is composed of two main contracts:
You can follow the links below to refer step-by-step guides on how to use the Mantle SDK to bridge assets between Mantle network and Ethereum.
$MNT/$ETH/ERC20/ERC721 token deposits into L2 from the Ethereum mainnet can be triggered using the following SDK methods.
You must first approve the Mantle Bridge to use the amount of $MNT/$ETH/ERC20/ERC721 tokens that you are moving to L2, or the deposit will fail.
$ETH deposits can alternatively be triggered by sending $ETH directly to the L1StandardBridge. Your account will be funded with the corresponding amount once the transaction is detected and finalized.
$MNT/$ETH/ERC20/ERC721 token withdrawals from L2 to the Ethereum mainnet can be triggered using the following SDK methods.
All withdrawals use $MNT for gas fees.
The Mantle Bridge allows a one-to-many mapping between L1 and L2 tokens, meaning that there can be multiple Mantle implementations of an L1 token.
If you want to have your token added to the token list, you'll need to make a pull request against the Mantle token list repository . You'll need the addresses for both the L1 and L2 tokens, as well as a logo for the token.
Contracts on Mantle can invoke contract functions on Ethereum, and vice versa. This enables dApps on Mantle and Ethereum to interact with each other.