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.

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.


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 – A. Patidar Sep 20 at 14:32
  • What happens when you perform the req with only that address? – arshbot Sep 20 at 14:33
  • Also, I want to get the history of UTXOs of this address – A. Patidar Sep 20 at 14:33
  • It gives the current balance details of the address – A. Patidar Sep 20 at 14:35
  • I see the API you used now. What's your node's sync status? – arshbot Sep 20 at 14:35

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.