# BTC Node API — Bitcoin Transaction Lookup

> BTC Node API — Bitcoin Transaction 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 detailed information about a Bitcoin transaction by its hash

## Facts

- Endpoint: GET https://api.relai.fi/relay/1780781322365/api/tx/{hash}
- 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-transaction-lookup-53db49ae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VcJ3G8mvQnGWwOOe9zp98

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-transaction-lookup-53db49ae
```

Example prompt: Can you pull up the details for Bitcoin transaction a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d — I want to see the inputs, outputs, fee, and confirmation status.

## When to prefer this

Use this endpoint when you need to look up specific Bitcoin transaction details by TXID — such as verifying a payment, inspecting inputs/outputs, or checking confirmation status — and want a simple HTTP API without running your own Bitcoin node.

## Known failure modes

- Invalid or malformed transaction hash returns an error
- Transaction hash not found on the Bitcoin network
- Network timeout if the BTC node is temporarily unavailable
- Rate limiting or payment failure if USDC balance is insufficient

## How this service works

Bitcoin transaction details

## Output

Returns detailed Bitcoin transaction data including inputs, outputs, transaction fee, block height, confirmation count, timestamp, and other on-chain metadata for the specified transaction hash.

## 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-transaction-lookup-53db49ae/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)
