# chainquery getrawtransaction

> chainquery getrawtransaction is a paid API for AI agents from x402.chainquery.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Fetches a raw Bitcoin transaction by txid from chainquery's independent full node, returning hex or decoded JSON via Bitcoin Core getrawtransaction RPC

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/getrawtransaction
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainquery-getrawtransaction-44cb6d71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gkigGksbnjsLV5u_qVFB6

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 chainquery-getrawtransaction-44cb6d71
```

Example prompt: Can you fetch the full decoded details of Bitcoin transaction 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b from chainquery's Bitcoin node — I need all the inputs, outputs, and confirmation count?

## When to prefer this

Use this endpoint when you need raw or decoded Bitcoin transaction data directly from an independent full node without registering for an API key. Prefer over Blockstream, Mempool.space, or similar REST APIs when you want Bitcoin Core native RPC output format, pay-per-call micropayment access via x402, or a node independent from Blockstream/Coinbase infrastructure.

## Known failure modes

- Transaction not found (txid not in mempool or blockchain) — returns null result with RPC error
- Invalid or malformed txid format — RPC error response
- Node not fully synced — transaction may be missing for recent blocks
- Payment of $0.01 USDC not completed or rejected — HTTP 402 response before RPC is reached
- Malformed params JSON array — query param parsing error

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. A raw transaction by txid from chainquery's independent full node, as hex or decoded JSON. Bitcoin Core getrawtransaction.

## Output

Returns the Bitcoin Core getrawtransaction result: either a hex-encoded raw transaction string (verbosity 0) or a decoded JSON object containing txid, hash, version, size, vin (inputs with scriptSig, txid, vout), vout (outputs with value, scriptPubKey addresses), blockhash, confirmations, time, and blocktime.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "params": {
       "type": "string",
       "description": "optional: JSON-encoded array of positional RPC params"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "result": {
       "description": "getrawtransaction result"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainquery-getrawtransaction-44cb6d71/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.chainquery.com](https://www.zero.xyz/host/x402.chainquery.com/llms.txt)
