POST
/
v1
/
quote
/
contractCall
curl --request POST \
  --url https://li.quest/v1/quote/contractCall \
  --header 'Content-Type: application/json' \
  --data '{
  "fromChain": "BSC",
  "fromToken": "0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3",
  "fromAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
  "toChain": "POL",
  "toToken": "0x4e78011ce80ee02d2c3e649fb657e45898257815",
  "toAmount": "300000000",
  "toContractAddress": "0xEde3bd57a04960E6469B70B4863cE1c9d9363Cb8",
  "contractOutputsToken": "0xb0c22d8d350c67420f06f48936654f567c73e8c8",
  "toContractCallData": "0x...",
  "toContractGasLimit": "900000",
  "allowBridges": [
    "amarok"
  ]
}'
{
  "exchanges": [
    {
      "key": "1inch",
      "name": "0x",
      "logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/zerox.png",
      "supportedChains": [
        "1",
        "137",
        "56"
      ]
    }
  ],
  "bridges": [
    {
      "key": "hop",
      "name": "Connext",
      "logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/amarok.png",
      "supportedChains": [
        {
          "fromChainId": 137,
          "toChainId": 1
        }
      ]
    }
  ]
}

Headers

x-lifi-api-key
string

Authentication header, contact support if you want to get registered.

Body

application/json

Object describing what tokens to transfer and how to interact with the destination contract.

Object defining instructions on how to perform a cross chain call

Response

200 - application/json

Object listing all the currently enabled bridges and exchanges.

The response is of type object.