The addressstats field allows us to retrieves statistics related to blockchain addresses.
Address statistics provide an aggregate profile of an Ethereum address in a single query: total sent and received amounts, transaction counts (including calls and called transactions), fee expenditure, the number of distinct currencies involved, and the count of active days. This is useful for compliance profiling, risk scoring, explorer summary pages, and any workflow where you need a high-level view of an address's lifetime activity without pulling every individual transaction.
Here is an example that demonstrates how to retrieve statistics about the USDT smart contract:
{
ethereum {
addressStats(address: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}) {
address {
balance
callTxCount
calledTxCount
daysWithReceived
daysWithSent
daysWithTransactions
daysWithTransfers
feeAmount
otherTxCount
receiveAmount
receiveFromCurrencies
receiveTxCount
receiveFromCount
sendAmount
sendToCount
sendToCurrencies
sendTxCount
}
}
}
}
Filtering Address Stats
address: Filter by a specific address or a list of addressesoptions: Filter returned data by ordering, limiting, and constraining it. Available fields:asc,ascByInteger,desc,descByInteger,limit,limitBy,offset.
address: Returns statistics for the blockchain address