GetAccount

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

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 http://172.104.51.182:16667/wallet/getaccount --header 'Accept: application/json' --header 'Content-Type: application/json' --data ' {"address": "WFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "visible": true}

Input:

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

Response:

{

"address": "WFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "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": "WFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "weight": 1 } ] }, "active_permission": [ { "type": "Active", "id": 2, "permission_name": "active", "threshold": 1, "operations": "7fff1fc0033e0300000000000000000000000000000000000000000000000000", "keys": [ { "address": "WFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "weight": 1 } ] } ]

}

Last updated