Skip to main content

Arguments

Warning: Never pass x-api-key in headers from client-side code. Only use the headers parameter with API keys when calling getQuote entirely on the server.

Quote Parameters

On cross-virtual-machine routes, user and recipient live on different chains and use different formats. For example, a Solana → Base quote takes a Solana address as user and an EVM address as recipient. Supplying an address in the wrong format returns Invalid address <address> for chain <chainId>.

Native Bridge Example

Cross-Chain Swap Example

Wrap/Unwrap Example

Send Example

Server-Side Example with API key

Note - Quotes are revalidated when being filled, clients should regularly fetch fresh quotes so that users are always submitting up to date quotes. See Step Execution for more information on executing quotes through the platform.