AIXChain Blockchain Document
  • INTRODUCTION
    • Getting started with smart contract development
    • Build a Decentralized Library
  • AIXC AND ARC TOKEN
    • ARC
      • ARX Transfer
      • Query ARX balance
    • ARC-10
      • Issue ARC-10 token
      • Participate ARC-10
      • ARC-10 Transfer
      • Query ARC-10 balance
      • ARC-10 Transfer in Smart Contracts
    • ARC-20
      • Protocol Interface
      • Contract Example
      • Issuing ARC-20 tokens tutorial
    • ARC-721
      • Protocol Interface
      • Contract Example
  • ACCOUNT MODEL
  • BUILD NODE
    • How to setup a Super node to produce Blocks
      • Recommended configuration & Environment
      • Example cloud services
      • Deployment guide
    • Super Representative
      • How to become a SR
      • Super Representatives Election
      • How to change witness name
  • HTTP API
    • Introduction
    • API Signature and Broadcast Flow
    • API List
      • Full Node API Overview
      • Address Utilities
        • GenerateAddress
        • CreateAddress
        • ValidateAddress
      • Accounts
        • CreateAccount
        • GetAccount
        • UpdateAccount
        • AccountPermissionUpdate
        • GetAccountBalance
      • Account Resources
        • GetAccountResource
        • GetAccountNet
        • FreezeBalance
        • UnfreezeBalance
        • GetDelegatedResource
        • GetDelegatedResourceAccountIndex
      • Query the Network
        • GetBlockByNum
        • GetBlockById
        • GetBlockByLatestNum
        • GetBlockByLimitNext
        • GetNowBlock
        • GetTransactionById
        • GetTransactionInfoById
        • GetTransactionInfoByBlockNum
        • ListNodes
        • GetNodeInfo
        • GetChainParameters
        • GetBlockBalance
      • ARC10 Token
        • GetAssetIssueByAccount
        • GetAssetIssueById
        • GetAssetIssueList
        • GetPaginatedAssetIssueList
        • TransferAsset
        • CreateAssetIssue
        • UnfreezeAsset
        • UpdateAsset
      • Transactions
        • GetContract
        • GetTransactionSign
        • BroadcastTransaction
        • BroadcastHex
        • EasyTransfer
        • EasyTransferByPrivate
        • CreateTransaction
      • Voting & SRs
        • ListWitnesses
        • CreateWitness
        • UpdateWitness
        • GetBrokerage
        • UpdateBrokerage
        • VoteWitnessAccount
        • GetReward
        • WithdrawBalance
        • GetNextMaintenanceTime
      • Smart Contracts
        • TriggerSmartContract
        • DeployContract
        • UpdateSetting
        • UpdateEnergyLimit
        • ClearAbi
        • GetContract
        • TriggerConstantContract
      • Proposals
      • Solidity Node API
    • RPC List
  • AIXCHAIN CLI
  • Aixchain SDK
    • Quickstart
    • Address and Signature
    • Sending Transaction
    • Smart Contract
  • Faucet Aixchain
  • Wallets
Powered by GitBook
On this page
  1. HTTP API
  2. API List
  3. Accounts

GetAccount

POST: http://172.104.51.182:16667/wallet/getaccount

PreviousCreateAccountNextUpdateAccount

Last updated 1 month ago

Query information about an account,Including balances, stake, votes and time, etc.

Return value:Account Object

BODY PARAMS {

addressstring (required)

visible boolean (optional)

}

Note:

  • address should be converted to a hex string

  • visible is optional,whether the address is in base58 format

Example:

curl --request POST --url --header 'Accept: application/json' --header 'Content-Type: application/json' --data ' {"address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "visible": true}

Input:

{ "address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "visible": true }

Response:

{

"address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "balance": 999729632600, "create_time": 1639021920000, "latest_opration_time": 1639056927000, "free_net_usage": 322, "latest_consume_free_time": 1639036485000, "account_resource": { "latest_consume_time_for_energy": 1639036485000 }, "owner_permission": { "permission_name": "owner", "threshold": 1, "keys": [ { "address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "weight": 1 } ] }, "active_permission": [ { "type": "Active", "id": 2, "permission_name": "active", "threshold": 1, "operations": "7fff1fc0033e0300000000000000000000000000000000000000000000000000", "keys": [ { "address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "weight": 1 } ] } ]

}

http://172.104.51.182:16667/wallet/getaccount