On-Chain Interface

Airlift is available through LiFi's API on the following mainnet chains.

  • Ethereum

  • Optimism

  • Binance Smart Chain

  • Polygon PoS

  • Base

  • Mode

  • Arbitrum

  • Avalanche

  • Linea

  • Scroll

There is a single point of entry for Airlift's smart contracts: the send function.

function send(
    address token, 
    uint256 amount, 
    bytes32 receiver, 
    uint256 destinationChainId, 
    address refundAddress
) payable returns (bytes memory)

This send function allows you to send any token registered to Airlift across chains. The parameters are as follows:

  • token - The address of the token that you wish to send across chains.

  • amount - The amount of the token that you wish to send across chains.

  • receiver - The address of the receiver in bytes32 format. If an ethereum based wallet, encode the address as packed.

  • destinationChainId - The EVM Chain ID of the destination chain. If the destination chain is not an EVM, special IDs will be allocated.

  • refundAddress - The EVM address that the GMP addresses should refund unused cross-chain gas to in case too much was provided.

Note that the send function is payable. Native gas currency must be included to pay for the cross-chain transfer, since the destination chain transfer must be incentivized. The amount required can be estimated via our API's quote endpoint.

Last updated