§ 06 public utilities
Bitcoin address lookup
Paste a Bitcoin address to see its balance, unspent outputs, and validity in one shot. We fan out across the chainkit SDK's providers in parallel — same routing logic your customer apps get.
api · same call, in code
Use this in your code.
This tool runs three real chainkit API calls back-to-back — validate, balance, UTXOs. Below is the validation call; balance and UTXOs share the same SDK pattern.
curl -sS '/v1/public/btc/address/validate?address=bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq'// This page chains three calls — validate first, then enrich
// with balance + UTXOs only if the address is well-formed.
addr := "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq"
valid, err := provider.ValidateAddress(ctx, addr)
if err != nil || !valid {
log.Fatal("invalid address")
}
balance, _ := provider.GetBalance(ctx, addr)
utxos, _ := provider.GetUTXOs(ctx, addr)
fmt.Printf("%d sat across %d UTXOs\n", balance.Total, len(utxos))// run the lookup above to see the live response