<p>You question deserves a very long explanation :-) Instead of repeating what was already discussed, I put some links here which will help you to begin. </p>

<blockquote>
  <p>Given any address, what would be the json command and or how would I
  import into python...</p>
</blockquote>

<p>first it is important to understand, that the wallet that you talk to (via RPC) is not the blockchain. You can only fetch information for the <a href="https://bitcoin.stackexchange.com/questions/58242/how-to-get-balance-by-any-address-using-rpc-bitcoind">known addresses</a> in the wallet. </p>

<blockquote>
  <p>... for an array of all the tx id's for all tx's associated with any
  given address (whether part of my wallet or not)?</p>
</blockquote>

<p>This is a repeating pattern here in the forum, a quick <a href="https://bitcoin.stackexchange.com/questions/21375/how-to-retrieve-all-transactions-from-bitcoind?rq=1">search revealed this</a>.</p>

<p>And how to send python commands to RPC is <a href="https://bitcoin.stackexchange.com/questions/36433/bitcoin-rpc-works-in-bitcoin-cli-but-not-in-python-bitcoinrpc-no-json-object">described here</a>. A quick search for "RPC python" reveals many more sources of information. 
The RPC commands themselves are well <a href="https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)" rel="nofollow noreferrer">described here</a> <a href="https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list" rel="nofollow noreferrer">and here</a>. </p>

<p>For sure we can't write the code for you, so maybe show us a bit how far you got, and then we can easily follow where you got stuck, and maybe even provide the help you are looking for. </p>

CC BY-SA 3.0
2018-03-02T10:05:46.847Z
2018-03-02T10:05:46.847Z
pebwindkraft
<p>I've read some conflicting things on this.  Given any address, what would be the json command and or how would I import into python, such a query to my bitcoin core wallet for an array of all the tx id's for all tx's associated with any given address (whether part of my wallet or not)?</p>

<p>Or is there even a way to do that to begin with?</p>

<bitcoin-core><json-rpc><python>
Can I, and how do I query the Bitcoin Core wallet to give me a list of all transactions for any specified address?
Mine
# Can I, and how do I query the Bitcoin Core wallet to give me a list of all transactions for any specified address?

(Asked by: username_0 on 2018-03-02)

I've read some conflicting things on this. Given any address, what would be the json command and or how would I import into python, such a query to my bitcoin core wallet for an array of all the tx id's for all tx's associated with any given address (whether part of my wallet or not)?

Or is there even a way to do that to begin with?

**Tags:** bitcoin-core, json-rpc, python


---

## 1 answers

### Answer by username_1 on 2018-03-02. Score: 1

You question deserves a very long explanation :-) Instead of repeating what was already discussed, I put some links here which will help you to begin.

> Given any address, what would be the json command and or how would I
> import into python...

first it is important to understand, that the wallet that you talk to (via RPC) is not the blockchain. You can only fetch information for the [known addresses](https://bitcoin.stackexchange.com/questions/58242/how-to-get-balance-by-any-address-using-rpc-bitcoind) in the wallet.

> ... for an array of all the tx id's for all tx's associated with any
> given address (whether part of my wallet or not)?

This is a repeating pattern here in the forum, a quick [search revealed this](https://bitcoin.stackexchange.com/questions/21375/how-to-retrieve-all-transactions-from-bitcoind?rq=1).

And how to send python commands to RPC is [described here](https://bitcoin.stackexchange.com/questions/36433/bitcoin-rpc-works-in-bitcoin-cli-but-not-in-python-bitcoinrpc-no-json-object). A quick search for "RPC python" reveals many more sources of information.
The RPC commands themselves are well [described here](https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)) [and here](https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list).

For sure we can't write the code for you, so maybe show us a bit how far you got, and then we can easily follow where you got stuck, and maybe even provide the help you are looking for.


---

