GetAccount
POST
/wallet/getaccount
Query information about an account, including POX balance, PRC-10 balances, stake information and vote information and permissions etc.
returns
This API returns the account object, which contains the following fields:
Field | Description |
---|---|
account_name | string - The name of the account. Can be modified via the wallet/updateaccount interface. Can only be changed once. |
address | string - Account address. |
create_time | int64 - Account creation time, i.e., account activation time on the network. |
balance | int64 - POX balance. |
frozen.frozen_balance | int64 - In Stake 1.0, the total amount of POX staked by the account to obtain bandwidth. |
frozen.expire_time | int64 - In Stake 1.0, the expiration time of the stake operation performed by the account to obtain bandwidth. The account can perform the unstake operation after that time. |
delegated_frozen_balance_for_bandwidth | int64 - In Stake 1.0, the total amount of POX staked by the account for others to get bandwidth. |
acquired_delegated_frozen_balance_for_bandwidth | int64 - In Stake 1.0, the total amount of POX staked by other accounts for this account to get bandwidth. |
account_resource.frozen_balance_for_energy.frozen_balance | int64 - In Stake 1.0, the total amount of POX staked by the account to obtain energy. |
account_resource.frozen_balance_for_energy.expire_time | int64 - In Stake 1.0, the expiration time of the stake operation performed by the account to obtain energy. The account can perform the unstake operation after that time. |
account_resource.delegated_frozen_balance_for_energy | int64 - In Stake 1.0, the total amount of POX staked by the account for others to get energy. |
account_resource.acquired_delegated_frozen_balance_for_energy | int64 - In Stake 1.0, the total amount of POX staked by other accounts for this account to get energy. |
account_resource.delegated_frozenV2_balance_for_energy | int64 - In Stake 2.0, the total amount of POX staked by the account for others to get energy. |
account_resource.acquired_delegated_frozenV2_balance_for_energy | int64 - In Stake 2.0, the total amount of POX staked by other accounts for this account to get energy. |
account_resource.energy_window_size | int64 - The number of block times required for energy to fully recover. If energy_window_optimized is true, energy_window_size's decimal is 3; otherwise, it is 0. |
account_resource.energy_window_optimized | bool - Whether to optimize the energy recovery window. |
delegated_frozenV2_balance_for_bandwidth | int64 - In Stake 2.0, the total amount of POX staked by the account for others to get bandwidth. |
acquired_delegated_frozenV2_balance_for_bandwidth | int64 - In Stake 2.0, the total amount of POX staked by other accounts for this account to get bandwidth. |
frozenV2 | FreezeV2 - In Stake 2.0, the total amount of POX staked to obtain various types of resources. Does not include delegated POX. |
unfrozenV2 | UnFreezeV2 - In Stake 2.0, each unstaking information. Includes type (resource type), unfreeze_amount (amount of unstaked POX), and unfreeze_expire_time (start timestamp when unstaked POX can be withdrawn, in ms). |
account_resource.energy_usage | int64 - The amount of energy used by the account. |
account_resource.latest_consume_time_for_energy | int64 - The last time the account consumed energy. |
net_usage | int64 - The amount of bandwidth used by the account. |
free_net_usage | int64 - The amount of free bandwidth used by the account. |
net_window_size | int64 - The number of block times required for bandwidth obtained by staking to fully recover. If net_window_optimized is true, net_window_size's decimal is 3; otherwise, it is 0. |
net_window_optimized | bool - Whether to optimize the net recovery window. |
free_asset_net_usageV2 | map<string, int64> - The amount of TRC10's free bandwidth used by this account. |
votes | Vote - The number of votes for each Super Representative. |
latest_opration_time | int64 - The last operation time of the account. |
latest_consume_time | int64 - The last time the account consumed bandwidth. |
latest_consume_free_time | int64 - The last time the account consumed free bandwidth. |
is_witness | bool - Whether the account is a Super Representative. |
allowance | int64 - The amount of rewards that can be withdrawn by the account. |
latest_withdraw_time | int64 - The last time the account withdrew rewards. Super Representatives or users can only withdraw rewards once every 24 hours. |
owner_permission | Permission - Owner permissions for the account. |
witness_permission | Permission - Witness permissions for the account. |
active_permission | Permission - Active permissions for the account. |
asset | map<string, int64> - The token ID and balance of PRC10 tokens in the account. |
assetV2 | map<string, int64> - The token ID and balance of PRC10 tokens in the account. V2 is used after allowing tokens with the same name and activating the proposal. |
asset_issued_name | string - The name of the TRC10 token created by the account. |
asset_issued_ID | string - The PRC10 token ID created by the account. |
free_asset_net_usage | map<string, int64> - The amount of free bandwidth consumed by the account transferring PRC10 tokens. |
free_asset_net_usageV2 | map<string, int64> - The amount of free bandwidth consumed by the account transferring PRC10 tokens in V2. |
Request
Body Params application/json