test esyt

Returns the latest balance update on Solana, where currency mint address is Axrieh…pump, side currency mint address is So1111…1112 and trade price is above 0: account owner, post balance and price in USD.

By Divyasshree · saved 12 February 2025 · run 7 times · Bitquery API v2

What it returns

Filters

The query

query TopHoldersWithPriceAndSupply($token: String!) {
  topHolders: Solana {
    BalanceUpdates(
      where: { 
        BalanceUpdate: { 
          Currency: { MintAddress: { is: $token } }
        }
      }
      orderBy: { descendingByField: "BalanceUpdate_balance_maximum" }
      limit: { count: 5000 }
    ) {
      BalanceUpdate {
        Account {
          Owner
        }
        balance: PostBalance(maximum: Block_Slot)
      }
    }
  }
  tokenPrice: Solana {
    DEXTradeByTokens(
      orderBy: { descending: Block_Time }
      limit: { count: 1 }
      where: {
        Trade: {
          Currency: { MintAddress: { is: $token } },
          Side: {
            Currency: { MintAddress: { is: "So11111111111111111111111111111111111111112" } }
          },
          Price: { gt: 0 }
        },
        Transaction: { Result: { Success: true } }
      }
    ) {
      Trade {
        PriceInUSD
      }
    }
  }
  tokenSupply: Solana {
    TokenSupplyUpdates(
      limit: { count: 1 }
      orderBy: { descending: Block_Time }
      where: { TokenSupplyUpdate: { Currency: { MintAddress: { is: $token } } } }
    ) {
      TokenSupplyUpdate {
        PostBalance
      }
    }
  }
}

Variables

{
  "token":"AxriehR6Xw3adzHopnvMn7GcpRFcD41ddpiTWMg6pump"
}

Similar queries