<p>You can get the entire transaction using <code>getrawtransaction</code>. This will include all vouts.</p>

CC BY-SA 4.0
2022-09-02T20:49:58.050Z
Yeah but it's raw hex, would you know a python parser for it? Segwit I guess is also encoded differently from legacy.
Vincent Alex
CC BY-SA 4.0
2022-09-02T22:41:08.913Z
There is a a `verbose` parameter to have it be decoded by bitcoind and returned as json. See the [help text](https://bitcoincore.org/en/doc/22.0.0/rpc/rawtransactions/getrawtransaction/).
Ava Chow
CC BY-SA 4.0
2022-09-03T11:19:14.037Z
That works great thanks! Although it requires block hash too.
Vincent Alex
CC BY-SA 4.0
2022-09-01T20:29:33.150Z
2022-09-01T20:29:33.150Z
Ava Chow
<p>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.</p>
<pre><code>gettxout txid 0
gettxout txid 1
gettxout txid 2
gettxout txid 3 -&gt; returns empty, so last one
</code></pre>
<p>&quot;getrawmempool True&quot; doesn't have vout addresses with amounts.</p>

<transactions><bitcoind><json-rpc>
How to get multiple vouts in one RPC call?
Vincent Alex
# How to get multiple vouts in one RPC call?

(Asked by: username_0 on 2022-09-01)

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.

**Tags:** transactions, bitcoind, json-rpc


---

## 1 answers

### Answer by username_1 on 2022-09-01. Score: 2 | Accepted answer

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

> **Comments:**
> **username_0**: Yeah but it's raw hex, would you know a python parser for it? Segwit I guess is also encoded differently from legacy.  
> **username_1**: There is a a `verbose` parameter to have it be decoded by bitcoind and returned as json. See the [help text](https://bitcoincore.org/en/doc/22.0.0/rpc/rawtransactions/getrawtransaction/).  
> **username_0**: That works great thanks! Although it requires block hash too.  

---

