# Get token amounts and symbols in add\_liquidity transaction?

**URL:** <https://community.bitquery.io/t/get-token-amounts-and-symbols-in-add-liquidity-transaction/1065>\
**Category:** GraphQL API\
**Tags:** support, open\
**Created:** [May 26, 2022, 4:21pm UTC](https://community.bitquery.io/t/get-token-amounts-and-symbols-in-add-liquidity-transaction/1065 "2022-05-26T16:21:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![evanct](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@evanct](https://community.bitquery.io/u/evanct)\
**Post date:** [May 26, 2022, 4:21pm UTC](https://community.bitquery.io/t/get-token-amounts-and-symbols-in-add-liquidity-transaction/1065/1 "2022-05-26T16:21:03Z")

</div>

For a given pool address I want to get all of the add\_liquidity method calls, with the token amounts of each liquidity addition.

```auto
{
  ethereum {
    smartContractCalls(
      date: {since: "2022-05-15"}
      options: {limit: 10}
      smartContractAddress: {is: "0x5D0F47B32fDd343BfA74cE221808e2abE4A53827"}
      smartContractMethod: {is: "029b2f34"}
    ) {
      date {
        date
      }
      address: caller {
        address
      }
      arguments {
        argument
        value
      }
    }
  }
}

```

The problem is the “amounts” arguments to the add\_liquidity method are just raw integers, there’s no data about which tokens they are or their decimal places.

```auto
{
        "date": {
          "date": "2022-05-17"
        },
        "address": {
          "address": "0x6cf9aa65ebad7028536e353393630e2340ca6049"
        },
        "arguments": [
          {
            "argument": "amounts",
            "value": "695538230"
          },
          {
            "argument": "amounts",
            "value": "0"
          },
          {
            "argument": "amounts",
            "value": "44748969"
          },
          {
            "argument": "amounts",
            "value": "0"
          },
          {
            "argument": "min_mint_amount",
            "value": "366376403811352844560"
          }
        ]
      },

```

Is there a way to get the token data associated with each amount value? I’d like to avoid having to query the transfers on each individual transaction.

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [May 30, 2022, 7:22am UTC](https://community.bitquery.io/t/get-token-amounts-and-symbols-in-add-liquidity-transaction/1065/2 "2022-05-30T07:22:55Z")

</div>

The best way is to get through Event APIs.

Like this [Latest Pair Created on Pancake Swap](https://graphql.bitquery.io/ide/Latest-Pair-Created-on-Pancake-Swap1)

The contract you mentioned has AddLiquidity event

> **[Ethereum Transaction Hash (Txhash) Details | Etherscan](https://etherscan.io/tx/0x0f472b8d8d0fae6a02b3e1f302c2cb17fda603d6ad5ca4fd8ceaeb3029056f5d#eventlog)**
>
> Ethereum (ETH) detailed transaction info for txhash 0x0f472b8d8d0fae6a02b3e1f302c2cb17fda603d6ad5ca4fd8ceaeb3029056f5d. The transaction status, block confirmation, gas fee, Ether (ETH), and token transfer are shown.

However I think we don’t have ABI for this, we have asked the team to update the ABI, So we can index it properly. If you find the ABI let me know.

> **[0x5d0f47b32fdd343bfa74ce221808e2abe4a53827 Smart Contract Events | Ethereum...](https://explorer.bitquery.io/ethereum/smart_contract/0x5d0f47b32fdd343bfa74ce221808e2abe4a53827/events?from=2021-05-01&till=2022-05-17)**
>
> 0x5d0f47b32fdd343bfa74ce221808e2abe4a53827 smart contract events in Ethereum Mainnet blockchain

---

<div class="post-metadata">

**Author:** ![evanct](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@evanct](https://community.bitquery.io/u/evanct)\
**Post date:** [May 31, 2022, 5:20pm UTC](https://community.bitquery.io/t/get-token-amounts-and-symbols-in-add-liquidity-transaction/1065/3 "2022-05-31T17:20:07Z")

</div>

I found out you can get the tokens in a pool by looking at the constructor arguments:

> **[Curve.fi: Compound Deposit | Address...](https://etherscan.io/address/0xeb21209ae4c2c9ff2a86aca31e123764a3b6bc06#code)**
>
> The Contract Address 0xeb21209ae4c2c9ff2a86aca31e123764a3b6bc06 page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...

(scroll to the bottom)

does bitquery have a way to get the constructor arguments ?
