Active ED25519 Accounts
This statistic counts unique ED25519 accounts that pay transaction fees within the chosen timeframe.
To access this Hedera network statistic (and others) via Hgraph's GraphQL & REST APIs, get started here.
Hedera Stat Name: active_ed25519_accounts
Methodology
Identifying Active ED25519 Accounts
This statistic measures the count of unique Hedera accounts that use ED25519 public keys and act as payers in at least one transaction within each reporting period.
Account and Transaction Qualification
To determine which accounts are included in this metric, the following filters are applied:
- Transaction Inclusion: Only transactions with a consensus timestamp that falls within the specified measurement window are considered.
- Payer Account Selection: For each transaction, the
payer_account_id
is used to look up the associated entity, ensuring the payer is a valid account. - ED25519 Key Requirement: The account’s public key must begin with the byte sequence
0x1220
, which is the canonical prefix for ED25519 keys in Hedera. This ensures that only accounts secured with an ED25519 key type are included. - Account Validity Checks: Accounts must have a non-null key and a non-null creation timestamp to ensure they are valid, initialized accounts present on the network.
Only transactions paid for by accounts passing all these filters are considered in the calculation.
Unique Account Counting per Period
For each defined period, the function counts the number of unique payer accounts that qualified in the above steps. Each account is counted at most once per period, regardless of how many transactions it paid for within that interval.
GraphQL API Examples
Test out these queries using our developer playground.
Fetch current active ED25519 accounts (hourly)
query ActiveEd25519AccountsNow {
ecosystem_metric(
where: {name: {_eq: "active_ed25519_accounts"}, period: {_eq: "hour"}}
order_by: {end_date: desc_nulls_last}
limit: 1
) {
total
end_date
}
}
Fetch daily active Ed25519 accounts for 1 year (timeseries)
query DailyActiveEd25519Accounts {
ecosystem_metric(
where: {name: {_eq: "active_ed25519_accounts"}, period: {_eq: "day"}}
order_by: {end_date: desc_nulls_last}
limit: 365
) {
total
end_date
}
}
Available Time Periods
The period
field supports the following values:
hour
day
week
month
quarter
year
SQL Implementation
Below is a link to the Hedera Stats GitHub repository. The repo contains the SQL function that calculates the Active ED25519 Accounts statistic outlined in this methodology.
SQL Function: ecosystem.dashboard_active_ed25519_accounts
Dependencies
- Hedera mirror node