# BTC Node API — Bitcoin Address Portfolio Lookup

> BTC Node API — Bitcoin Address Portfolio Lookup is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Retrieves portfolio and transaction data for a given Bitcoin address

## Facts

- Endpoint: GET https://api.relai.fi/relay/1780781322365/api/addr/{address}
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/btc-node-api-bitcoin-address-portfolio-lookup-e7b79bd5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4rYmZfHjiSYD6tZqwYw8l

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability btc-node-api-bitcoin-address-portfolio-lookup-e7b79bd5
```

Example prompt: Can you pull up the full portfolio and transaction history for Bitcoin address 1A1zP1eP5QGefi2DMPTfTL5SLmv7Divf Na?

## When to prefer this

Use this endpoint when you need on-chain Bitcoin address portfolio data including balance and transaction history directly from a Bitcoin node, especially when you need raw, node-level accuracy rather than aggregated exchange data.

## Known failure modes

- Invalid Bitcoin address format returns an error or empty response
- Address with no on-chain activity may return empty portfolio
- Node sync lag may cause stale or incomplete data
- Rate limiting or payment failure (x402) blocks the request
- Non-existent or malformed path parameter yields 404 or error

## How this service works

Bitcoin address portfolio

## Output

Returns portfolio data for the specified Bitcoin address, likely including balance, transaction list, received/sent amounts, and UTXO information derived from a Bitcoin full node.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/btc-node-api-bitcoin-address-portfolio-lookup-e7b79bd5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relai.fi](https://www.zero.xyz/host/api.relai.fi/llms.txt)
