Class AccountData
Account information retrieved from a mirror node.
Inherited Members
Namespace: Hiero.Mirror
Assembly: Hiero.dll
Syntax
public class AccountData
Properties
| Edit this page View SourceAccount
The ID of the account
Declaration
[JsonPropertyName("account")]
public EntityId Account { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |
Alias
RFC4648 no-padding base32 encoded account alias, this appears to be inconsistent in how the mirror node reports this value, sometimes it is 33 bytes long, sometimes it is 20 bytes long, user, beware.
Declaration
[JsonPropertyName("alias")]
public string Alias { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Associations
The maximum number of automatic token associations allowed for this account (-1 means unlimited). This is the configured limit, not a count of current associations.
Declaration
[JsonPropertyName("max_automatic_token_associations")]
[JsonConverter(typeof(IntMirrorConverter))]
public int Associations { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
AutoRenewPeriod
Address Auto-Renew Period in seconds.
Declaration
[JsonPropertyName("auto_renew_period")]
[JsonConverter(typeof(LongMirrorConverter))]
public long AutoRenewPeriod { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
Balances
Structure enumerating the account balance and a capped list of token balances for the account (see AccountBalancesData).
Declaration
[JsonPropertyName("balance")]
public AccountBalancesData Balances { get; set; }
Property Value
| Type | Description |
|---|---|
| AccountBalancesData |
Created
Consensus Timestamp when this account was created
Declaration
[JsonPropertyName("created_timestamp")]
public ConsensusTimeStamp Created { get; set; }
Property Value
| Type | Description |
|---|---|
| ConsensusTimeStamp |
DeclineReward
Flag indicating that the staking reward is explicitly declined.
Declaration
[JsonPropertyName("decline_reward")]
[JsonConverter(typeof(BooleanMirrorConverter))]
public bool DeclineReward { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
DelegationAddress
The address an EIP-7702 delegation points the account's code at; null when the account has no delegation (or the mirror node does not report one).
Declaration
[JsonPropertyName("delegation_address")]
[JsonConverter(typeof(NullableEvmAddressConverter))]
public EvmAddress? DelegationAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| EvmAddress |
Deleted
Flag indicating that the account has been deleted.
Declaration
[JsonPropertyName("deleted")]
[JsonConverter(typeof(BooleanMirrorConverter))]
public bool Deleted { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Endorsement
The public endorsements required by this account.
Declaration
[JsonPropertyName("key")]
public Endorsement Endorsement { get; set; }
Property Value
| Type | Description |
|---|---|
| Endorsement |
EvmAddress
The account's public address encoded for use with the contract EVM.
Declaration
[JsonPropertyName("evm_address")]
public EvmAddress EvmAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| EvmAddress |
EvmNonce
The account's associated EVM nonce.
Declaration
[JsonPropertyName("ethereum_nonce")]
[JsonConverter(typeof(LongMirrorConverter))]
public long EvmNonce { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
Expiration
Timestamp at which the network will try to renew the account rent or delete the account if there are no funds to extend its lifetime.
Declaration
[JsonPropertyName("expiry_timestamp")]
public ConsensusTimeStamp Expiration { get; set; }
Property Value
| Type | Description |
|---|---|
| ConsensusTimeStamp |
Memo
The account's memo.
Declaration
[JsonPropertyName("memo")]
public string Memo { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PendingReward
The pending reward in tinybars the account will receive in the next reward payout. Note the value is updated at the end of each staking period and there may be delay to reflect the changes in the past staking period.
Declaration
[JsonPropertyName("pending_reward")]
[JsonConverter(typeof(LongMirrorConverter))]
public long PendingReward { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
ReceiverSignatureRequired
Flag indicating that this account must sign transactions where this account receives crypto or tokens.
Declaration
[JsonPropertyName("receiver_sig_required")]
[JsonConverter(typeof(BooleanMirrorConverter))]
public bool ReceiverSignatureRequired { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
StakePeriodStart
The staking period during which either the staking settings for this account changed (such as starting staking or changing stakedNode) or the most recent reward was earned, whichever is later. If this account is not currently staked to a node, then the value is MinValue.
Declaration
[JsonPropertyName("stake_period_start")]
public ConsensusTimeStamp StakePeriodStart { get; set; }
Property Value
| Type | Description |
|---|---|
| ConsensusTimeStamp |
StakedAccount
The account to which this account is staking
Declaration
[JsonPropertyName("staked_account_id")]
[JsonConverter(typeof(EntityIdConverter))]
public EntityId StakedAccount { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |
StakedNode
The id of the node to which this account is staking
Declaration
[JsonPropertyName("staked_node_id")]
public long? StakedNode { get; set; }
Property Value
| Type | Description |
|---|---|
| long? |