> 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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
