Skip to the article
NewsCrypto

Crypto markets, protocols and regulation

Why Does My Bridge Need ERC-20 Approval First?

Why bridging needs an approval transaction first: an ERC-20 allowance lets a bridge use transferFrom; native ETH travels with the call and skips approval.

The NewsCrypto Editors

Why Does My Bridge Need ERC-20 Approval First?

For an ERC-20 bridge transfer, you first approve the bridge contract because the token contract holds your balance and must record an allowance before the bridge can pull tokens with transferFrom.

How approval becomes a bridge transfer

An ERC-20 approval is a call to the token contract. It records how much a named spender, such as a bridge contract, may take from your balance. That permission is called an allowance.

Then the bridge calls transferFrom, which moves the approved tokens from your wallet into the bridge’s custody. Depending on the route, the bridge may lock or burn them before issuing an asset on the destination chain.

Say you want to bridge 40 USDC. You approve the bridge contract to spend 40 USDC, then submit the bridge transfer. The token contract checks the allowance when the bridge calls transferFrom. If the allowance is too low or missing, the token contract rejects that pull.

RenBridge is a useful contrast: its gateway created renBTC for you after Bitcoin was locked, rather than pulling an ERC-20 from your wallet. The RenBridge BTC-to-renBTC process shows how minting an asset differs from spending an existing token; that mint needed no approval.

When can you skip approval?

You can skip ERC-20 approval when the bridge transfer does not ask a contract to pull ERC-20 tokens from your balance.

Native ETH travels with the transaction as msg.value. The bridge receives that value with the call itself, so ETH does not need an allowance or an extra approval transaction. The extra step applies to ERC-20 transfers because those tokens are controlled by their own token contracts.

Some routes can set an allowance through a signed message instead of a separate approve transaction. EIP-2612 permit supports this where the token and bridge accept it. Permit2 can also use signed transfer permissions in supported setups, though the token may first need to approve Permit2.

So, when a bridge asks for approval, it is preparing the token contract to let that bridge spend the specified amount. If the route supports a permit, you may be able to authorize the spend by signing instead. Native ETH and RenBridge’s minting flow avoid that ERC-20 allowance step for different reasons.

More stories