Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: lorenzoasr on May 15, 2014, 10:16:48 AM



Title: How to get balance of an account with P2SH (3*) address in bitcoind
Post by: lorenzoasr on May 15, 2014, 10:16:48 AM
i'm trying to understand how to calculate/obtain balance of a P2SH address added to my running bitcoind with "addmultisigaddress..." and that is properly displayed by the command "getaddressesbyaccount" (it starts with 3* instead of 1*).

Now, i've created and spent a raw transaction to transfer some funds to that P2SH address, after a while I was able to find this transaction on blockexplorer.com and blockchain.info, so I can assume that funds are regularry transferred.

The problem is that I can't see those coins in my balance, also having more then 100 confirms (i'm using bitcoind v0.8.6). So I can imagine that bitcoind not recognize this transaction directly as mine via the blockchain (10GB+). Is there an alternative way not involving external services?

Thank you


Title: Re: How to get balance of an account with P2SH (3*) address in bitcoind
Post by: telepatheic on May 15, 2014, 11:27:09 AM
Bitcoind has only limited multi-signature support. For addmultisigaddress to work correctly you must have all the private keys required to spend that address in your wallet.


Title: Re: How to get balance of an account with P2SH (3*) address in bitcoind
Post by: kjj on May 15, 2014, 08:08:22 PM
createrawtransaction, signrawtransaction, sendrawtransaction

No external services needed.


Title: Re: How to get balance of an account with P2SH (3*) address in bitcoind
Post by: lorenzoasr on May 16, 2014, 07:25:10 AM
Hello kjj and thanks for your reply!

I used those commands to create and propagate a tx to send fund to my p2sh, my question was about how can I get notified by bitcoind about receiving this tx on my p2sh.