Skip to main content

Active Addresses

The activeAddresses field allows us to retrieve details about the active addresses from the cronos blockchain.

Here is an example that demonstrates how to retrieve the number of active addresses from the cronos blockchain:

query MyQuery {
ethereum (network: cronos){
activeAddresses(date: {after: "2023-07-17T00:00:00Z"}) {
count(uniq: address)
}
}
}
Filtering Acitve Addresses

Active Addresses can be filtered using the following arguments:

  • amount: Filtered by the amount of tokens.
  • currency: Filtered by the currency the address holds.
  • date: Filter by date
  • entityId: Filter by entity id.
  • external:
  • height: Filter by block height.
  • options: Filter returned data by ordering, limiting, and constraining it. Available fields: asc, ascByInteger, desc, descByInteger, limit, limitBy, offset.
  • receiver: Filter by the address of the receiver
  • sender: Filter by the address of the sender
  • success: Filter by success of the transaction
  • time: Filter by time
  • txFrom: Filter by the address that created the transaction.
  • txHash: Filter by the transaction hash

The following are available fields for the activeAddresses:

  • address: returns the address and its annotation.
  • count: returns the aggregate count of active addresses.
  • countBigInt: returns the aggregate count of active addresses in BigInt format.