get wallet holding balance

Get the balance of a wallet's tokens for a coin

Returns balance updates on Solana, where account owner is 8oTWME…gx92 and currency mint address is Edazh5…pump: post balance.

By Samuel Isirima · saved 11 December 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery ($dev: String, $token:String){
  Solana {
    BalanceUpdates(
      where: {BalanceUpdate: {Account: {Owner: {is: $dev}}, Currency: {MintAddress: {is: $token}}}}
    ){
      BalanceUpdate{
        balance:PostBalance(maximum:Block_Slot)
      }
    }
  }
}

Variables

{
  "dev":"8oTWME5BPpudMksqEKfn562pGobrtnEpNsG66hBBgx92",
  "token":"Edazh5SW6ts7PocPvPgjrdKyqqszcRcqdB22B8tapump"
}

Similar queries