Technical FAQ

Can I use the SDK to submit contract transactions?

Not yet, working on it!

Should I use the API versus SDK to construct deposit parameters?

We recommend using the API for the easiest way to query suggested deposit params.

What is the behavior of ETH / WETH in transfers?

Across liquidity pools are filled using WETH but, depending on the context, Across will sometimes send a user ETH and sometimes send a user WETH.

  • If a bridge transfer is being sent to an EOA, the EOA will receive ETH (not WETH)

  • If a bridge transfer is being sent to a contract, the contract will receive WETH (not ETH)

How do I deposit using ETH instead of WETH?

To deposit ETH, or the native token for a network, set msg.value = inputAmount. To deposit WETH, set msg.value = 0. When depositing ETH or WETH, the inputAmount should be the same and the inputToken should be the WETH address for the current chain.

Last updated