Dear users:
In order to optimize page performance and increase loading speed, TRONSCAN adjusted some APIs. The attachment is a list of adjusted interfaces. Please know!
1 API /api/account
Reference: https://apilist.tronscan.org/api/account?address=TTd9qHyjqiUkfTxe3gotbuTMpjU8LEbpkN
field 'balances':
{
amount: "751420859.129525", # new field
tokenPriceInTrx: 1,
tokenId: "_", #origin field: name: "_"
balance: "751420859129525",
tokenName: "trx",
tokenDecimal: 6,
tokenAbbr: "trx",
tokenCanShow: 1,
tokenType: "trc10",
vip: false,
tokenLogo: "https://coin.top/production/logo/trx.png"
},
{
tokenPriceInTrx: 0.0111, #origin field: priceInTrx: 0.0111
amount: 37771.0403583924, #new field
tokenId: "1002000", #origin field: name: "1002000",
balance: "3402796428684",
tokenName: "BitTorrent",
tokenDecimal: 6,
owner_address: "TF5Bn4cJCT6GVeUgyCN4rBhDg42KBrpAjg",
tokenAbbr: "BTT",
tokenCanShow: 1,
tokenType: "trc10",
vip: true,
tokenLogo: "https://coin.top/production/logo/1002000.png"
},
#others are new fields
field 'trc20token_balances'
{
tokenId: "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", #origin field: contract_address: "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"
balance: "474",
tokenName: "Tether USD", #origin field: name: "Tether USD"
tokenAbbr: "USDT", #origin field: symbol: "USDT"
tokenDecimal: 6, #origin field: decimals: 6
tokenCanShow: 1,
tokenType: "trc20",
tokenLogo: "https://coin.top/production/logo/usdtlogo.png",
vip: true,
tokenPriceInTrx: 36.231884, #origin field: priceInTrx: 36.231884
amount: 0.017173913016
}
#others are new fields
2 API /api/account/wallet
Reference: https://apilist.tronscan.org/api/account/wallet?address=TTd9qHyjqiUkfTxe3gotbuTMpjU8LEbpkN
{
token_price: "1",
token_decimal: 6,
token_id: "_",
token_abbr: "trx",
balance: "751412361.135978",
token_name: "trx",
frozen: 0,
token_type: 0,
pair_id: 48,
vip: false, #new field
token_url: "https://coin.top/production/logo/trx.png" #new field
}
#Except for the new fields, the names and types of other fields have not changed
3 API /api/getAssetWithPriceList
Reference: https://apilist.tronscan.org/api/getAssetWithPriceList
{
name: "trx", #origin field: abbr: "trx"
logo: "https://coin.top/production/logo/trx.png",
id: "_",
abbr: "trx",
type: "trc10",
vip: false
},
{
name: "Wrapped TRX",
logo: "https://coin.top/production/upload/logo/TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR.png?t=1598430824415",
id: "TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR",
abbr: "WTRX",
type: "trc20",
vip: true
}
#others are new fields
4 API /api/contract
Reference: https://apilist.tronscan.org/api/contract?contract=TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR
call_token_info:
{
tokenInfo:
{
tokenId: "_",
tokenAbbr: "trx",
tokenName: "trx",
tokenDecimal: 6,
tokenCanShow: 1,
tokenType: "trc10",
tokenLogo: "https://coin.top/production/logo/trx.png",
vip: false
}
},
...
tokenInfo:
{
tokenId: "TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR",
tokenAbbr: "WTRX",
tokenName: "Wrapped TRX",
tokenDecimal: 6,
tokenCanShow: 1,
tokenType: "trc20",
tokenLogo: "https://coin.top/production/upload/logo/TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR.png?t=1598430824415",
vip: true
}
#The above fields are all newly added fields, and the other fields remain unchanged.
5 API /api/internal-transaction
Reference: https://apilist.tronscan.org/api/internal-transaction?contract=TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR
token_list:
{
token_id: "_",
call_value: 530000000,
tokenInfo:
{
tokenId: "_",
tokenAbbr: "trx",
tokenName: "trx",
tokenDecimal: 6,
tokenCanShow: 1,
tokenType: "trc10", #origin field: tokenType: "trx"
tokenLogo: "https://coin.top/production/logo/trx.png",
vip: false #origin field: vip: true
}
},
valueInfoList:
[
{
callValue: 530000000,
tokenInfo:
{
tokenId: "_",
tokenAbbr: "trx",
tokenName: "trx",
tokenDecimal: 6,
tokenCanShow: 1,
tokenType: "trc10", #origin field: tokenType: "trx"
tokenLogo: "https://coin.top/production/logo/trx.png",
vip: false #origin field vip: true
}
}
],
#Other fields are not adjusted
6 API /api/token
Reference: https://apilist.tronscan.org/api/token
# Added vip field in the returned data, other fields have not been adjusted
7 API /api/token_trc20
Reference: https://apilist.tronscan.org/api/token_trc20?contract=TLDeEMmnM2hazpPEAC1A61ZEMqbrnNV7Sr
# Added vip field in the returned data, other fields have not been adjusted
8 API /api/transaction
Reference: https://apilist.tronscan.org/api/transaction?sort=-timestamp&count=true&limit=20&start=0&start_timestamp=1529856000000&end_timestamp=1607676278131
# move tokenAbbr,tokenCanShow,tokenId,tokenName field into tokenInfo. Add field tokenInfo.
tokenInfo: {
tokenAbbr: "trx"
tokenCanShow: 1
tokenDecimal: 6
tokenId: "_"
tokenLogo: "https://coin.top/production/logo/trx.png"
tokenName: "trx"
tokenType: "trc10"
vip: false
}
#The above fields are all newly added fields.
TRONSCAN Team
Dec 11, 2020
Follow us for more latest news:
Official Web: https://tronscan.org/
Telegram: https://t.me/tronscan_org
Twitter: https://twitter.com/TRONSCAN_ORG
Sina Weibo: https://www.weibo.com/tronscan