terminalXverse Developer Documentation

Build with the world's leading Bitcoin self-custodial platform

Build on Bitcoin with Xverse

Xversearrow-up-right is the Bitcoin super-app trusted by nearly 2 million users — built for payments, trading, earning, and borrowing across Bitcoin, Lightning, Sparkarrow-up-right, Starknetarrow-up-right, and Stacksarrow-up-right.

The infrastructure behind it is now open to developers.

Whether you're building a Bitcoin app, a data service, or an AI agent, Xverse gives you the tools to ship on Bitcoin and Bitcoin layers without running your own nodes, indexers, or infrastructure.

What are you building?

Xverse API - The Data Layer for Bitcoin Apps

REST APIs for real-time and historical Bitcoin data — no node, no indexer, no custom infrastructure required.

  • Bitcoin RPC, mempool, UTXOs, and balances

  • Portfolio indexing, analytics, and market data for Bitcoin, Spark, Starknet, Stacks

  • Ordinals, Runes, BRC-20, and inscription services

  • Swap aggregation across Bitcoin AMMs and Bitcoin L2s

rocket-launchGet started robotMCP server

GET /v2/bitcoin/address/{address}/utxo HTTP/1.1
Host: api.secretkeylabs.io
x-api-key: YOUR_API_KEY
Accept: */*

Sats Connect - The Wallet SDK for Bitcoin Apps

Build apps that connect to users' Bitcoin wallets. Send transactions, request signatures, and interact with the full Bitcoin asset stack — BTC, Ordinals, Runes, BRC-20, Spark, Stacks, and Starknet.

  • Bitcoin PSBTs, transfers, and message signing

  • Ordinals, Runes, and BRC-20 operations

  • Spark, Stacks, and Starknet support

  • ~2 million downloads. Used by leading BitcoinFi apps.

rocket-launchGet started robotAI Agent integration

index.js
import {
  request,
  BitcoinNetworkType,
  RpcErrorCode,
} from "sats-connect";
    
try {
  const response = await request('signPsbt', {
    psbt: psbtBase64,
    signInputs: {
      "1ef9...Jn1r": [0],
      "bc1p...ra4w": [1,2],
    },
  });

Xverse Agentic Wallet - The Agent Economy on Bitcoin Rails

circle-info

Coming soon.

Give your AI agent a Bitcoin-native wallet that can pay, receive, and trade programmatically across Lightning, Spark, and Starknet. No custodian, no permissions to ask for, and no infrastructure to run.

  • Pay and get paid on Lightning request invoices, settle instantly, sub-cent fees. The natural primitive for any agent that needs to charge for or consume a service on Bitcoin rails.

  • 🔲 Trade Runes & Ordinals directly from the agent, no intermediary

  • 🌐 Trade on Starknet — Bitcoin assets, stables, RWAs with high throughput & low fees

  • Trade on Flashnet via Spark — the cheapest way to move Bitcoin assets

johndoe@john-mbp ~ %
xverse [my-agent.com] mainnet:0> --agent my-agent.com bitcoin balance

BTC Balance:

+------------------+-----------+-------------+
| Address Type     | Confirmed | Unconfirmed |
+------------------+-----------+-------------+
| Native Segwit    | 0.1823    | 0.0000      |
| Taproot          | 0.0412    | 0.0050      |
+------------------+-----------+-------------+
| Total            | 0.2235    | 0.0050      |
+------------------+-----------+-------------+

Not sure where to start?

I want to…
Use this

Let users connect their wallet to my app

Request transaction signatures from my users

Query balances, UTXOs, or mempool data server-side

Fetch Ordinals, Runes, or BRC-20 data

Get market data or floor prices

Give my AI agent a Bitcoin wallet to pay and trade

Agentic Wallet 🔜

Use Bitcoin data inside Claude or Cursor

Build a full-stack Bitcoin app

Developer resources

discord

Discord community

Post questions, feature requests, get help, and share resources with other developers.

github

GitHub

Check out our GitHub repository and submit your first PR.