btc_price
Get the current Bitcoin spot price in USD, EUR, GBP, CAD, CHF, AUD and JPY. Use it to convert between BTC or sats and fiat, or to quote a price; for whether to broadcast now use btc_send_decision, and for fee timing use optimal_send_window. Takes no input. Read-only: each call makes one live HTTPS read of mempool.space; the result is not stored. Returns the upstream object as served (time in Unix seconds, one whole-unit price per currency) plus source (the URL read), fetched_at (UTC, RFC 3339) and source_sha256 (SHA-256 of the upstream body). Returns an upstream error if mempool.space is unreachable or sends invalid JSON. Price: 10 sats per call.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "btc_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| l402_proof | No | L402 payment proof "<macaroon>:<preimage>". Omit on the first call; an unpaid call returns a 10 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set. |