# Getting the AssetClosingAmount for a transaction

**URL:** <https://forum.algorand.co/t/getting-the-assetclosingamount-for-a-transaction/7586>\
**Category:** General\
**Tags:** smart-contracts\
**Created:** [August 12, 2022, 7:54am UTC](https://forum.algorand.co/t/getting-the-assetclosingamount-for-a-transaction/7586 "2022-08-12T07:54:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fralgo](https://avatars.discourse-cdn.com/v4/letter/f/7c8e57/32.png) [@Fralgo](https://forum.algorand.co/u/Fralgo)\
**Post date:** [August 12, 2022, 7:54am UTC](https://forum.algorand.co/t/getting-the-assetclosingamount-for-a-transaction/7586/1 "2022-08-12T07:54:23Z")

</div>

The transaction below sends a remainder USDT from the close to an another address, but I the api v2 does not provide the closing amount, even though the explorer does have a closing amount. Does anyone know where I can find the asset closing amount using the API?

[https://algoexplorer.io/tx/G6RUAGPKXL2OTHCUJUSCGEP75P2YHEQLAJZR4OIM3R7N7YFFOIGQ](https://algoexplorer.io/tx/G6RUAGPKXL2OTHCUJUSCGEP75P2YHEQLAJZR4OIM3R7N7YFFOIGQ)

---

<div class="post-metadata">

**Author:** ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forum.algorand.co/u/fabrice)\
**Post date:** [August 12, 2022, 2:37pm UTC](https://forum.algorand.co/t/getting-the-assetclosingamount-for-a-transaction/7586/2 "2022-08-12T14:37:29Z")

</div>

You need to use the indexer API for that:

```auto
$ curl "https://algoindexer.algoexplorerapi.io/v2/transactions/G6RUAGPKXL2OTHCUJUSCGEP75P2YHEQLAJZR4OIM3R7N7YFFOIGQ?pretty"
{
  "current-round": 22790489,
  "transaction": {
    "asset-transfer-transaction": {
      "amount": 10000,
      "asset-id": 312769,
      "close-amount": 90000,
      "close-to": "LTDTBYRGVANCZRYWAKUZDRMCDYOTJWSSNT5ZCUTBQKUTRANLLCQOUSZWKU",
      "receiver": "LTDTBYRGVANCZRYWAKUZDRMCDYOTJWSSNT5ZCUTBQKUTRANLLCQOUSZWKU"
    },
    "close-rewards": 0,
    "closing-amount": 0,
    "confirmed-round": 8786948,
    "fee": 1000,
    "first-valid": 8786943,
    "genesis-hash": "wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=",
    "genesis-id": "mainnet-v1.0",
    "id": "G6RUAGPKXL2OTHCUJUSCGEP75P2YHEQLAJZR4OIM3R7N7YFFOIGQ",
    "intra-round-offset": 11,
    "last-valid": 8787042,
    "receiver-rewards": 0,
    "round-time": 1598864389,
    "sender": "R7CJKCJMLSRYZ6RKJ7YIZ77GAB4CLB7QOQSF7GT2E4AHRZZPYUY4IHV5QA",
    "sender-rewards": 0,
    "signature": {
      "sig": "JqiBie0uWeCgK5z3hE2R3mYGwzdpuWNbAgoEdpeFclV2Jaq8kJpFYOZZmzGKonTN3PQCjifZ9heEFpnrU0AIAA=="
    },
    "tx-type": "axfer"
  }
}

```

---

<div class="post-metadata">

**Author:** ![Fralgo](https://avatars.discourse-cdn.com/v4/letter/f/7c8e57/32.png) [@Fralgo](https://forum.algorand.co/u/Fralgo)\
**Post date:** [August 13, 2022, 9:49pm UTC](https://forum.algorand.co/t/getting-the-assetclosingamount-for-a-transaction/7586/3 "2022-08-13T21:49:39Z")

</div>

Turns out only that transaction does not have the “aca” in the call. The next one did have it.
