Skip to content
Discussion options

You must be logged in to vote

The PR includes /api/v1/utxos where you would post the outpoints in binar and get a response in binary or JSON back

POST /api/v1/utxos — Binary. Concatenated fixed-length 48-byte records in input order, each [8 bytes status LE][4 bytes lockTime LE][4 bytes spendingVin LE][32 bytes spendingTxID]. Unspent UTXOs have the trailing 36 bytes zero-filled; not-found records report status utxo.Status_NOT_FOUND. Clients can index by i*48.

  • POST /api/v1/utxos/hex — Lowercase hex-encoding of the binary response. Same record layout once decoded.
  • POST /api/v1/utxos/json — JSON array of utxo.SpendResponse objects in input order, e.g. [{"status":1,"spendingData":{"txId":"...","vin":0},"lockTime":1234567}…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mkpuig
Comment options

@icellan
Comment options

Answer selected by mkpuig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants