Address Stats
The addressstats field allows us to retrieves statistics related to blockchain addresses.
Address statistics aggregate a Cronos address's lifetime activity into a single response: total CRO and token amounts sent and received, transaction counts, fee totals, and active-day counts. This is useful for compliance profiling, exchange account monitoring, and building summary pages for the Cronos ecosystem without scanning every transaction individually.
Here is an example that demonstrates how to retrieve statistics about the USDT smart contract:
{
ethereum (network: cronos){
addressStats(address: {is: "0x01445c31581c354b7338ac35693ab2001b50b9ae"}) {
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