Account
Native accounts on Concordium are created through an Account Creation transaction.
ccdexplorer.grpc_client.CCD_Types.CCD_AccountInfo
¶
Information about the account at a particular point in time.
GRPC documentation: concordium.v2.AccountInfo
Attributes:
| Name | Type | Description |
|---|---|---|
sequence_number |
CCD_SequenceNumber
|
Next sequence number to be used for transactions signed from this account. |
amount |
microCCD
|
Current (unencrypted) balance of the account. |
schedule |
CCD_ReleaseSchedule
|
Release schedule for any locked up amount. This could be an empty release schedule. |
creds |
dict[int, CCD_AccountCredential]
|
Map of all currently active credentials on the account. This includes public keys that can sign for the given credentials, as well as any revealed attributes. This map always contains a credential with index 0. |
threshold |
CCD_AccountThreshold
|
Lower bound on how many credentials must sign any given transaction from this account. |
encrypted_balance |
CCD_EncryptedBalance
|
The encrypted balance of the account. |
encryption_key |
CCD_EncryptionKey
|
The public key for sending encrypted balances to the account. |
index |
CCD_AccountIndex
|
Internal index of the account. Accounts on the chain get sequential indices. These should generally not be used outside of the chain, the account address is meant to be used to refer to accounts. |
stake |
Optional[CCD_AccountStakingInfo]
|
Present if the account is a validator or delegator. In that case it is the information about the validator or delegator. |
address |
CCD_AccountAddress
|
Canonical address of the account. This is derived from the first credential that created the account. |
cooldowns |
list[CCD_Cooldown]
|
The stake on the account that is in cooldown. |
available_balance |
microCCD
|
The available (unencrypted) balance of the account that can be transferred or used to pay for transactions. |
Source code in .venv/lib/python3.13/site-packages/ccdexplorer/grpc_client/CCD_Types/__init__.py
2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 | |
Canonical vs alias¶
Accounts can expose multiple aliases (derived sub-addresses). CCDExplorer stores:
- account_address – the full alias that appeared on-chain.
- account_address_canonical – the first 29 characters shared by every alias of the account.
See Alias Addresses for details on how we normalize aliases across services.
How is an account stored in the system?¶
ms_accountslistens for theaccount_creationCelery topic and inserts a document intoall_account_addresseswith both the canonical ID and the newest alias.- The actual account metadata (balances, delegation, credentials) is retrieved on demand via
GetAccountInfo.
Long-running analytics snapshots (e.g.accounts_retrieval) persist denormalized copies for historical analysis. - Helper collections (statistics, account graphs, notification preferences) use the canonical ID to ensure aliases roll up correctly.***