THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Does ok: true in TX STATUS Mean the Transaction Is Confirmed?

permalink THAMER
#api#bitcoin#confirmation#json#live-test#testnet#wab

Answer

Not by itself. The ok field indicates the API call succeeded; confirmation is expressed separately by result.status and result.confirmations.

Evidence and interpretation

In the final example the response contained ok: true, status: confirmed and confirmations: 5. Earlier Testnet responses also had ok: true while status: mempool and confirmations: 0.

Observed JSON

{
  "ok": true,
  "result": {
    "confirmations": 5,
    "net": "test",
    "source": "gettxout",
    "status": "confirmed",
    "txid": "01aa1b183a7a385d2bb910d84f0103bf92aef2109bb7c789c0b50b9841cf35be"
  }
}

This response is from the user's final Testnet TX STATUS check. Other values discussed above come from the two additional BALANCE responses and the earlier test3.txt WATCH/SEND trace. Do not confuse this TXID with older confirmed outputs queried during Stage 3.

CURL reference

BASE_URL="http://127.0.0.1:7070"
# KEY must be set privately on the operator's machine; never publish its value.
TXID="01aa1b183a7a385d2bb910d84f0103bf92aef2109bb7c789c0b50b9841cf35be"
curl -sS -X POST "$BASE_URL/api/v5/btc/tx/status" \
  -H "X-BTC-KEY: $KEY" \
  -H "Content-Type: application/json" \
  -d "{\"net\":\"test\",\"txid\":\"$TXID\"}" | jq .

Scope and security

The observed result establishes the API response at the time of the test, not permanent settlement or an independent code audit. No BTC KEY or BTC SECRET is included.

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects