Polluxchain
  1. Accounts
Polluxchain
  • Background
  • API key
    • Rate Limits
    • Security Settings
  • Full Node HTTP API
    • Address Utilities
      • ValidateAddress
    • Transactions
      • BroadcastTransaction
      • BroadcastHex
      • CreateTransaction
    • Accounts
      • CreateAccount
        POST
      • GetAccount
        POST
      • UpdateAccount
        POST
      • AccountPermissionUpdate
        POST
      • GetAccountBalance
        POST
    • Account Resources
      • GetAccountResource
      • GetAccountNet
      • FreezeBalance
      • UnfreezeBalanceV2
      • CancelAllUnfreezeV2
      • DelegateResource
      • UnDelegateResource
      • WithdrawExpireUnfreeze
      • GetAvailableUnfreezeCount
      • GetCanWithdrawUnfreezeAmount
      • GetCanDelegatedMaxSize
      • GetDelegatedResourceV2
      • GetDelegatedResourceAccountIndexV2
    • Query The Network
      • GetBlock
      • GetBlockByNum
      • GetBlockById
      • GetBlockByLatestNum
      • GetBlockByLimitNext
      • GetNowBlock
      • GetTransactionById
      • GetTransactionInfoById
      • GetTransactionInfoByBlockNum
      • ListNodes
      • GetNodeInfo
      • GetChainParameters
      • GetBlockBalance
      • GetEnergyPrices
      • GetBandwidthPrices
      • GetBurnTRX
      • GetApprovedList
    • Smart Contract
      • GetContract
      • GetContractInfo
      • TriggerSmartContract
      • TriggerConstantContract
      • DeployContract
      • UpdateSetting
      • UpdateEnergyLimit
      • ClearAbi
      • EstimateEnergy
    • Voting & SRs
      • ListWitnesses
      • CreateWitness
      • UpdateWitness
      • GetBrokerage
      • UpdateBrokerage
      • VoteWitnessAccount
      • GetReward
      • WithdrawBalance
      • GetNextMaintenanceTime
    • Proposals
      • ListProposals
      • GetProposalById
      • ProposalCreate
      • ProposalApprove
      • ProposalDelete
    • Pending pool
      • GetTransactionListFromPending
      • GetTransactionFromPending
      • GetPendingSize
  • Full Node Solidity HTTP API
    • Transactions
      • GetTransactionById
      • GetTransactionInfoById
      • GetTransactionInfoByBlockNum
      • GetTransactionCountByBlockNum
    • Blocks
      • GetBlock
      • GetNowBlock
      • GetBlockByNum
      • GetBlockById
      • GetBlockByLatestNum
      • GetBlockByLimitNext
    • Account Resources
      • GetAccount
      • GetDelegatedResource
      • GetDelegatedResourceAccountIndex
      • GetCanDelegatedMaxSize
      • GetCanWithdrawUnfreezeAmount
      • GetDelegatedResourceAccountIndexV2
      • GetAvailableUnfreezeCount
    • Node & Chain
      • GetNodeInfo
      • GetBurnPOX
    • Smart Contracts
      • TriggerConstantContract
      • EstimateEnergy
    • Voting & SRs
      • ListWitnesses
      • GetReward
      • GetBrokerage
  • Full Node JSON-RPC API
    • Overview
    • buildTransaction
    • eth
      • eth_accounts
      • eth_blockNumber
      • eth_call
      • eth_chainId
      • eth_coinbase
      • eth_estimateGas
      • eth_gasPrice
      • eth_getBalance
      • eth_getBlockByHash
      • eth_getBlockByNumber
      • eth_getBlockTransactionCountByHash
      • eth_getBlockTransactionCountByNumber
      • eth_getCode
      • eth_getStorageAt
      • eth_getTransactionByBlockHashAndIndex
      • eth_getTransactionByBlockNumberAndIndex
      • eth_getTransactionByHash
      • eth_getTransactionReceipt
      • eth_getWork
      • eth_protocolVersion
      • eth_syncing
      • eth_newFilter
      • eth_newBlockFilter
      • eth_getFilterChanges
      • eth_getFilterLogs
      • eth_uninstallFilter
      • eth_getLogs
    • net
      • net_listening
      • net_peerCount
      • net_version
    • web3
      • web3_clientVersion
      • web3_sha3
  • PolluxWeb
    • address
    • createAccount
    • createRandom
    • fromAscii
    • fromDecimal
    • fromMnemonic
    • fromUtf8
    • getEventByTransactionID
    • getEventResult
    • isAddress
    • isConnected
    • setHeader
    • setDefaultBlock
    • setPrivateKey
    • setAddress
    • sha3
    • toAscii
    • toBigNumber
    • toDecimal
    • toHex
    • toRAM
    • toUtf8
    • BigNumber
    • polluxweb.trx
      • getAccount
      • getAccountResources
      • getApprovedList
      • getAvailableUnfreezeCount
      • getBalance
      • getBandwidth
      • getBlock
      • getBlockByHash
      • getBlockByNumber
      • getBlockRange
      • getBlockTransactionCount
      • getBrokerage
      • getCanDelegatedMaxSize
      • getCanWithdrawUnfreezeAmount
      • getChainParameters
      • getConfirmedTransaction
      • getContract
      • getCurrentBlock
      • getDelegatedResourceV2
      • getDelegatedResourceAccountIndexV2
      • getExchangeByID
      • getNodeInfo
      • getReward
      • getTokenByID
      • getTokenFromID
      • getTokenListByName
      • getTokensIssuedByAddress
      • getTransaction
      • getTransactionFromBlock
      • getTransactionInfo
      • getUnconfirmedBalance
      • getUnconfirmedBrokerage
      • getUnconfirmedReward
      • listExchanges
      • listExchangesPaginated
      • listNodes
      • listProposals
      • listSuperRepresentatives
      • listTokens
      • sendRawTransaction
      • sendHexTransaction
      • sendToken
      • sendTransaction
      • sign
      • signMessageV1
      • signMessageV2
      • timeUntilNextVoteCycle
      • multiSign
      • verifyMessage
      • verifyMessageV2
      • _signTypedData
      • verifyTypedData
    • polluxweb.transactionBuilder
      • addUpdateData
      • applyForSR
      • cancelUnfreezeBalanceV2
      • createAccount
      • createAsset
      • createProposal
      • createSmartContract
      • createToken
      • delegateResource
      • deleteProposal
      • estimateEnergy
      • extendExpiration
      • freezeBalance
      • freezeBalanceV2
      • injectExchangeTokens
      • purchaseAsset
      • purchaseToken
      • sendAsset
      • sendToken
      • sendTrx
      • tradeExchangeTokens
      • triggerConfirmedConstantContract
      • triggerConstantContract
      • triggerSmartContract
      • undelegateResource
      • unfreezeBalance
      • unfreezeBalanceV2
      • updateSetting
      • updateAccountPermissions
      • updateAsset
      • updateBrokerage
      • updateEnergyLimit
      • updateToken
      • vote
      • voteProposal
      • withdrawBlockRewards
      • withdrawExchangeTokens
      • withdrawExpireUnfreeze
    • poxweb.contract
      • polluxweb.contract.new
      • polluxweb.contract()
      • method.call()
      • method.send()
    • polluxweb.utils
      • transaction.txJsonToPb
      • transaction.txPbToTxID
      • message.hashMessage
  • Pollux CLI
    • Pollux CLI
  1. Accounts

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:

