<p>This API works for me: <a href="https://chain.so/api/v2/address/BTC/1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" rel="nofollow noreferrer">https://chain.so/api/v2/address/BTC/1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa</a></p>

<p>Here is c++ code to get all utxos for an address: </p>

<p><a href="https://github.com/SatoshiFantasy/--skillSale/blob/c2d31bda47f4e0223572343b54f9fd0d3211f66e/share/fantasybit-core/bitcoinapi.h#L63" rel="nofollow noreferrer">https://github.com/SatoshiFantasy/--skillSale/blob/c2d31bda47f4e0223572343b54f9fd0d3211f66e/share/fantasybit-core/bitcoinapi.h#L63</a></p>

<p><a href="https://github.com/SatoshiFantasy/--skillSale/blob/f32b482c35667109755a538a889e7307f405fc3d/share/fantasybit-core/RestfullService.h#L69" rel="nofollow noreferrer">https://github.com/SatoshiFantasy/--skillSale/blob/f32b482c35667109755a538a889e7307f405fc3d/share/fantasybit-core/RestfullService.h#L69</a></p>

CC BY-SA 4.0
2020-06-19T22:45:12.637Z
This (like other APIs) is limited to 50 per address. Can you share how to get all of them?
Newskooler
CC BY-SA 4.0
2018-08-09T06:16:53.060Z
2018-08-09T06:16:53.060Z
jaybny
<p>To use <code>getrawtransaction</code> to lookup <strong><em>any</em></strong> transaction, you have to have the <code>-txindex</code> flag set, so that all transactions are indexed. But, you have to know the txid.</p>

<pre><code>getrawtransaction "txid" ( verbose "blockhash" )

NOTE: By default this function only works for mempool transactions. If the -txindex option is
enabled, it also works for blockchain transactions. If the block which contains the transaction
is known, its hash can be provided even for nodes without -txindex. Note that if a blockhash is
provided, only that block will be searched and if the transaction is in the mempool or other
blocks, or if this node does not have the given block available, the transaction will not be found.
</code></pre>

<p>I would recommend using an api such as <a href="https://www.blockchain.com/api/blockchain_api" rel="nofollow noreferrer">blockchain.info</a></p>

<p><strong>Single Address</strong></p>

<ul>
<li><code>https://blockchain.info/rawaddr/$bitcoin_address</code>  </li>
<li><p>Address can be base58 or hash160</p></li>
<li><p>Optional limit parameter to show n transactions e.g. &amp;limit=50 (Default: 50, Max: 50)</p></li>
<li>Optional offset parameter to skip the first n transactions e.g. &amp;offset=100 (Page 2 for limit 50)  </li>
</ul>

<p><code>{
    "hash160":"660d4ef3a743e3e696ad990364e555c271ad504b",
    "address":"1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F",
    "n_tx":17,
    "n_unredeemed":2,
    "total_received":1031350000,
    "total_sent":931250000,
    "final_balance":100100000,
    "txs":[--Array of Transactions--]
}</code></p>

<p>What you want is in the <code>txs</code> property of the returned json object.</p>

CC BY-SA 4.0
2018-08-06T20:59:50.783Z
Thanks for the info, but i’d prefer not to rely on a third party, i’m looking to do this in-house. Also, I will have not have the txids, I’ll need to query with the address as the parameter
sizzlecookie
CC BY-SA 4.0
2018-08-06T22:06:25.040Z
Then I think you'll have to write your own block parsing scripts to search the entire blockchain.
JBaczuk
CC BY-SA 4.0
2018-08-06T20:05:26.190Z
2018-08-06T20:18:42.930Z
2018-08-06T20:18:42.930Z
JBaczuk
<p>I'm looking for a way to query all transactions related to a particular bitcoin address - I periodically need to find all transactions for numerous addresses.</p>

<p>I've seen info about bitcoind <code>searchrawtransactions</code>, although it looks like this may no longer be supported?</p>

<p>Any recommendations?</p>

<bitcoind>
Find all transactions for a bitcoin address
sizzlecookie
# Find all transactions for a bitcoin address

(Asked by: username_0 on 2018-08-06)

I'm looking for a way to query all transactions related to a particular bitcoin address - I periodically need to find all transactions for numerous addresses.

I've seen info about bitcoind `searchrawtransactions`, although it looks like this may no longer be supported?

Any recommendations?

**Tags:** bitcoind


---

## 2 answers

### Answer by username_3 on 2018-08-06. Score: 3 | Accepted answer

To use `getrawtransaction` to lookup ***any*** transaction, you have to have the `-txindex` flag set, so that all transactions are indexed. But, you have to know the txid.

```
getrawtransaction "txid" ( verbose "blockhash" )

NOTE: By default this function only works for mempool transactions. If the -txindex option is
enabled, it also works for blockchain transactions. If the block which contains the transaction
is known, its hash can be provided even for nodes without -txindex. Note that if a blockhash is
provided, only that block will be searched and if the transaction is in the mempool or other
blocks, or if this node does not have the given block available, the transaction will not be found.

```

I would recommend using an api such as [blockchain.info](https://www.blockchain.com/api/blockchain_api)

**Single Address**

* `https://blockchain.info/rawaddr/$bitcoin_address`
* Address can be base58 or hash160
* Optional limit parameter to show n transactions e.g. &limit=50 (Default: 50, Max: 50)
* Optional offset parameter to skip the first n transactions e.g. &offset=100 (Page 2 for limit 50)

`{
"hash160":"660d4ef3a743e3e696ad990364e555c271ad504b",
"address":"1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F",
"n_tx":17,
"n_unredeemed":2,
"total_received":1031350000,
"total_sent":931250000,
"final_balance":100100000,
"txs":[--Array of Transactions--]
}`

What you want is in the `txs` property of the returned json object.

> **Comments:**
> **username_0**: Thanks for the info, but i’d prefer not to rely on a third party, i’m looking to do this in-house. Also, I will have not have the txids, I’ll need to query with the address as the parameter  
> **username_3**: Then I think you'll have to write your own block parsing scripts to search the entire blockchain.  

---

### Answer by username_1 on 2018-08-09. Score: 1

This API works for me: <https://chain.so/api/v2/address/BTC/1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa>

Here is c++ code to get all utxos for an address:

<https://github.com/SatoshiFantasy/--skillSale/blob/c2d31bda47f4e0223572343b54f9fd0d3211f66e/share/fantasybit-core/bitcoinapi.h#L63>

<https://github.com/SatoshiFantasy/--skillSale/blob/f32b482c35667109755a538a889e7307f405fc3d/share/fantasybit-core/RestfullService.h#L69>

> **Comments:**
> **username_2**: This (like other APIs) is limited to 50 per address. Can you share how to get all of them?  

---

