<p>Bitcoin Core has no option to maintain an index of addresses, thus you cannot search by address or search for things related to an address.</p>

CC BY-SA 3.0
2017-10-20T21:55:26.903Z
2017-10-20T21:55:26.903Z
Ava Chow
<p>I have written a program in Python3 that allows you to search any address on bitcoin core whether it belongs to your wallet or not.</p>
<p>Here is the github link:</p>
<p><a href="https://github.com/ORP967/Bitcoin_Core_RPC_par_address" rel="nofollow noreferrer">https://github.com/ORP967/Bitcoin_Core_RPC_par_address</a></p>
<p>Let me know what you think and any improvements you might have.</p>

CC BY-SA 4.0
2022-01-23T22:52:05.403Z
2022-01-23T22:52:05.403Z
ORP967
<p>The command you're looking for is the <a href="https://bitcoin.org/en/developer-reference#listunspent" rel="nofollow noreferrer">listunspent</a> command, which lists the UTXOs in your wallet and gives out the txid and output index for each one.</p>

CC BY-SA 3.0
2017-08-21T22:28:56.373Z
That only works for wallet addresses. I want to look up addresses that are not in the wallet.
Harry Pillsbury
CC BY-SA 3.0
2017-08-21T20:36:12.527Z
2017-08-21T20:36:12.527Z
meshcollider
<p>If I want to work with a particular address, I need to know all the transaction indices/hashes that have inputs or outputs to/from that address. How can I find out those values assuming that I have the Bitcoin core installed and synced. Is there a command I can give that will return that information for a given address?</p>

<transactions>
How can I get the transaction indexes involving a particular address
Harry Pillsbury
# How can I get the transaction indexes involving a particular address

(Asked by: username_0 on 2017-08-21)

If I want to work with a particular address, I need to know all the transaction indices/hashes that have inputs or outputs to/from that address. How can I find out those values assuming that I have the Bitcoin core installed and synced. Is there a command I can give that will return that information for a given address?

**Tags:** transactions


---

## 3 answers

### Answer by username_1 on 2017-10-20. Score: 1

Bitcoin Core has no option to maintain an index of addresses, thus you cannot search by address or search for things related to an address.


---

### Answer by username_2 on 2022-01-23. Score: 0

I have written a program in Python3 that allows you to search any address on bitcoin core whether it belongs to your wallet or not.

Here is the github link:

<https://github.com/username_2/Bitcoin_Core_RPC_par_address>

Let me know what you think and any improvements you might have.


---

### Answer by username_3 on 2017-08-21. Score: 0

The command you're looking for is the [listunspent](https://bitcoin.org/en/developer-reference#listunspent) command, which lists the UTXOs in your wallet and gives out the txid and output index for each one.

> **Comments:**
> **username_0**: That only works for wallet addresses. I want to look up addresses that are not in the wallet.  

---

