# 2s.io Bitcoin Transaction Lookup

> 2s.io Bitcoin Transaction Lookup is a paid API for AI agents from 2s.io, paid per call via x402, $0.0036/call, status unknown (last checked 2026-09-14).

Looks up a Bitcoin transaction by txid and returns confirmation status, block details, fee, value, and size metrics

## Facts

- Endpoint: GET https://2s.io/api/crypto/btc-tx
- Price: $0.0036/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-bitcoin-transaction-lookup-301707f5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eaYJBdNT30r-8awxMZjcN

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 2s-io-bitcoin-transaction-lookup-301707f5
```

Example prompt: Can you check the status of Bitcoin transaction 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b — is it confirmed, how many confirmations does it have, and what fee was paid?

## When to prefer this

Use this endpoint when you need to look up a Bitcoin (not Ethereum or EVM) transaction by its txid. It is keyless and pay-per-call, making it ideal for ad-hoc agent queries without API key management. Choose this over general blockchain explorers when you need structured JSON output ready for downstream processing.

## Known failure modes

- Invalid or malformed txid returns an error response
- Unconfirmed/mempool transaction may return partial data or not found
- Network timeout if Bitcoin node is temporarily unreachable
- Txid for a non-Bitcoin (e.g. EVM) chain will not be found

## How this service works

Bitcoin transaction lookup by txid (free/keyless): confirmed status + confirmation count (vs current tip), block height + time, fee (sats + BTC), total output value, size/weight, and input/output counts. Distinct from crypto.tx (EVM) — this is Bitcoin.

## Output

Returns whether the transaction is confirmed, how many confirmations it has relative to the current chain tip, the block height and timestamp, the fee in both satoshis and BTC, the total output value, the transaction size and weight in bytes/vbytes, and the number of inputs and outputs.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "txid"
     ],
     "properties": {
      "txid": {
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-bitcoin-transaction-lookup-301707f5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
