Sats Terminal Docs
  • Getting Started
    • 🏡Getting Started
    • Why Sats Terminal?
    • 🔐Rate Limits & API Keys
    • How to get integrated by Sats Terminal?
  • Swap SDK
    • 📦Swap SDK
      • Welcome Page
      • Quick Start
      • API Reference
      • Examples
      • Common Issues
  • Custom Widgets
    • Getting Started
    • Custom Widgets
      • Creating a New Widget
      • Basic Settings
        • Custom Background Design
      • Colors
      • Border
      • Typography
      • Updating and Publishing
      • Embedding Your Widget
Powered by GitBook
On this page
  • Installation
  • Importing the SDK
  • Configuration
  1. Swap SDK
  2. Swap SDK

Quick Start

Integrate our Sats Terminal SDK to your dApp/Wallet/Swap UI

The Sats Terminal SDK package provides access to the Sats Terminal API to find and execute the best on-chain trade for runes across various exchanges.

Installation

npm install satsterminal-sdk

Importing the SDK

The satsterminal-sdk is compatible with both CommonJS and ES6 module systems.

For CommonJS:

const { SatsTerminal } = require('satsterminal-sdk');

For ES6 Modules/TypeScript:

import { SatsTerminal } from 'satsterminal-sdk';

The satsterminal-sdk library is natively type-safe, providing enhanced code reliability and developer experience, especially when using TypeScript.

Configuration

The satsterminal-sdk requires configuration when initializing:

import { SatsTerminal } from 'satsterminal-sdk';

const satsTerminal = new SatsTerminal({
  apiKey: 'your_api_key_here'
});

PreviousWelcome PageNextAPI Reference

Last updated 1 month ago

API key is required and is rate-limited, you can find more details about this .

Apply for an API key here:

📦
here
Sats Terminal Partnership Form