# Balances of only 2 tokens in an ethereum address

**URL:** <https://community.bitquery.io/t/balances-of-only-2-tokens-in-an-ethereum-address/1542>\
**Category:** GraphQL API\
**Tags:** dex, balance\
**Created:** [June 24, 2023, 11:10pm UTC](https://community.bitquery.io/t/balances-of-only-2-tokens-in-an-ethereum-address/1542 "2023-06-24T23:10:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![0xCryptoMag](https://avatars.discourse-cdn.com/v4/letter/0/6de8d8/32.png) [@0xCryptoMag](https://community.bitquery.io/u/0xCryptoMag)\
**Post date:** [June 24, 2023, 11:10pm UTC](https://community.bitquery.io/t/balances-of-only-2-tokens-in-an-ethereum-address/1542/1 "2023-06-24T23:10:53Z")

</div>

I am trying to get the balance of ONLY 2 tokens in a Liquidity Pool address. I know that you can do this to get ALL the tokens in an address

```auto
{
  ethereum(network: ethereum) {
    address(address: {is: "0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640"}) {
      balances {
        currency {
          address
          symbol
        }
      }
    }
  }
}

```

but I’m only interested, in this example, WETH and USDC.

I tried

```auto
{
  ethereum(network: ethereum) {
    address(address: {is: "0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640"}) {
      balances(currency: {in: ["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]})
    }
  }
}

```

and balances(currency {is: [“etc etc”]}) and the IDE was throwing errors.

---

<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:** [June 29, 2023, 4:48pm UTC](https://community.bitquery.io/t/balances-of-only-2-tokens-in-an-ethereum-address/1542/2 "2023-06-29T16:48:38Z")

</div>

> [@0xCryptoMag](#):
>
> ```auto
> address(address: {is: "0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640"}) {
> balances(currency: {in: ["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]})
> }
> 
> ```

this query is working for me:

```auto
{
  ethereum(network: ethereum) {
    address(address: {is: "0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640"}) {
      balances(
        currency: {in: ["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]}
      ) {
        currency {
          address
          symbol
        }
        value
      }
    }
  }
}

```

I can see the result:

```auto
{
  "ethereum": {
    "ethereum": {
      "address": [
        {
          "balances": [
            {
              "currency": {
                "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
                "symbol": "USDC"
              },
              "value": 102146375.665024
            },
            {
              "currency": {
                "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "symbol": "WETH"
              },
              "value": 67762.28003756491
            }
          ]
        }
      ]
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![0xCryptoMag](https://avatars.discourse-cdn.com/v4/letter/0/6de8d8/32.png) [@0xCryptoMag](https://community.bitquery.io/u/0xCryptoMag)\
**Post date:** [June 29, 2023, 7:46pm UTC](https://community.bitquery.io/t/balances-of-only-2-tokens-in-an-ethereum-address/1542/3 "2023-06-29T19:46:06Z")

</div>

Thank you very much 🙂 I guess my problem was I didn’t realize the purple currency was to filter, and the blue one was to specify an output for the result, and that they were both required for the query.
