bitcoin-python API not receiving funds 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?
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.