Skip to main content
The SDK wraps the Quote API and builds the swap transaction for each source chain, so you fetch a quote, hand it to one function, and send what comes back. Going straight to the Quote API is also supported, and means building and signing the transaction yourself on every chain you integrate.

Install

Requirements. Node 20.19 or later, or 22.12 or later, if you consume the package with require(). The SDK eagerly loads ESM-only dependencies at import time, so on older Node a CommonJS require throws ERR_REQUIRE_ESM and the package fails to load regardless of which chains you use. Importing as ESM works on any modern runtime.

The shape of an integration

Three calls, in order:
  1. Fetch a quote. fetchQuote returns the routes available for a pair.
  2. Execute the swap. One of swapFromEvm, swapFromSolana, or createSwapFromSuiMoveCalls builds and sends the transaction.
  3. Track it. The Explorer API tells you when it finished.

Next steps

Fetching Quotes

Every parameter, the response fields that matter, and gas drop ceilings.

Executing Swaps

EVM, Solana and Sui, plus allowances, gasless and HyperCore.

Track Transactions

Step three: knowing when the swap finished.