Polygon — Current balance of an address
Every token balance held by one Polygon address. Balances are cumulative, so this reads the whole history — replace the address to use it.
What it returns
- currency symbol
- currency name
- smart contract
- balance amount
- amount in USD
Filters
- balance address is 0xf9D4…7F63
The query
# Polygon - Balances & Holders - Current balance of an address
#
# Balances are cumulative state, so this cannot be answered from the realtime
# window alone - a realtime-only balance is the change over the last few
# hours, not the balance.
#
# Bitquery V2 query - send it to https://streaming.bitquery.io/graphql
#
# Uses the archive/combined dataset, which needs the historical data add-on:
# https://bitquery.io/pricing
#
# Datasets: https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
query ($address: String!) {
EVM(network: matic, dataset: combined) {
Balances(where: {Balance: {Address: {is: $address}}}) {
Currency { Symbol Name SmartContract }
Balance { Amount(selectWhere: {gt: "0"}) AmountInUSD }
}
}
}
Variables
{"address": "0xf9D48e42d0FEb477a0286B206eDbafefA3577F63"}
Similar queries
- matic-balances-specific-token · Polygon · Balances
- matic-historical-balances-address · Polygon · Balances
- matic-balances-address · Polygon · Balances
- matic-balances-history · Polygon · Balances
- matic - make query fast · Polygon · Transactions