Skip to main content

/wallet/getaccount REST API Endpoint

Gets information about an account which includes TRX balance, TRC-10 balances, stake information, vote information and permissions.

Updated on
Oct 4, 2023

/wallet/getaccount REST API Endpoint

Body Parameters

address
integer
REQUIRED
The address of the account converted into hex string
visible
boolean
A boolean value indicating whether the address is in base58 format

Returns

address
The address of the account
balance
The balance of the account
create_time
This timestamp represents the moment when the account was created, measured in milliseconds since a specific reference point
net_window_size
The size of the network window, which is a time period within which network-related operations are processed
account_resource
The resources associated with the account
energy_window_size
The size of the energy window associated with a blockchain account
owner_permission
An object that contains the transaction details with the following fields:
permission_name
The permission settings for the owner of the account
threshold
The threshold value
keys
The keys array contains one key object associated with the owner permission. The key object has the following attributes:
address
The TRON blockchain address associated with the key
weight
The weight determines the influence or importance of the key in the permission structure
active_permission
An object that represents the active permission settings for a blockchain account
type
It indicates the type of permission
id
The unique identifier to the active permission
permission_name
The name of the permission level
threshold
It determines the required number of keys to authorize actions associated with the active permission
operations
The hexadecimal value representing a bitmask or set of permissions associated with the active permission level
keys
The key objects associated with the active permission level which contains the following fields:
address
The blockchain address associated with the key
weight
The weight or importance of the key within the permission structure
frozenV2
It provides information about the different types of freezing associated with the account
type
The type of freezing
Request
1
curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccount \
2
--header 'accept: application/json' \
3
--header 'content-type: application/json' \
4
--data '
5
{
6
"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
7
"visible": true
8
}
9
'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free