0

Is there an RPC call to get more (or better all) vouts for given transaction? Iterating over each one takes a lot of network time.

gettxout txid 0
gettxout txid 1
gettxout txid 2
gettxout txid 3 -> returns empty, so last one

"getrawmempool True" doesn't have vout addresses with amounts.

1 Answer 1

2

You can get the entire transaction using getrawtransaction. This will include all vouts.

3
  • Yeah but it's raw hex, would you know a python parser for it? Segwit I guess is also encoded differently from legacy. Sep 2 at 20:49
  • There is a a verbose parameter to have it be decoded by bitcoind and returned as json. See the help text.
    – Andrew Chow
    Sep 2 at 22:41
  • That works great thanks! Although it requires block hash too. Sep 3 at 11:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.