The Suave JS SDK is simple to install and use.

Features

  • Lightweight: Minimal footprint for easy integration.
  • Cross-Chain Swaps: Execute swaps across different blockchain networks.
  • Quotes: Get quotes for cross-chain swaps.
  • Payments API: Easily create and manage payments.
  • Easy to Use: Simplified methods for fetching and executing swaps.

Installation

To install the SDK:

npm install suave-sdk
or
yarn add suave-sdk

Creating your SDK instance

import { SuaveSDK } from 'suave-sdk';

const sdk = new SuaveSDK({
    apiKey: 'your-api-key'
});

Verify your current capabilities

import { SuaveSDK } from 'suave-sdk';

const sdk = new SuaveSDK({
    apiKey: 'your-api-key'
});

sdk.getCapabilities().then(capabilities => {
    console.log('Capabilities:', capabilities);
});