> For the complete documentation index, see [llms.txt](https://docs.xverse.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xverse.app/xverse-agentic-wallet/capabilities/bitcoin.md).

# Bitcoin

Send, receive, and manage BTC on Bitcoin L1.

### Check balance

```bash
xverse-wallet bitcoin balance --json
```

Returns `native` (spendable, used for sends and Spark deposits), `taproot` (may be locked by Ordinals/Runes), and `total`.

> **Important:** Only the `native` (segwit) balance is spendable for BTC sends and Spark deposits. The `taproot` balance may contain Ordinals or Runes and should not be spent directly.

To check balances across multiple accounts:

```bash
xverse-wallet bitcoin balance --accounts 0-4 --json
```

### Receive BTC

```bash
xverse-wallet bitcoin receive --json
```

Returns both your native segwit address (for receiving BTC) and taproot address (for receiving Ordinals).

### Send BTC

Amount is in BTC (e.g. `0.001` = 100,000 sats).

```bash
# Preview (dry run)
xverse-wallet bitcoin send --to <address> --amount 0.001 --json

# Execute
xverse-wallet bitcoin send --to <address> --amount 0.001 --yes --json
```

#### Options

| Option              | Description                                      |
| ------------------- | ------------------------------------------------ |
| `--to <address>`    | Destination Bitcoin address                      |
| `--amount <btc>`    | Amount in BTC (e.g. `0.001`)                     |
| `--fee-rate <rate>` | Fee rate in sat/vB (uses recommended if omitted) |
| `--yes`             | Execute the transaction (omit for dry run)       |

### Check fee rates

```bash
xverse-wallet bitcoin fees --json
```

Returns recommended fee rates (sat/vB) for different confirmation targets.

### Transaction history

```bash
xverse-wallet bitcoin history --json
xverse-wallet bitcoin history --offset 10 --limit 5 --json
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.xverse.app/xverse-agentic-wallet/capabilities/bitcoin.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
