§ 06 public utilities
Transaction status
Paste a Bitcoin TXID to see whether it's confirmed, how many blocks deep, and which block finalised it. Powered by the chainkit SDK — exactly what your code would call.
api · same call, in code
Use this in your code.
The lookup above is a real call to chainkit's public API. Here's the same request as curl, in Go via the SDK, and the raw JSON response — everything you need to wire it into your own app.
curl -sS '/v1/public/btc/tx?id=6f7cf9580f1c2dfb3c4d5fa6bcf4f57e9c5e7e6c3d4b2a1908f7e6d5c4b3a291'status, err := provider.GetTxStatus(ctx, "6f7cf9580f1c2dfb3c4d5fa6bcf4f57e9c5e7e6c3d4b2a1908f7e6d5c4b3a291")
if err != nil {
log.Fatal(err)
}
fmt.Printf("confirmed=%v confirmations=%d block=%d\n",
status.Confirmed, status.Confirmations, status.BlockHeight)// run the lookup above to see the live response