Tron RPC
Archive Method
Only on the full archive nodes. Complex queries might take longer and incur additional cost
How to use it
// yarn add @tatumio/tatum
import { TatumSDK, Tron, Network } from '@tatumio/tatum'
const tatum = await TatumSDK.init<Tron>({ network: Network.TRON })
const res = await tatum.rpc.getAssetIssueListByName('62747474657374')
await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs
Overview
The getAssetIssueListByName
method allows users to query the list of all the TRC10 tokens by a specific name. This can be useful in various scenarios, such as when one needs to quickly identify tokens with a specific name, or for tracking purposes, where knowing the associated tokens can provide valuable insights.
Parameters
value
(string): Name of the TRC10 token to be queried. This parameter is required.
Return Object
assetIssue
: (array)id
: (integer) token IDowner_address
: (string) issuer addressname
: (string) token nameabbr
: (string) token abbreviationtotal_supply
: (integer) total supplyfrozen_supply
: (Array) The number of tokens to be frozen is specified by the issuer of the token when it is issuedtrx_num
: (integer) Define the price by the ratio of trx_num/num(The unit of 'trx_num' is SUN)precision
: (integer) precisionnum
: (integer) Define the price by the ratio of trx_num/num(The unit of 'trx_num' is SUN)start_time
: (integer) ICO start timeend_time
: (integer) ICO end timedescription
: (string) token descriptionurl
: (string) Token official website url, default hexStringfree_asset_net_limit
: (integer) Token free asset net limitpublic_free_asset_net_limit
: (integer) Token public free asset net limit for a accountpublic_free_asset_net_usage
: (integer) The total number of token free bandwidth used by all token ownerpublic_latest_free_net_time
: (integer) The timestamp of the last consumption of this token's free bandwidth
HTTP Request Example
{
"value": "49504653"
}
HTTP Response Example
{
"assetIssue": [
{
"owner_address": "41d13433f53fdf88820c2e530da7828ce15d6585cb",
"name": "49504653",
"abbr": "49504653",
"total_supply": 100000000000,
"trx_num": 1000000,
"num": 1,
"start_time": 1529990700000,
"end_time": 1537632000000,
"description": "4950465320636f696e",
"url": "687474703a2f2f",
"id": "1000003"
}
]
}