Manta Bridge Manta Bridge
/ quick answer

How do developers use the Manta Bridge JS SDK for ETH and ERC-20 transfers?

A concise SDK method map for programmatic ETH and ERC-20 deposits and withdrawals between Ethereum and Manta Pacific.

Quick answer

Developers can use Manta's JS SDK example for programmatic bridge flows, while the everyday bridge app remains how most users connect a wallet and bridge directly. The official SDK doc confirms methods for depositing ETH, depositing ERC-20 tokens, withdrawing ETH, withdrawing ERC-20 tokens, proving a withdrawal message, and finalizing a withdrawal message. The doc also shows withdrawal status values, so backend tooling should track state instead of assuming a one-transaction exit.

SDKdepositETHwithdrawERC20prove / finalize

Does Manta provide an SDK for bridging programmatically?

Yes. Manta's docs include a JS SDK bridge example for ETH and ERC-20 transfers between Ethereum and Manta.

The official Manta JS SDK bridge documentation points to a repository example, installation, account setup, network selection, deposit methods, withdrawal methods, prove/finalize steps, and withdrawal status values.

Bridge actionDocumented method or stepDeveloper note
Deposit ETHdepositETH()Moves ETH from L1 to L2 in the SDK example.
Deposit ERC-20depositERC20()Requires token address and decimals configuration in the example.
Withdraw ETHwithdrawETH()Initiates L2-to-L1 withdrawal and returns a withdrawal transaction hash.
Withdraw ERC-20withdrawERC20()Initiates token withdrawal and returns a withdrawal transaction hash.
Prove withdrawalproveWithdrawMessage(withdrawTxhash)Called after the documented wait-to-prove interval.
Finalize withdrawalfinalizeWithdrawMessage(withdrawTxhash)Called when the withdrawal is ready to claim.

Do developers need to handle prove/finalize manually?

Yes. The SDK doc shows explicit prove and finalize calls for L2-to-L1 withdrawals.

The withdrawal section documents initiate withdrawal, wait, prove, wait again, and claim. It also lists status values including WAIT_TO_PROVE, READY_TO_PROVE, IN_CHALLENGE_PERIOD, READY_FOR_RELAY, and RELAYED. That makes state tracking important for any backend job, indexer, or user-facing bridge history panel.

For a non-SDK explanation of the same return flow, compare with prove and complete withdrawal guidance. For token setup, read how to list an ERC-20 on Manta Native Bridge.

Where is the SDK documented?

The SDK bridge example is documented in Manta's Native Bridge tools section, and token support is documented separately in the token-list page.

The token-list page matters because programmatic bridging still depends on the token being represented correctly on the native bridge. Manta's token-list documentation explains how token metadata is added to the mainnet token-list file. Contract references are linked from Manta Bridge contract addresses.

For user-facing scope and bridge basics, the native bridge FAQ remains the high-level source.

Build against state, not hope: use the SDK methods for deposits and withdrawals, then track prove and finalize status in Manta Bridge until the flow is complete.

Open Bridge

Does Manta provide an SDK for bridging programmatically?

Yes. Manta’s docs include a JS SDK bridge example for bridging tokens between Ethereum and Manta. The example covers setup, network selection, ETH deposits, ERC-20 deposits, withdrawals, prove, finalize, history, and status tracking.

What methods handle ETH deposits and withdrawals?

The SDK doc shows depositETH() for ETH deposits from L1 to L2 and withdrawETH() for initiating ETH withdrawals from L2 to L1. Withdrawal completion then uses the documented prove and finalize message calls.

What methods handle ERC-20 deposits and withdrawals?

The SDK doc shows depositERC20() for ERC-20 deposits and withdrawERC20() for ERC-20 withdrawals. The ERC-20 example requires token configuration, including corresponding token addresses and decimals.

Do developers need to handle the prove/finalize steps manually?

Yes. The SDK documentation shows proveWithdrawMessage(withdrawTxhash) and finalizeWithdrawMessage(withdrawTxhash) as explicit withdrawal steps. It also lists withdrawal status values, so applications should track state between initiation and completion.

Where is the SDK documented?

The SDK is documented in Manta Network’s Native Bridge tools section under the page titled “How to use JS SDK bridge token between Ethereum and Manta.” That official docs page is the source for method names and withdrawal status values.