2
2
I have a tiny question regarding the Bitcoin JSON-RPC API. I have a transaction on Testnet which sends one coin to an other address owned by me (on an other account than the sender). The sending address, mtGaEd9zZU8B7aYSuQiDFZTo2wiS8dWb3c, is listed under the default account, running getaccount mtGaEd9zZU8B7aYSuQiDFZTo2wiS8dWb3c outputs indeed an empty string. The receiving address, mzcj8xYome3gmAWZG57yutv14sctPxbPV6, is listed under an account named test, as expected running getaccount mzcj8xYome3gmAWZG57yutv14sctPxbPV6 returns test. Both addresses also show up when I use getaddressesbyaccount, but the change that went to address mnUJRd9CL3GV1QbWFxJxLj2DgE1ADSB8oR, which also returns an emtpy string when using it as argument to getaccount, doesn't show up in the getaddressesbyaccount call output. Why is that? I can't sum the balances of each addresses now for a reliable account balance, only getbalance return the right answer.
1I believe I was talking about
getaddressesbyaccountnotlistreceivedbyaddress. Don't get me wrong, I'm not asking a solution (getbalanceworks just fine), I'm trying to understand whygetaddressesbyaccountdoes not work. – Jori – 2014-03-01T22:38:34.140And why would
mnUJRd9CL3GV1QbWFxJxLj2DgE1ADSB8oRhave zero confirmations? It is in the same transaction asmzcj8xYome3gmAWZG57yutv14sctPxbPV6. – Jori – 2014-03-01T22:41:40.050