How to get received/sent transactions from bitcoin core?

3.2k views Asked by At

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

There are 2 answers

1
Максим Владимирович On BEST ANSWER

Problem was in provided account. When I set it to "*" all transactions was received.

Wrong listtransactions('my_account', 100)

Right listtransactions('*', 100)

0
Saddam Husen On

For getting listtransactions of bitcoind server command is bitcoin-cli listtransactions (This command will return last 10 transactions) bitcoin-cli listtransactions "*" 100 0 (This command will return last 100 transactions here 0 to 100 transactions)