> For the complete documentation index, see [llms.txt](https://docs.satsterminal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.satsterminal.com/products-overview/runes-sdk.md).

# Runes SDK

The **Swap v2 SDK** is the fastest way to integrate Bitcoin-native swaps into any product.\
Written in JavaScript/TypeScript, it works in both **front-end** and **back-end** environments and handles all communication with Sats Terminal’s smart routing engine.

Use it to build:

* Your own custom swap experience
* Automated trading scripts
* Wallet integrations
* Backend swap services

#### **Key Features**

* Smart routing logic handled automatically
* Built-in error handling and transaction management
* Fully compatible with all Bitcoin-native wallets
* Light and flexible for any architecture
* Works with Node.js, browsers, and serverless functions

#### **Best For**

> Developers who want full control over the swap UX/UI or need to build complex integrations without maintaining routing logic themselves.
