Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: winters03 on September 07, 2016, 10:00:44 PM



Title: Can bitcoind be used with third party wallet?
Post by: winters03 on September 07, 2016, 10:00:44 PM
The 'raw transaction' RPCs look interesting for that

Code:
== Rawtransactions ==
createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,"data":"hex",...} ( locktime )
decoderawtransaction "hexstring"
decodescript "hex"
fundrawtransaction "hexstring" includeWatching
getrawtransaction "txid" ( verbose )
sendrawtransaction "hexstring" ( allowhighfees )
signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )


Title: Re: Can bitcoind be used with third party wallet?
Post by: PremiumCodeX on September 08, 2016, 09:15:38 AM
No, as far as I know the original bitcoind does not work with 3rd party wallets. Not without modification. However, there was a suggestion related a mod that could make it possible so if anyone knows anything about this "modified bitcoind", let me know please!


Title: Re: Can bitcoind be used with third party wallet?
Post by: winters03 on September 08, 2016, 09:54:24 AM
So the raw transaction API has to reference the local wallet? You can't just put arbitrary data in that and expect it to work? I'm thinking of a hypothetical third party wallet that keeps track of it's own bitcoin keys, and then tells the bitcoind server to broadcast a raw transaction involving them.


Title: Re: Can bitcoind be used with third party wallet?
Post by: Holliday on September 10, 2016, 05:52:33 PM
I don't know the technical details of the transaction operations, but Armory (which maintains it's own private keys) uses the Bitcoin client (bitcoind or Core) to broadcast transactions and for the block chain data as well.

In other words, the answer to your topic question is yes.

Ignore the ignorant signature spammer posting misinformation in order to pad his post count.


Title: Re: Can bitcoind be used with third party wallet?
Post by: achow101 on September 10, 2016, 06:13:39 PM
So the raw transaction API has to reference the local wallet? You can't just put arbitrary data in that and expect it to work? I'm thinking of a hypothetical third party wallet that keeps track of it's own bitcoin keys, and then tells the bitcoind server to broadcast a raw transaction involving them.
Yep, that will work perfectly fine. The raw transaction apis allow you to specify everything you need to create, sign, and broadcast a transaction. It does not require the use of the wallet. With signing, you can specify the private key and the referenced outputs. If you enable the txindex, you don't need to specify the referenced outputs.

I don't know the technical details of the transaction operations, but Armory (which maintains it's own private keys) uses the Bitcoin client (bitcoind or Core) to broadcast transactions and for the block chain data as well.
Armory doesn't use the RPCs. It actually connects to Bitcoin Core through the p2p network in order to broadcast the transactions.