Get account information.
GET /v2/accounts/{address}
Given a specific account public key, this call returns the account’s status, balance and spendable amounts
Authorizations
Parameters
Path Parameters
An account public key
Query Parameters
Configures whether the response object is JSON or MessagePack encoded. If not provided, defaults to JSON.
When set to all
will exclude asset holdings, application local state, created asset parameters, any created application parameters. Defaults to none
.
Responses
200
AccountResponse wraps the Account type in a response.
Account information at a given round.
Definition: data/basics/userBalance.go : AccountData
object
The account public key
[algo] total number of MicroAlgos in the account
Specifies the amount of MicroAlgos in the account, without the pending rewards.
[appl] applications local data stored in this account.
Note the raw object uses map[int] -> AppLocalState
for this type.
Stores local state associated with an application.
object
The application which this local state is for.
Represents a key-value store for use in an application.
Represents a key-value pair in an application store.
object
Represents a TEAL value.
object
[tb] bytes value.
[tt] value type. Value 1
refers to bytes, value 2
refers to uint
[ui] uint value.
Specifies maximums on the number of each type that may be stored.
object
[nbs] num of byte slices.
[nui] num of uints.
[teap] the sum of all extra application program pages for this account.
Specifies maximums on the number of each type that may be stored.
object
[nbs] num of byte slices.
[nui] num of uints.
[asset] assets held by this account.
Note the raw object uses map[int] -> AssetHolding
for this type.
Describes an asset held by an account.
Definition: data/basics/userBalance.go : AssetHolding
object
[a] number of units held.
Asset ID of the holding.
[f] whether or not the holding is frozen.
[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.
[appp] parameters of applications created by this account including app global data.
Note: the raw account uses map[int] -> AppParams
for this type.
Application index and its parameters
object
[appidx] application index.
Stores the global information associated with an application.
object
[approv] approval program.
[clearp] approval program.
The address that created this application. This is the address where the parameters and global state for this application can be found.
[epp] the amount of extra program pages available to this app.
Represents a key-value store for use in an application.
Represents a key-value pair in an application store.
object
Represents a TEAL value.
object
[tb] bytes value.
[tt] value type. Value 1
refers to bytes, value 2
refers to uint
[ui] uint value.
Specifies maximums on the number of each type that may be stored.
object
[nbs] num of byte slices.
[nui] num of uints.
Specifies maximums on the number of each type that may be stored.
object
[nbs] num of byte slices.
[nui] num of uints.
[apar] parameters of assets created by this account.
Note: the raw account uses map[int] -> Asset
for this type.
Specifies both the unique identifier and the parameters for an asset
object
Unique asset identifier
AssetParams specifies the parameters for an asset.
[apar] when part of an AssetConfig transaction.
Definition: data/transactions/asset.go : AssetParams
object
[c] Address of account used to clawback holdings of this asset. If empty, clawback is not permitted.
The address that created this asset. This is the address where the parameters for this asset can be found, and also the address where unwanted asset units can be sent in the worst case.
[dc] The number of digits to use after the decimal point when displaying this asset. If 0, the asset is not divisible. If 1, the base unit of the asset is in tenths. If 2, the base unit of the asset is in hundredths, and so on. This value must be between 0 and 19 (inclusive).
[df] Whether holdings of this asset are frozen by default.
[f] Address of account used to freeze holdings of this asset. If empty, freezing is not permitted.
[m] Address of account used to manage the keys of this asset and to destroy it.
[am] A commitment to some unspecified asset metadata. The format of this metadata is up to the application.
[an] Name of this asset, as supplied by the creator. Included only when the asset name is composed of printable utf-8 characters.
Base64 encoded name of this asset, as supplied by the creator.
[r] Address of account holding reserve (non-minted) units of this asset.
[t] The total number of units of this asset.
[un] Name of a unit of this asset, as supplied by the creator. Included only when the name of a unit of this asset is composed of printable utf-8 characters.
Base64 encoded name of a unit of this asset, as supplied by the creator.
[au] URL where more information about the asset can be retrieved. Included only when the URL is composed of printable utf-8 characters.
Base64 encoded URL where more information about the asset can be retrieved.
Whether or not the account can receive block incentives if its balance is in range at proposal time.
The round in which this account last went online, or explicitly renewed their online status.
The round in which this account last proposed the block.
MicroAlgo balance required by the account.
The requirement grows based on asset and application usage.
AccountParticipation describes the parameters used by this account in consensus protocol.
object
[sel] Selection public key (if any) currently registered for this round.
[stprf] Root of the state proof key (if any)
[voteFst] First round for which this participation is valid.
[voteKD] Number of subkeys in each batch of participation keys.
[voteLst] Last round for which this participation is valid.
[vote] root participation public key (if any) currently registered for this round.
Amount of MicroAlgos of pending rewards in this account.
[ebase] used as part of the rewards computation. Only applicable to accounts which are participating.
[ern] total rewards of MicroAlgos the account has received, including pending rewards.
The round for which this information is relevant.
Indicates what type of signature is used by this account, must be one of:
- sig
- msig
- lsig
[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.
The count of all applications that have been opted in, equivalent to the count of application local data (AppLocalState objects) stored in this account.
The count of all assets that have been opted in, equivalent to the count of AssetHolding objects held by this account.
[tbxb] The total number of bytes used by this account’s app’s box keys and values.
[tbx] The number of existing boxes created by this account’s app.
The count of all apps (AppParams objects) created by this account.
The count of all assets (AssetParams objects) created by this account.
Account information at a given round.
Definition: data/basics/userBalance.go : AccountData
object
The account public key
[algo] total number of MicroAlgos in the account
Specifies the amount of MicroAlgos in the account, without the pending rewards.
[appl] applications local data stored in this account.
Note the raw object uses map[int] -> AppLocalState
for this type.
Stores local state associated with an application.
object
The application which this local state is for.
Represents a key-value store for use in an application.
Represents a key-value pair in an application store.
object
Represents a TEAL value.
object
[tb] bytes value.
[tt] value type. Value 1
refers to bytes, value 2
refers to uint
[ui] uint value.
Specifies maximums on the number of each type that may be stored.
object
[nbs] num of byte slices.
[nui] num of uints.
[teap] the sum of all extra application program pages for this account.
Specifies maximums on the number of each type that may be stored.
object
[nbs] num of byte slices.
[nui] num of uints.
[asset] assets held by this account.
Note the raw object uses map[int] -> AssetHolding
for this type.
Describes an asset held by an account.
Definition: data/basics/userBalance.go : AssetHolding
object
[a] number of units held.
Asset ID of the holding.
[f] whether or not the holding is frozen.
[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.
[appp] parameters of applications created by this account including app global data.
Note: the raw account uses map[int] -> AppParams
for this type.
Application index and its parameters
object
[appidx] application index.
Stores the global information associated with an application.
object
[approv] approval program.
[clearp] approval program.
The address that created this application. This is the address where the parameters and global state for this application can be found.
[epp] the amount of extra program pages available to this app.
Represents a key-value store for use in an application.
Represents a key-value pair in an application store.
object
Represents a TEAL value.
object
[tb] bytes value.
[tt] value type. Value 1
refers to bytes, value 2
refers to uint
[ui] uint value.
Specifies maximums on the number of each type that may be stored.
object
[nbs] num of byte slices.
[nui] num of uints.
Specifies maximums on the number of each type that may be stored.
object
[nbs] num of byte slices.
[nui] num of uints.
[apar] parameters of assets created by this account.
Note: the raw account uses map[int] -> Asset
for this type.
Specifies both the unique identifier and the parameters for an asset
object
Unique asset identifier
AssetParams specifies the parameters for an asset.
[apar] when part of an AssetConfig transaction.
Definition: data/transactions/asset.go : AssetParams
object
[c] Address of account used to clawback holdings of this asset. If empty, clawback is not permitted.
The address that created this asset. This is the address where the parameters for this asset can be found, and also the address where unwanted asset units can be sent in the worst case.
[dc] The number of digits to use after the decimal point when displaying this asset. If 0, the asset is not divisible. If 1, the base unit of the asset is in tenths. If 2, the base unit of the asset is in hundredths, and so on. This value must be between 0 and 19 (inclusive).
[df] Whether holdings of this asset are frozen by default.
[f] Address of account used to freeze holdings of this asset. If empty, freezing is not permitted.
[m] Address of account used to manage the keys of this asset and to destroy it.
[am] A commitment to some unspecified asset metadata. The format of this metadata is up to the application.
[an] Name of this asset, as supplied by the creator. Included only when the asset name is composed of printable utf-8 characters.
Base64 encoded name of this asset, as supplied by the creator.
[r] Address of account holding reserve (non-minted) units of this asset.
[t] The total number of units of this asset.
[un] Name of a unit of this asset, as supplied by the creator. Included only when the name of a unit of this asset is composed of printable utf-8 characters.
Base64 encoded name of a unit of this asset, as supplied by the creator.
[au] URL where more information about the asset can be retrieved. Included only when the URL is composed of printable utf-8 characters.
Base64 encoded URL where more information about the asset can be retrieved.
Whether or not the account can receive block incentives if its balance is in range at proposal time.
The round in which this account last went online, or explicitly renewed their online status.
The round in which this account last proposed the block.
MicroAlgo balance required by the account.
The requirement grows based on asset and application usage.
AccountParticipation describes the parameters used by this account in consensus protocol.
object
[sel] Selection public key (if any) currently registered for this round.
[stprf] Root of the state proof key (if any)
[voteFst] First round for which this participation is valid.
[voteKD] Number of subkeys in each batch of participation keys.
[voteLst] Last round for which this participation is valid.
[vote] root participation public key (if any) currently registered for this round.
Amount of MicroAlgos of pending rewards in this account.
[ebase] used as part of the rewards computation. Only applicable to accounts which are participating.
[ern] total rewards of MicroAlgos the account has received, including pending rewards.
The round for which this information is relevant.
Indicates what type of signature is used by this account, must be one of:
- sig
- msig
- lsig
[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.
The count of all applications that have been opted in, equivalent to the count of application local data (AppLocalState objects) stored in this account.
The count of all assets that have been opted in, equivalent to the count of AssetHolding objects held by this account.
[tbxb] The total number of bytes used by this account’s app’s box keys and values.
[tbx] The number of existing boxes created by this account’s app.
The count of all apps (AppParams objects) created by this account.
The count of all assets (AssetParams objects) created by this account.
400
Bad request
An error response with optional data field.
object
object
An error response with optional data field.
object
object
401
Invalid API Token
An error response with optional data field.
object
object
An error response with optional data field.
object
object
500
Internal Error
An error response with optional data field.
object
object
An error response with optional data field.
object
object
default
Unknown Error