Install
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:- Fetch a quote.
fetchQuotereturns the routes available for a pair. - Execute the swap. One of
swapFromEvm,swapFromSolana, orcreateSwapFromSuiMoveCallsbuilds and sends the transaction. - 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.