How to get received/sent transactions from bitcoin core?

时间:2017-08-30 08:34:51

标签: bitcoin json-rpc bitcoind

I have configured bitcoin core daemon. Using JSON-RPC I want to build web wallet. This why I need list of all incoming/outgoing transactions.

listtransactions returns only incoming transactions.

Questions:

  1. How to get outgoing & incoming transactions?
  2. In listtransactions field address - is it receiver or sender?
  3. If I can't get outgoing transactions using listtransactions, why here is may be three categories like "move", "receive" and "send"?

2 个答案:

答案 0 :(得分:1)

获取bitcoind服务器命令的listtransactions是 bitcoin-cli listtransactions(此命令将返回最近10个事务) bitcoin-cli listtransactions" *" 100 0(此命令将返回此处的最后100个事务0到100个事务)

答案 1 :(得分:0)

问题出在提供的帐户中。当我将其设置为“*”时,收到所有交易。

<强>错误 listtransactions('my_account', 100)

从右 listtransactions('*', 100)