Is there any way to get history balance of an address. Balance is unspent transaction outputs (UTXOs). I am using BCOIN node. Bcoin has given a API for /coin/address/:address but it is giving current balance as a result instead of history.
1 Answer
Looking at the docs, you're using the HTTP api incorrectly.
Try this in your terminal. Make sure to define or change the $url
variable.
address0='RQKEexR9ZufYP6AKbwhzdv8iuiMFDh4sNZ';
address1='RHpAA3ZmmmWF6FW8qSfaEvh1jR1nUmVYnj';
curl $url/coin/address \
-H 'Content-Type: application/json' \
-X POST \
--data '{ "addresses":[ "'$address0'", "'$address1'" ]}'
-
As per my understanding, it's the api to get UTXOs for multiple addresses. I want to get it for one address only. Please check this : address='R9M3aUWCcKoiqDPusJvqNkAbjffLgCqYip'; curl $url/coin/address/$address Sep 20, 2018 at 14:32
-
-
-
-