# LI.FI — Perform multiple contract calls across blockchains (BETA)

Get LI.FI Contract Calls Quote data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Lifi, pass parameters such as fromAddress, fromChain, fromToken, and retrieve structured data including estimated destination token amount, to amount min, estimated network gas costs, quoted transfer fee components, and prepared transaction data to review contract-call quotes, and separate simulation and execution.

Documentation: https://openany.si/lifi/lifi-li-fi-perform-multiple-contract-calls-across-blockchains-beta/7dd239de-ff7b-4969-b948-bb03a4aec71e/
API ID: 7dd239de-ff7b-4969-b948-bb03a4aec71e
Provider: lifi
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/lifi/v1/quote/contractCalls
Page update time: 2026-12-03T02:43:34.349Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:43:33.046Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## LI.FI Contract Calls Quote API

POST the contract-call request object directly as JSON. The beta operation constructs a quote and transactionRequest; inspect stepSimulation and estimates before any separate execution.

## What You Can Build

- **Review contract-call quotes**: Inspect action and fee estimates together.
- **Separate simulation and execution**: Read simulation status without treating it as a completed on-chain call.

## Returned Data

| Field | Meaning |
| --- | --- |
| `action.fromAmount` | Source token amount in base units |
| `estimate.toAmount` | Estimated destination token amount |
| `estimate.toAmountMin` | Minimum destination amount for the quoted step |
| `estimate.gasCosts` | Estimated network gas costs |
| `estimate.feeCosts` | Quoted transfer fee components |
| `transactionRequest` | Prepared transaction data |
| `stepSimulation` | Transaction simulation metadata |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "LI.FI — Perform multiple contract calls across blockchains (BETA) request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "description": "Object defining instructions on how to perform multiple cross-chain/same-chain calls",
      "examples": [
        {
          "contractCalls": [],
          "fromAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
          "fromChain": 1,
          "fromToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
          "toAmount": "100000000",
          "toChain": 10,
          "toToken": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"
        }
      ],
      "properties": {
        "allowBridges": {
          "description": "List of bridges that are allowed for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "allowDestinationCall": {
          "description": "Whether swaps or other contract calls should be allowed as part of the destination transaction of a bridge transfer. Separate swap transactions on the destination chain are not affected by this flag. By default, parameter is `true`.",
          "type": "boolean"
        },
        "allowExchanges": {
          "description": "List of exchanges that are allowed for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "contractCalls": {
          "example": [],
          "items": {
            "description": "Object defining a single arbitrary contract call",
            "properties": {
              "fromAmount": {
                "description": "The amount that will feed into this contract call. This is not dependent on how much was bridged or deposited before - it's the *expected* amount of token available on order to execute the call.",
                "type": "string"
              },
              "fromTokenAddress": {
                "description": "The token that will feed into this contract call. E.g. a ETH staking transaction would expect to have ETH available.",
                "type": "string"
              },
              "toApprovalAddress": {
                "description": "If the approval address is different thant the contract to call, specify that address here",
                "type": "string"
              },
              "toContractAddress": {
                "description": "The address of the contract to interact with.",
                "type": "string"
              },
              "toContractCallData": {
                "description": "The calldata to be sent to the contract for the interaction on the destination chain.",
                "type": "string"
              },
              "toContractGasLimit": {
                "description": "The estimated gas used by the destination call. If this value is incorrect, the interaction may fail -- choose this carefully!",
                "type": "string"
              },
              "toTokenAddress": {
                "description": "If the contract outputs a token, specify its address here. (E.g. staking ETH produces stETH)",
                "type": "string"
              }
            },
            "required": [
              "fromAmount",
              "fromTokenAddress",
              "toContractAddress",
              "toContractCallData",
              "toContractGasLimit"
            ],
            "title": "Root Type for ContractCall",
            "type": "object"
          },
          "type": "array"
        },
        "contractOutputsToken": {
          "description": "Some contract interactions will output a token. This is the case in things like staking. Omit this parameter if no token should be returned to the user.",
          "type": "string"
        },
        "denyBridges": {
          "description": "List of bridges that are not allowed for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "denyExchanges": {
          "description": "List of exchanges that are not allowed for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "fee": {
          "description": "The percent of the integrator's fee that is taken from every transaction. The maximum fee amount should be less than 100%.",
          "exclusiveMaximum": 1,
          "format": "double",
          "minimum": 0,
          "type": "number"
        },
        "fromAddress": {
          "description": "The wallet that will send the transaction and contains the starting token",
          "example": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
          "type": "string"
        },
        "fromChain": {
          "description": "The sending chain. Can be the chain id or chain key",
          "example": 1,
          "type": "number"
        },
        "fromToken": {
          "description": "The token that should be transferred. Can be the address or the symbol",
          "example": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
          "type": "string"
        },
        "integrator": {
          "description": "A string containing tracking information about the integrator of the API",
          "type": "string"
        },
        "preferBridges": {
          "description": "List of bridges that should be preferred for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "preferExchanges": {
          "description": "List of exchanges that should be preferred for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "referrer": {
          "description": "A string containing tracking information about the referrer of the integrator",
          "type": "string"
        },
        "slippage": {
          "description": "The maximum allowed slippage for the transaction as a decimal value. 0.005 represents 0.5%.",
          "format": "double",
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        },
        "toAmount": {
          "description": "The amount of token required by the contract interaction. The LI.FI API will try and generate a quote that guarantees at least that amount on the destination chain.",
          "example": "100000000",
          "type": "string"
        },
        "toChain": {
          "description": "The receiving chain. Can be the chain id or chain key",
          "example": 10,
          "type": "number"
        },
        "toFallbackAddress": {
          "description": "If the call fails, use this address to send the bridged tokens to. If none is specified, the sending address will be used.",
          "type": "string"
        },
        "toToken": {
          "description": "The token required to perform the contract interaction (can be something to stake, donate or to be used as payment)",
          "example": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
          "type": "string"
        }
      },
      "required": [
        "fromChain",
        "fromToken",
        "fromAddress",
        "toChain",
        "toToken",
        "toAmount",
        "contractCalls"
      ],
      "title": "Root type for ContractCallsRequest",
      "type": "object"
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "action": {
      "type": "object",
      "properties": {
        "fromAddress": {
          "type": "string"
        },
        "fromAmount": {
          "type": "string"
        },
        "fromChainId": {
          "type": "integer"
        },
        "fromToken": {
          "type": "object",
          "properties": {
            "address": {
              "type": "string"
            },
            "chainId": {
              "type": "integer"
            },
            "coinKey": {
              "type": "string"
            },
            "decimals": {
              "type": "integer"
            },
            "logoURI": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "priceUSD": {
              "type": "string"
            },
            "symbol": {
              "type": "string"
            },
            "tags": {
              "type": "array",
              "items": {}
            },
            "verificationStatus": {
              "type": "string"
            },
            "verificationStatusBreakdown": {
              "type": "array",
              "items": {}
            }
          }
        },
        "slippage": {
          "type": "number"
        },
        "toAddress": {
          "type": "string"
        },
        "toChainId": {
          "type": "integer"
        },
        "toToken": {
          "type": "object",
          "properties": {
            "address": {
              "type": "string"
            },
            "chainId": {
              "type": "integer"
            },
            "coinKey": {
              "type": "string"
            },
            "decimals": {
              "type": "integer"
            },
            "logoURI": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "priceUSD": {
              "type": "string"
            },
            "symbol": {
              "type": "string"
            },
            "tags": {
              "type": "array",
              "items": {}
            },
            "verificationStatus": {
              "type": "string"
            },
            "verificationStatusBreakdown": {
              "type": "array",
              "items": {}
            }
          }
        }
      }
    },
    "estimate": {
      "type": "object",
      "properties": {
        "approvalAddress": {
          "type": "string"
        },
        "executionDuration": {
          "type": "integer"
        },
        "feeCosts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {}
          }
        },
        "fromAmount": {
          "type": "string"
        },
        "fromAmountUSD": {
          "type": "string"
        },
        "gasCosts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {}
          }
        },
        "toAmount": {
          "type": "string"
        },
        "toAmountMin": {
          "type": "string"
        },
        "toAmountUSD": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      }
    },
    "id": {
      "type": "string"
    },
    "includedSteps": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "action": {
            "type": "object",
            "properties": {}
          },
          "estimate": {
            "type": "object",
            "properties": {}
          },
          "id": {
            "type": "string"
          },
          "tool": {
            "type": "string"
          },
          "toolDetails": {
            "type": "object",
            "properties": {}
          },
          "type": {
            "type": "string"
          }
        }
      }
    },
    "stepSimulation": {
      "type": "object",
      "properties": {
        "gasSource": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      }
    },
    "tool": {
      "type": "string"
    },
    "toolDetails": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "logoURI": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "transactionId": {
      "type": "string"
    },
    "transactionRequest": {
      "type": "object",
      "properties": {
        "chainId": {
          "type": "integer"
        },
        "data": {
          "type": "string"
        },
        "from": {
          "type": "string"
        },
        "gasLimit": {
          "type": "string"
        },
        "gasPrice": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "type": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/lifi/v1/quote/contractCalls' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "contractCalls": [],
  "fromAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
  "fromChain": 1,
  "fromToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "toAmount": "100000000",
  "toChain": 10,
  "toToken": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "action": {
    "fromAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
    "fromAmount": "100762253",
    "fromChainId": 1,
    "fromToken": {
      "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "chainId": 1,
      "coinKey": "USDC",
      "decimals": 6,
      "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6",
      "name": "USD Coin",
      "priceUSD": "1.0002350525",
      "symbol": "USDC",
      "tags": [],
      "verificationStatus": "verified",
      "verificationStatusBreakdown": []
    },
    "slippage": 0.005,
    "toAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
    "toChainId": 10,
    "toToken": {
      "address": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
      "chainId": 10,
      "coinKey": "USDC",
      "decimals": 6,
      "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6",
      "name": "USD Coin",
      "priceUSD": "1.0008373187",
      "symbol": "USDC",
      "tags": [],
      "verificationStatus": "verified",
      "verificationStatusBreakdown": []
    }
  },
  "estimate": {
    "approvalAddress": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
    "executionDuration": 2,
    "feeCosts": [
      {}
    ],
    "fromAmount": "100762253",
    "fromAmountUSD": "100.7859",
    "gasCosts": [
      {}
    ],
    "toAmount": "100500002",
    "toAmountMin": "100500002",
    "toAmountUSD": "100.5842",
    "tool": "across"
  },
  "id": "73954de5-7a05-41bc-b646-a5efc485d2ca:0",
  "includedSteps": [
    {
      "action": {},
      "estimate": {},
      "id": "7139794b-096f-4a12-9010-d201c3cf4fb8",
      "tool": "feeCollection",
      "toolDetails": {},
      "type": "protocol"
    }
  ],
  "stepSimulation": {
    "gasSource": "simulation",
    "status": "success"
  },
  "tool": "across",
  "toolDetails": {
    "key": "across",
    "logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/across.svg",
    "name": "AcrossV4"
  },
  "transactionId": "0x032bc7a418167823b1132dca3b8621f59daf55ce89df59ba1ecc28301e705e2d",
  "transactionRequest": {
    "chainId": 1,
    "data": "0x1794958f000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000",
    "from": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
    "gasLimit": "0x422c7",
    "gasPrice": "0x2d4a467",
    "to": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
    "value": "0x0"
  },
  "type": "lifi"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Should the request be wrapped in a body field?
No. Send the request object directly as the JSON POST body.

### Is this operation beta?
Yes. The published operation is marked beta.

### Does stepSimulation prove the transaction was mined?
No. Simulation metadata is separate from execution and confirmation.

### What does transactionRequest contain?
Prepared transaction data for a separate signing flow; validate the returned fields for the relevant chain.

### Does this send or sign a transaction?
No. This endpoint returns quote or transaction-construction data. Signing and broadcasting occur separately, and a returned object is not a completed transfer.

### Are network fees the OpenAny API call price?
No. Gas and transfer fee estimates describe the on-chain operation. Review the selected implementation pricing separately for the OpenAny request.

## Available implementations
- lifi: https://openany.si/lifi/lifi-li-fi-perform-multiple-contract-calls-across-blockchains-beta/7dd239de-ff7b-4969-b948-bb03a4aec71e/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