FieldDescription
account_namestring - The name of the account. Can be modified via the wallet/updateaccount interface. Can only be changed once.
addressstring - Account address.
create_timeint64 - Account creation time, i.e., account activation time on the network.
balanceint64 - POX balance.
frozen.frozen_balanceint64 - In Stake 1.0, the total amount of POX staked by the account to obtain bandwidth.
frozen.expire_timeint64 - 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_bandwidthint64 - In Stake 1.0, the total amount of POX staked by the account for others to get bandwidth.
acquired_delegated_frozen_balance_for_bandwidthint64 - 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_balanceint64 - In Stake 1.0, the total amount of POX staked by the account to obtain energy.
account_resource.frozen_balance_for_energy.expire_timeint64 - 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_energyint64 - 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_energyint64 - 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_energyint64 - 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_energyint64 - In Stake 2.0, the total amount of POX staked by other accounts for this account to get energy.
account_resource.energy_window_sizeint64 - 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_optimizedbool - Whether to optimize the energy recovery window.
delegated_frozenV2_balance_for_bandwidthint64 - In Stake 2.0, the total amount of POX staked by the account for others to get bandwidth.
acquired_delegated_frozenV2_balance_for_bandwidthint64 - In Stake 2.0, the total amount of POX staked by other accounts for this account to get bandwidth.
frozenV2FreezeV2 - In Stake 2.0, the total amount of POX staked to obtain various types of resources. Does not include delegated POX.
unfrozenV2UnFreezeV2 - 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_usageint64 - The amount of energy used by the account.
account_resource.latest_consume_time_for_energyint64 - The last time the account consumed energy.
net_usageint64 - The amount of bandwidth used by the account.
free_net_usageint64 - The amount of free bandwidth used by the account.
net_window_sizeint64 - 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_optimizedbool - Whether to optimize the net recovery window.
free_asset_net_usageV2map<string, int64> - The amount of TRC10's free bandwidth used by this account.
votesVote - The number of votes for each Super Representative.
latest_opration_timeint64 - The last operation time of the account.
latest_consume_timeint64 - The last time the account consumed bandwidth.
latest_consume_free_timeint64 - The last time the account consumed free bandwidth.
is_witnessbool - Whether the account is a Super Representative.
allowanceint64 - The amount of rewards that can be withdrawn by the account.
latest_withdraw_timeint64 - The last time the account withdrew rewards. Super Representatives or users can only withdraw rewards once every 24 hours.
owner_permissionPermission - Owner permissions for the account.
witness_permissionPermission - Witness permissions for the account.
active_permissionPermission - Active permissions for the account.
assetmap<string, int64> - The token ID and balance of PRC10 tokens in the account.
assetV2map<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_namestring - The name of the TRC10 token created by the account.
asset_issued_IDstring - The PRC10 token ID created by the account.
free_asset_net_usagemap<string, int64> - The amount of free bandwidth consumed by the account transferring PRC10 tokens.
free_asset_net_usageV2map<string, int64> - The amount of free bandwidth consumed by the account transferring PRC10 tokens in V2.

