Dear users,
To improve the loading speed of the account page, the TRONSCAN team is going to make a few adjustments to the /api/account interface at 14:00:00 on July 5, 2021. Details are as follows:
Interface: /api/account
Changes to the returned result:
Remove the following returned fields: balances, tokenBalances, trc20token_balances, trc721token_balances, tokens
Add the returned field "withPriceTokens", which represents the account's asset allocation
After the change, users will not be able to query information such as the quantities and prices of tokens held by a specified account via the interface.
Please use /api/account/tokens if you wish to query the above information. Details about the interface are as follows:
Interface: /account/tokens
Input parameters:
address Address
sortType Sorting order: 0 - descending order; 1 - ascending order. Items are sorted in descending order by default.
sortBy Sorting rule: 0 - default sorting order; 1 - sort by price; 2 - sort by value; 3 - sort by quantity. The parameter is set to 0 by default.
show Filtering rule: 0 - show all; 1 - show TRC10; 2 - show TRC20; 3 - show TRC721. The parameter is set to 0 by default.
hidden Whether to hide tokens of low value. 0 - not to hide; 1 - hide. The parameter is set to 0 by default.
start Parameter for paging
limit Parameter for paging
Return:
data Tokens held by the account; same with "balances" in the /api/account interface before the adjustments.
total Total quantity
Please make arrangements accordingly in advance. We apologize for any inconvenience this may cause!
Thank you for supporting TRONSCAN!
TRONSCAN Team
July 1, 2021
Follow Us
Website: https://tronscan.org
Telegram: https://t.me/tronscan_org
Twitter: https://twitter.com/TRONSCAN_ORG
Weibo: https://www.weibo.com/tronscan
WeChat official account: TRONSCAN blockchain explorer