Struct Account
Namespace: Algorand.Unity.Indexer
Assembly: cs.temp.dll.dll
Syntax
[AlgoApiObject("", "", 0)]
[Serializable]
public struct Account : IEquatable<Account>
Properties
Address
the account public key
Declaration
[AlgoApiField("address")]
public string Address { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Amount
[algo] total number of MicroAlgos in the account
Declaration
[AlgoApiField("amount")]
public ulong Amount { get; set; }
Property Value
| Type | Description |
|---|---|
| UInt64 |
AmountWithoutPendingRewards
specifies the amount of MicroAlgos in the account, without the pending rewards.
Declaration
[AlgoApiField("amount-without-pending-rewards")]
public ulong AmountWithoutPendingRewards { get; set; }
Property Value
| Type | Description |
|---|---|
| UInt64 |
AppsLocalState
[appl] applications local data stored in this account.
Note the raw object uses map[int] -> AppLocalState for this type.
Declaration
[AlgoApiField("apps-local-state")]
public ApplicationLocalState[] AppsLocalState { get; set; }
Property Value
| Type | Description |
|---|---|
| ApplicationLocalState[] |
AppsTotalExtraPages
[teap] the sum of all extra application program pages for this account.
Declaration
[AlgoApiField("apps-total-extra-pages")]
public Optional<ulong> AppsTotalExtraPages { get; set; }
Property Value
| Type | Description |
|---|---|
| Optional<UInt64> |
AppsTotalSchema
[tsch] stores the sum of all of the local schemas and global schemas in this account.
Note: the raw account uses StateSchema for this type.
Declaration
[AlgoApiField("apps-total-schema")]
public ApplicationStateSchema AppsTotalSchema { get; set; }
Property Value
| Type | Description |
|---|---|
| ApplicationStateSchema |
Assets
[asset] assets held by this account.
Note the raw object uses map[int] -> AssetHolding for this type.
Declaration
[AlgoApiField("assets")]
public AssetHolding[] Assets { get; set; }
Property Value
| Type | Description |
|---|---|
| AssetHolding[] |
AuthAddr
[spend] the address against which signing should be checked. If empty, the address of the current account is used. This field can be updated in any transaction by setting the RekeyTo field.
Declaration
[AlgoApiField("auth-addr")]
public Address AuthAddr { get; set; }
Property Value
| Type | Description |
|---|---|
| Address |
ClosedAtRound
Round during which this account was most recently closed.
Declaration
[AlgoApiField("closed-at-round")]
public Optional<ulong> ClosedAtRound { get; set; }
Property Value
| Type | Description |
|---|---|
| Optional<UInt64> |
CreatedApps
[appp] parameters of applications created by this account including app global data.
Note: the raw account uses map[int] -> AppParams for this type.
Declaration
[AlgoApiField("created-apps")]
public Application[] CreatedApps { get; set; }
Property Value
| Type | Description |
|---|---|
| Application[] |
CreatedAssets
[apar] parameters of assets created by this account.
Note: the raw account uses map[int] -> Asset for this type.
Declaration
[AlgoApiField("created-assets")]
public Asset[] CreatedAssets { get; set; }
Property Value
| Type | Description |
|---|---|
| Asset[] |
CreatedAtRound
Round during which this account first appeared in a transaction.
Declaration
[AlgoApiField("created-at-round")]
public Optional<ulong> CreatedAtRound { get; set; }
Property Value
| Type | Description |
|---|---|
| Optional<UInt64> |
Deleted
Whether or not this account is currently closed.
Declaration
[AlgoApiField("deleted")]
public Optional<bool> Deleted { get; set; }
Property Value
| Type | Description |
|---|---|
| Optional<Boolean> |
Participation
Declaration
[AlgoApiField("participation")]
public AccountParticipation Participation { get; set; }
Property Value
| Type | Description |
|---|---|
| AccountParticipation |
PendingRewards
amount of MicroAlgos of pending rewards in this account.
Declaration
[AlgoApiField("pending-rewards")]
public ulong PendingRewards { get; set; }
Property Value
| Type | Description |
|---|---|
| UInt64 |
RewardBase
[ebase] used as part of the rewards computation. Only applicable to accounts which are participating.
Declaration
[AlgoApiField("reward-base")]
public Optional<ulong> RewardBase { get; set; }
Property Value
| Type | Description |
|---|---|
| Optional<UInt64> |
Rewards
[ern] total rewards of MicroAlgos the account has received, including pending rewards.
Declaration
[AlgoApiField("rewards")]
public ulong Rewards { get; set; }
Property Value
| Type | Description |
|---|---|
| UInt64 |
Round
The round for which this information is relevant.
Declaration
[AlgoApiField("round")]
public ulong Round { get; set; }
Property Value
| Type | Description |
|---|---|
| UInt64 |
SigType
Indicates what type of signature is used by this account, must be one of:
- sig
- msig
- lsig
- or null if unknown
Declaration
[AlgoApiField("sig-type")]
public SignatureType SigType { get; set; }
Property Value
| Type | Description |
|---|---|
| SignatureType |
Status
[onl] delegation status of the account's MicroAlgos
- Offline - indicates that the associated account is delegated.
- Online - indicates that the associated account used as part of the delegation pool.
- NotParticipating - indicates that the associated account is neither a delegator nor a delegate.
Declaration
[AlgoApiField("status")]
public string Status { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
TotalAppsOptedIn
The count of all applications that have been opted in, equivalent to the count of application local data (AppLocalState objects) stored in this account.
Declaration
[AlgoApiField("total-apps-opted-in")]
public ulong TotalAppsOptedIn { get; set; }
Property Value
| Type | Description |
|---|---|
| UInt64 |
TotalAssetsOptedIn
The count of all assets that have been opted in, equivalent to the count of AssetHolding objects held by this account.
Declaration
[AlgoApiField("total-assets-opted-in")]
public ulong TotalAssetsOptedIn { get; set; }
Property Value
| Type | Description |
|---|---|
| UInt64 |
TotalBoxBytes
For app-accounts only. The total number of bytes allocated for the keys and values of boxes which belong to the associated application.
Declaration
[AlgoApiField("total-box-bytes")]
public ulong TotalBoxBytes { get; set; }
Property Value
| Type | Description |
|---|---|
| UInt64 |
TotalBoxes
For app-accounts only. The total number of boxes which belong to the associated application.
Declaration
[AlgoApiField("total-boxes")]
public ulong TotalBoxes { get; set; }
Property Value
| Type | Description |
|---|---|
| UInt64 |
TotalCreatedApps
The count of all apps (AppParams objects) created by this account.
Declaration
[AlgoApiField("total-created-apps")]
public ulong TotalCreatedApps { get; set; }
Property Value
| Type | Description |
|---|---|
| UInt64 |
TotalCreatedAssets
The count of all assets (AssetParams objects) created by this account.
Declaration
[AlgoApiField("total-created-assets")]
public ulong TotalCreatedAssets { get; set; }
Property Value
| Type | Description |
|---|---|
| UInt64 |
Methods
Equals(Account)
Declaration
public bool Equals(Account other)
Parameters
| Type | Name | Description |
|---|---|---|
| Account | other |
Returns
| Type | Description |
|---|---|
| Boolean |