<p>There's also another possibility, that's that you haven't yet downloaded all the block chain with bitcoind.</p>

<p>If you haven't yet started the daemon you must use this command:</p>

<pre><code>bitcoind -daemon
</code></pre>

<p>Then, you can use the command:</p>

<pre><code>bitcoind getblockcount
</code></pre>

<p>To check the number of blocks that the daemon has already downloaded, and compare it with the <a href="http://blockexplorer.com/" rel="nofollow">lastest block number</a></p>

<p>Your transaction is on the lastest blocks, so you must wait it to be completed, and this can take many hours.</p>

CC BY-SA 3.0
2015-11-12T04:58:55.237Z
This was indeed the issue -- after a week I checked back and everything was fine. If only I had gigabit back then :)
mzhang
CC BY-SA 3.0
2014-04-19T05:30:59.633Z
2014-04-19T05:30:59.633Z
fjauses
<p>Can you see in block.io or blockchain.info that your transaction goes through?</p>

<p>Furthermore <code>gettransaction()</code> doesn't work unless you have <code>txindex=1</code>in your <code>bitcoin.conf settings</code>.</p>

<p>Look here for inspiration:</p>

<p><a href="http://cryptoassetscore.readthedocs.org/en/latest/backends.html#module-cryptoassets.core.backend.bitcoind" rel="nofollow">http://cryptoassetscore.readthedocs.org/en/latest/backends.html#module-cryptoassets.core.backend.bitcoind</a></p>

<p>Also if you are accepting Bitcoin payments in Python, <a href="https://bitbucket.org/miohtama/cryptoassets" rel="nofollow">check out cryptoassets.core library for Bitcoin cryptocurrencies in Python</a>. (disclaimer: I am the author)</p>

CC BY-SA 3.0
2015-01-14T13:10:32.147Z
2015-01-14T13:10:32.147Z
Mikko Ohtamaa
<p>I've just started toying around with the bitcoind Python wrapper (<a href="http://laanwj.github.io/bitcoin-python/doc/usage.html" rel="nofollow">bitcoin-python</a>) and have run into some issues when trying to move funds around.</p>

<p>On the client side, I have generated a new address, via</p>

<pre><code>new_addr = conn.getnewaddress(ACCT)
</code></pre>

<p>Upon calling</p>

<pre><code>conn.getaddressesbyaccount(ACCT)
</code></pre>

<p>I see <code>new_addr</code> within the addresses listed.</p>

<p>I now send a test transaction (~1mBTC) on blockchain.info to <code>new_addr</code>, and have waited for some period of time, so that there is at least one confirmation in the chain.</p>

<p>However, upon calling</p>

<pre><code>amount_received = btc_conn.getreceivedbyaddress(new_addr)
</code></pre>

<p>I have not received any coins at that address.</p>

<p>Furthermore, when attempting to find out more information about the transaction via</p>

<pre><code>btc_conn.gettransaction(tx_id)
</code></pre>

<p>where <code>tx_id</code> is given in <code>blockchain.info/tx/tx_id</code>, I'm getting an <code>InvalidAddressOrKey</code> error.</p>

<p>Is there there anything I'm doing wrong?</p>

<bitcoind><blockchain.info>
bitcoin-python API not receiving funds
mzhang
# bitcoin-python API not receiving funds

(Asked by: username_0 on 2014-01-03)

I've just started toying around with the bitcoind Python wrapper (bitcoin-python) and have run into some issues when trying to move funds around.
On the client side, I have generated a new address, via
new_addr = conn.getnewaddress(ACCT)

Upon calling
conn.getaddressesbyaccount(ACCT)

I see new_addr within the addresses listed.
I now send a test transaction (~1mBTC) on blockchain.info to new_addr, and have waited for some period of time, so that there is at least one confirmation in the chain.
However, upon calling
amount_received = btc_conn.getreceivedbyaddress(new_addr)

I have not received any coins at that address.
Furthermore, when attempting to find out more information about the transaction via
btc_conn.gettransaction(tx_id)

where tx_id is given in blockchain.info/tx/tx_id, I'm getting an InvalidAddressOrKey error.
Is there there anything I'm doing wrong?

**Tags:** bitcoind, blockchain.info


---

## 2 answers

### Answer by username_1 on 2014-04-19. Score: 1 | Accepted answer

There's also another possibility, that's that you haven't yet downloaded all the block chain with bitcoind.
If you haven't yet started the daemon you must use this command:
bitcoind -daemon

Then, you can use the command:
bitcoind getblockcount

To check the number of blocks that the daemon has already downloaded, and compare it with the lastest block number
Your transaction is on the lastest blocks, so you must wait it to be completed, and this can take many hours.

> **Comments:**
> **username_0**: This was indeed the issue -- after a week I checked back and everything was fine. If only I had gigabit back then :)  

---

### Answer by username_2 on 2015-01-14. Score: 0

Can you see in block.io or blockchain.info that your transaction goes through?

Furthermore `gettransaction()` doesn't work unless you have `txindex=1`in your `bitcoin.conf settings`.

Look here for inspiration:

<http://cryptoassetscore.readthedocs.org/en/latest/backends.html#module-cryptoassets.core.backend.bitcoind>

Also if you are accepting Bitcoin payments in Python, [check out cryptoassets.core library for Bitcoin cryptocurrencies in Python](https://bitbucket.org/miohtama/cryptoassets). (disclaimer: I am the author)


---

