Premium UTXO cost basis and unrealized P&L report for a Bitcoin address
Premium UTXO cost basis and unrealized P&L report for a Bitcoin address: current UTXOs with per-UTXO basis traced through lineage (single-input carry-forward, pro-rata fan-in blending) against Bitstamp daily BTC prices, current value at the live price, unrealized P&L, age and long/short holding flag, plus address totals. Provenance breaks (CoinJoin-like funding, untraceable inputs) are flagged per UTXO with a receipt-price fallback. Estimates from on-chain receipt values, not tax advice.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://chain-data-api.agentlogic.workers.dev/cost-basis
| Category | Market data |
|---|---|
| Provider host | chain-data-api.agentlogic.workers.dev |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-12-02 | valid payment request | 402 | $0.1 | 622 ms |
| 2026-12-01 | valid payment request | 402 | $0.1 | 578 ms |
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"address": {
"type": "string"
}
},
"required": [
"address"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"address": {
"type": "string"
},
"addressType": {
"type": "string"
},
"currency": {
"type": "string"
},
"currentPriceUsd": {
"type": "number"
},
"durationMs": {
"type": "integer"
},
"method": {
"type": "string"
},
"network": {
"type": "string"
},
"notes": {
"type": "array"
},
"ok": {
"type": "boolean"
},
"priceSource": {
"type": "string"
},
"totals": {
"type": "object"
},
"utxoCount": {
"type": "integer"
},
"utxos": {
"type": "array"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}