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?

Depending on the context, Across will sometimes send a user ETH and sometimes send a user WETH.

  • If the input asset is ETH, and the recipient is an EOA, the EOA will receive ETH

  • If the input asset is ETH, and the recipient is a contract, the contract will receive WETH (not ETH)

  • If the input asset is WETH, and the recipient is an EOA, the EOA will receive ETH (not WETH)

  • If the input asset is WETH, and the recipient is a contract, the contract will receive WETH

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