Skip to main content
Get started with the Value Transfer API in minutes. This guide walks you through the complete transfer flow.

Prerequisites

  • An API key from LayerZero
  • A funded wallet on the source chain

Base URL


1

Check chains and tokens

Before requesting a quote, verify your source and destination chains are supported and discover available tokens.

List supported chains

Response

See the Chains API reference for complete endpoint documentation.

List supported tokens

Query tokens with optional filters. Without parameters, the API returns all tokens across all supported chains.

Query parameters

Valid destinations: To get all destination tokens you can transfer to, provide both the source chain and token address. See Tokens for the full endpoint reference.

Response

2

Get a quote

Request a quote for your cross-chain transfer. The API returns available routes with fees, amounts and estimated duration. Show the quotes to the user, and let the user choose one.
A quote is a price, not a transaction. Do not execute userSteps from the quote response. Get the steps for the quote that the user chooses from /build-user-steps in the next step. See Quotes for the full request/response schema.
3

Build user steps

When the user confirms a quote, call /build-user-steps with the ID of that quote. The response contains the userSteps to execute. Do this for every route and every chain, EVM included.
Do not depend on userSteps in the /quotes response. Many quotes do not include them:
  • New API keys: /quotes does not return userSteps on any route.
  • Solver routes: the solver commits to the price only when you build the steps. /quotes never returns userSteps for these routes.
  • Solana, Sui and IOTA sources, and Canton as source or destination: the steps need the sender’s current on-chain state, or a check that runs only at build time. See Canton Coin.
If a quote already includes userSteps, /build-user-steps usually returns the same steps. On some routes, it checks the quote again and can rebuild the steps or return an error. Always execute the steps that /build-user-steps returns, and use one code path for all routes.
Call /build-user-steps:
  1. Only for the quote that the user chooses. Do not call it for every quote in the response. A solver can reserve the order when you build the steps.
  2. Immediately before the user signs. Some steps expire quickly. For example, a Solana transaction is valid for approximately 60 seconds.
On most routes, the API builds the steps once per quote. A second call with the same quoteId returns the same steps. If the call returns an error, see Errors. For example, HTTP 422 with QUOTE_EXPIRED or QUOTE_NO_LONGER_ADMITTED means: request a new quote. See Build User Steps for complete documentation.
4

Execute the transfer

Process each user step in order. For transactions, sign and submit to the blockchain. For signatures, sign and submit to the API.
Do not approve LZMultiCall as a token spenderAny address can call LZMultiCall with any list of calls, so any address can spend an allowance granted to it and can transfer any tokens or native currency it holds. You MUST NOT grant an allowance to LZMultiCall, and you MUST NOT transfer assets to its address.The API sets the spender in each approve step: TransferDelegate on routes that execute through LZMultiCall, and the bridge contract on other routes. You MUST execute each userStep in the order returned, with to, data and value unchanged. The API does not support modified or rebuilt calldata.See Contracts Overview for the contract architecture.
No cURL for execution: Executing requires a wallet to sign and broadcast the transaction. This step cannot be done with cURL alone - you need a signing library (viem, web3.py, @solana/web3.js) and an RPC connection.
Use userSteps from the /build-user-steps response, on every chain. Do not use quote.userSteps.

Execute transaction steps

Execute each userStep in order. You MUST wait for each transaction to confirm before you send the next one. An ERC20 transfer returns zero, one or two approve steps, followed by one bridge step. The API omits the approve step when the current allowance already covers the amount. For USDT on Ethereum, the API adds a step that sets the allowance to zero before the main approve step, if the current allowance is not zero.

Submit a signature step

For intent-based routes, sign the EIP-712 data and submit to the API.
Signature steps: See Submit Signature for EIP-712 typed data handling and BigInt conversion requirements.
5

Track the transfer

After executing all user steps, poll the status endpoint to monitor completion.
Polling: Poll every 4 seconds until status is SUCCEEDED or FAILED. See Status for response details and error handling.

Status values


Next steps