|
Hello, I'm wondering if there's an equivalent to rpc {"method":"gettxout",params:[ txid, vout, true]} on any service on teranode, because the /api/v1/utxo/:hash/json?vout=N even launching in parallel is a lot slower than bulk rpc commands (Or if is it planned sometime to allow a POST bulk request, just like POST /api/v1/txs ) Thank you in advance! |
Answered by
icellan
May 26, 2026
Replies: 1 comment 2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The PR includes
/api/v1/utxoswhere you would post the outpoints in binar and get a response in binary or JSON backPOST /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 statusutxo.Status_NOT_FOUND. Clients can index byi*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 ofutxo.SpendResponseobjects in input order, e.g.[{"status":1,"spendingData":{"txId":"...","vin":0},"lockTime":1234567}…