cost_basis
Get a premium UTXO cost basis and unrealized P&L report for a Bitcoin address: every current UTXO with its amount, creation time, basis price and basis total (traced through lineage: single-input carry-forward, pro-rata fan-in blending, CoinJoin and other provenance breaks flagged with a receipt-price fallback), current value at the live price, unrealized P&L, age and long/short holding flag, plus address totals. Prices are Kraken daily closes; the report labels its honest limits in its notes and is not tax advice. Legacy, P2SH, SegWit and Taproot addresses are accepted and checksum-validated. Price: $0.10 USDC on Base via x402.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>"
},
"name": "cost_basis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Bitcoin address: legacy (1...), P2SH (3...), SegWit (bc1q...) or Taproot (bc1p...). |