1
Is it possible to get all transactions from a single address with bitcoind?
1
Is it possible to get all transactions from a single address with bitcoind?
1
For an address that is in your wallet, you can use the listreceivedbyaddress command. You would use the command as follows to get the transactions related to an address <address>:
bitcoin-cli listreceivedbyaddress 0 true true <address>
The 0 means list all transactions, including unconfirmed ones. The first true indicates that the address should still appear in the output even if there are no transactions; it just won't have any transactions listed under it. The second true means to include watching only addresses in the output. This only matters if your address is a watch only address.
If the address is not in your wallet, you cannot get all transactions for an address. This is because that would require maintaining an address index which Bitcoin Core does not do. Address indexes require more computing power and are not useful to the functioning of the node.
-1
You can use command "listtransaction".
http://chainquery.com/bitcoin-api/listtransactions
Good luck =)
-1
yes. try this command: bitcoin-cli -regtest getrawtransaction 1.
This command will give you all transactions for the required address.
That is not at all what getrawtransaction does. It gives you the raw transaction for a specific transaction. It has nothing to do with addresses. – Andrew Chow – 2018-09-16T02:01:47.793
No, that only lists transactions that affect your own wallet. – Pieter Wuille – 2018-07-12T01:34:56.273