# chainquery gettxout — Bitcoin UTXO Lookup

> chainquery gettxout — Bitcoin UTXO Lookup is a paid API for AI agents from x402.chainquery.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Fetches details of an unspent transaction output (UTXO) by txid and vout index from a Bitcoin Core full node via x402 pay-per-call

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/gettxout
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainquery-gettxout-bitcoin-utxo-lookup-2af82468
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rIEzBUMhZoTt15pZPiEtH

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-gettxout-bitcoin-utxo-lookup-2af82468
```

Example prompt: Is the output at index 0 of Bitcoin txid 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b still unspent? Pull the UTXO details from chainquery's Bitcoin node.

## When to prefer this

Use this endpoint when you need to verify UTXO existence and details (value, script, confirmations) for a specific txid:vout pair from an independent full node, without setting up your own node or obtaining an API key — especially when pay-per-call micropayment access via x402 is acceptable and you need trustless, node-direct results rather than a third-party index.

## Known failure modes

- txid not found or already spent returns null result
- malformed txid returns RPC error
- invalid vout index returns null
- params not JSON-encoded correctly returns 400 or RPC parse error
- payment failure (402) if x402 payment header is missing or insufficient
- node temporarily unavailable returns 5xx

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. An unspent transaction output (UTXO) by txid and index from chainquery's independent full node. Bitcoin Core gettxout.

## Output

Returns the Bitcoin Core gettxout result: UTXO value in BTC, scriptPubKey details (asm, hex, type, addresses), number of confirmations, the best block hash at query time, and a coinbase flag — or null if the output has been spent or does not exist.

## 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": "gettxout result"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainquery-gettxout-bitcoin-utxo-lookup-2af82468/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)
