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
2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 | |
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.***