Bitcoin Core 0.13 -- jsonrpc interface -- conflicted transactions

2

I use bitcoind's Wallet feature to manage my bitcoins. Using json-rpc interface, how can I check that a transaction is a conflicted one? And, how can I get txhash of a transaction, that spends those same outputs and is confirmed(malleability situation)?

Yevhen

Posted 2016-11-01T11:03:29.937

Reputation: 153

Answers

3

If you call listtransaction, you should get a JSON array called walletconflicts.

If your transaction conflicts with another transaction in your mempool or with a transaction in a block, this walletconflicts array is filled with n transactions-id's that points to the tx that spends the same, conflicting inputs.

walletconflicts is also present in gettransaction

Jonas Schnelli

Posted 2016-11-01T11:03:29.937

Reputation: 5 465