# Bitcoin Transaction Trace API

> Bitcoin Transaction Trace API 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).

Traces a Bitcoin transaction by its transaction ID, returning detailed trace information about the transaction flow

## Facts

- Endpoint: GET https://api.relai.fi/relay/1780781322365/api/trace/{txid}
- 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/bitcoin-transaction-trace-api-e8571c1c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e-toFYULQ3U4NSfJKpB5W

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 bitcoin-transaction-trace-api-e8571c1c
```

Example prompt: Can you trace the Bitcoin transaction with txid a1b2c3d4e5f6... and show me where the funds came from and went?

## When to prefer this

Use this endpoint when you need to trace or inspect a specific Bitcoin transaction by its transaction ID, especially for blockchain forensics, payment verification, or fund-flow analysis on the Bitcoin network.

## Known failure modes

- Invalid or malformed txid returns an error
- Transaction not found on-chain returns 404 or empty result
- Node connectivity issues may cause timeout or 5xx errors
- Unconfirmed or very recent transactions may not be traceable yet

## How this service works

Bitcoin transaction trace

## Output

Returns a trace of the specified Bitcoin transaction, including inputs, outputs, and the flow of funds associated with the given transaction ID.

## 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/bitcoin-transaction-trace-api-e8571c1c/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)
