Active ECDSA Keyed Accounts
Accounts secured by an ECDSA (secp256k1) key that successfully initiate (pay for) at least one transaction within the selected timeframe. This metric highlights the adoption of Ethereum‑compatible wallets on Hedera.
Note: Documentation for these "Hedera Stats" is currently being developed.
To access this Hedera network statistic (and others) via Hgraph's GraphQL & REST APIs, get started here.
Overview
The total number of unique accounts that:
- Have an ECDSA (secp256k1) public key associated with the account.
- Submit (pay for) at least one successful transaction (
result = 22
) aspayer_account_id
during the measurement window.
This subset of active accounts represents users relying on Ethereum‑style keys and wallets.
Methodology
- Query the mirror node
entity
table for accounts whosekey
field encodes a compressed ECDSA (secp256k1) public key (33 bytes, prefix0x02
or0x03
). - Join these accounts with the
transaction
table onpayer_account_id
. - Filter transactions by
result = 22
(SUCCESS
). - Count distinct accounts during the selected time range.
- Exclude accounts with non-ECDSA keys.
GraphQL API Endpoint: active_ecdsa_keyed_accounts
Note: This is a placeholder endpoint—final name and schema will be confirmed.
GraphQL API Examples
Coming soon: Query examples using mirror node schema or pre-aggregated metrics endpoint.
SQL Implementation
Coming soon: SQL logic for joining entity
and transaction
tables based on ECDSA key encoding and result filtering.
SELECT COUNT(DISTINCT e.id) AS active_ecdsa_keyed_accounts
FROM entity e
JOIN transaction t
ON t.payer_account_id = e.id
WHERE e.type = 'ACCOUNT'
-- skip the first two bytes of the serialized Key and check the actual key prefix
AND encode(substring(e.key FROM 3 FOR 1), 'hex') IN ('02', '03')
AND t.result = 22 -- SUCCESS
AND t.consensus_timestamp >= (EXTRACT(EPOCH FROM NOW() - INTERVAL '90 days') * 1e9)::BIGINT;
Dependencies
- Hedera mirror node
entity
table with account key metadatatransaction
table with transaction results