# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.satsterminal.com/products-overview/runes-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
