Grapql | Bitcoin coinpath - Problem with amount

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

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}

  • 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.