Request

Body Params application/json
object {0}
Example
{
  "address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
  "visible": true
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/wallet/getaccount' \
--header 'Content-Type: application/json' \
--data-raw '{
  "address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
  "visible": true
}'

Responses

🟢200Success
application/json
Body
object {0}
Examples
{
    "address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
    "balance": 12798721520,
    "create_time": 1637411046000,
    "latest_opration_time": 1715145693000,
    "latest_consume_time": 1728490236000,
    "latest_consume_free_time": 1715145693000,
    "net_window_size": 28800000,
    "net_window_optimized": true,
    "account_resource": {
        "latest_consume_time_for_energy": 1727095980000,
        "energy_window_size": 28800000,
        "energy_window_optimized": true
    },
    "owner_permission": {
        "permission_name": "owner",
        "threshold": 1,
        "keys": [
            {
                "address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
                "weight": 1
            }
        ]
    },
    "active_permission": [
        {
            "type": "Active",
            "id": 2,
            "permission_name": "active",
            "threshold": 1,
            "operations": "7fff1fc0033e0300000000000000000000000000000000000000000000000000",
            "keys": [
                {
                    "address": "PJAnjvL467LtS32AMmDWetNaP1AjNZddnx",
                    "weight": 1
                }
            ]
        }
    ],
    "frozenV2": [
        {},
        {
            "type": "ENERGY"
        },
        {
            "type": "POX_Power"
        }
    ],
    "asset_optimized": true
}
Previous
CreateAccount
Next
UpdateAccount
Built with