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
3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 | |
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.***