Clypto Documentation
Get API KeyClypto Exchange
  • Welcome to Clypto
  • Getting Started
    • What is Clypto?
    • Why Clypto?
    • Supported Chains and DEX Aggregators, Bridges
  • FAQ
  • Clypto Exchange
    • Overview
    • Wallets
      • How to connect a wallet
    • How to swap
  • Integrate API
    • Overview
    • Get API Key
    • Monetization
    • Integrate SDK
    • API Reference
      • Supported Chains and Providers
      • Utility
      • Quote
      • Swap
  • Resources
    • X (Twitter)
    • Discord
    • Blog
    • GitHub
Powered by GitBook
On this page
  • 🔗 Clypto API SDK
  • 📦 Installation
  • Usage
  • API Reference
Export as PDF
  1. Integrate API

Integrate SDK

PreviousMonetizationNextAPI Reference

Last updated 22 days ago

🔗 Clypto API SDK

@clypto/api-sdk is a lightweight TypeScript SDK for accessing the , a high-performance, cross-chain aggregator supporting seamless token swaps across 16+ blockchains and 6,000+ assets.

  • 📦 Get Token List by providers, chains

  • 🚀 Quote & execute swaps

  • 🔗 Deep multi-chain liquidity

  • âš¡ Fast and efficient routing

  • 💰 Built-in referral support


📦 Installation

npm install @clypto/api-sdk

Usage

import { ClyptoApi } from '@clypto/api-sdk';

const apiKey = 'your-api-key';
const clypto = new ClyptoApi(apiKey);

// Get supported chains
const chains = await clypto.getChains();

// Get tokens for a specific provider
const tokens = await api.getTokens({ provider: 'thorchain' });

// Get a quote
const quote = await api.getQuote({
  srcChain: 'bitcoin',
  srcToken: '', // pass empty string for native assets like bitcoin, ethereum
  destChain: '1', // ethereum
  destToken: '',
  amount: '100000000', // 1btc
  slippageBps: 150,
  referrer: 'address',
  referralFeeBps: 25, // 0.25%
});

// Get a swap transaction
const swap = await clypto.getSwap({
  srcChain: 'bitcoin',
  srcToken: '', // pass empty string for native assets like bitcoin, ethereum
  destChain: '1', // ethereum
  destToken: '',
  srcAddress: 'bc...', // btc wallet address
  destAddress: '0x...', // eth wallet address
  amount: '100000000', // 1btc
  slippageBps: 150,
  referrer: 'address',
  referralFeeBps: 25, // 0.25%
});

API Reference

Explore our to interact with endpoints, view parameters, and try real-time requests.

Clypto API
Official API Documentation