<p>Looking at <a href="http://bcoin.io/api-docs/index.html#get-coins-by-addresses" rel="nofollow noreferrer">the docs</a>, you're using the HTTP api incorrectly. </p>

<p>Try this in your terminal. Make sure to define or change the <code>$url</code> variable. </p>

<pre><code>address0='RQKEexR9ZufYP6AKbwhzdv8iuiMFDh4sNZ';
address1='RHpAA3ZmmmWF6FW8qSfaEvh1jR1nUmVYnj';

curl $url/coin/address \
  -H 'Content-Type: application/json' \
  -X POST \
  --data '{ "addresses":[ "'$address0'", "'$address1'" ]}'
</code></pre>

CC BY-SA 4.0
2018-09-20T14:32:37.637Z
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
Ankita Patidar
CC BY-SA 4.0
2018-09-20T14:33:35.680Z
What happens when you perform the req with only that address?
arshbot
CC BY-SA 4.0
2018-09-20T14:33:48.810Z
Also, I want to get the history of UTXOs of this address
Ankita Patidar
CC BY-SA 4.0
2018-09-20T14:35:13.973Z
It gives the current balance details of the address
Ankita Patidar
CC BY-SA 4.0
2018-09-20T14:35:15.690Z
I see the API you used now. What's your node's sync status?
arshbot
CC BY-SA 4.0
2018-09-20T14:36:05.020Z
Please mark this question solved then :D. 

For transaction history submit another question as it's different from balance checking.
arshbot
CC BY-SA 4.0
2018-09-20T14:18:27.487Z
2018-09-20T14:18:27.487Z
arshbot
<p>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.</p>

<address><bcoin>
How to get balance history of a bitcoin address using BCOIN node
Ankita Patidar
# How to get balance history of a bitcoin address using BCOIN node

(Asked by: username_0 on 2018-09-20)

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.

**Tags:** address, bcoin


---

## 1 answers

### Answer by username_1 on 2018-09-20. Score: 1

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'" ]}'

> **Comments:**
> **username_0**: 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  
> **username_1**: What happens when you perform the req with only that address?  
> **username_0**: Also, I want to get the history of UTXOs of this address  
> **username_0**: It gives the current balance details of the address  
> **username_1**: I see the API you used now. What's your node's sync status?  
> **username_1**: Please mark this question solved then :D.   For transaction history submit another question as it's different from balance checking.  

---

