# Grapql | Bitcoin coinpath - Problem with amount

**URL:** https://community.bitquery.io/t/grapql-bitcoin-coinpath-problem-with-amount/1980
**Category:** GraphQL API
**Tags:** support
**Created:** [June 28, 2024, 4:40pm UTC](https://community.bitquery.io/t/grapql-bitcoin-coinpath-problem-with-amount/1980 "2024-06-28T16:40:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Pedro](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@Pedro](https://community.bitquery.io/u/Pedro)
#### Post date: [June 28, 2024, 4:40pm UTC](https://community.bitquery.io/t/grapql-bitcoin-coinpath-problem-with-amount/1980/1 "2024-06-28T16:40:17Z")

</div>

I have an address bc1ql2ek3acvgfxrklcpmuk43hnvpnd7g52arqgf63gs7gfpq2f9seqs40yj65 with a transaction that sends only 0.29972000 BTC and i receive a lot of outputs with different amounts. What is the difference reggarding the amount and valueOut and how do you know that this address send X amount to a specific address? Check the information bellow

 ![valueOut](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/1ed0a270c09399db3a53af25f75b39b71ee8593b.png)

query:

query ($address: String!, $limit: Int!, $offset: Int!) {  
bitcoin(network: bitcoin) {  
out: coinpath(  
initialAddress: {is: $address}  
options: {direction: outbound, asc: “block.timestamp.unixtime”, limit: $limit, offset: $offset}  
) {  
sender {  
address  
}  
receiver {  
address  
}  
amount  
transaction {  
hash  
valueIn  
valueOut  
}  
block {  
timestamp {  
unixtime  
}  
}  
}  
}  
}

{“address”: “bc1ql2ek3acvgfxrklcpmuk43hnvpnd7g52arqgf63gs7gfpq2f9seqs40yj65”  
, “limit”:1000,  
“offset”: 0}

---

<div class="post-metadata">

### Author: ![Divya](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Divya](https://community.bitquery.io/u/Divya)
#### Post date: [August 1, 2024, 11:01am UTC](https://community.bitquery.io/t/grapql-bitcoin-coinpath-problem-with-amount/1980/2 "2024-08-01T11:01:31Z")

</div>

- **ValueIn:** The total amount of Bitcoin used as inputs in a transaction.
- **ValueOut:** The total amount of Bitcoin sent to the addresses specified as outputs in the transaction.

This discrepancy between the ValueIn and ValueOut suggests that the transaction might be part of a chain of transactions or possibly include the change ( check UTXO model) returned to the sender’s address.
