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';
Configuration
The satsterminal-sdk
requires configuration when initializing:
import { SatsTerminal } from 'satsterminal-sdk';
const satsTerminal = new SatsTerminal({
apiKey: 'your_api_key_here'
});
API key is required and is rate-limited, you can find more details about this here.
Last updated