Skip to main content

Getting Started

Installation

axios is included as a dependency and used by default. If you prefer to bring your own HTTP client (e.g. fetch, ky, or a custom instance), see Configuration → Custom HTTP client.

Quick start

The full flow of a cross-chain swap takes three steps:

1. Initialize the SDK

2. Get the best quote

3. Get transaction data

4. Wait for completion


One-call swap (swapBest)

If you don’t need to inspect the quote before sending, swapBest combines quoting and transaction building into a single request:

Next steps