GetAssetIssueById

Query a token by token id. Returns the token object, which contains the token name (Confirmed state).

This method will use 30 Compute Units.


Parameters

  • value - String - The ID of the TRC10 token

  • visible - Boolean - Optional - Specifies whether the address is in Base58 format (default: false)

Returns

AssetIssueCapsule : Token found with the provided ID, please refer to GetAssetIssueByName for detailed fields.

// Result
{
  "owner_address": "TEAxH9kfc28syd1cBrwbsBz88QG5wPL8Ek",
  "name": "btttest",
  "abbr": "btttest",
  "total_supply": 1000000000000000,
  "trx_num": 1000000,
  "precision": 6,
  "num": 1000000,
  "start_time": 1575648000000,
  "end_time": 1575734400000,
  "description": "btttest",
  "url": "https://btfssoter.readme.io/docs/how-to-get-started-with-soter",
  "id": "1000001"
}
curl https://mainnet.tron.validationcloud.io/v1/<YOUR_API_KEY_HERE>/walletsolidity/getassetissuebyid \
    -X POST \
    -H "Content-Type: application/json" \
    -d '
{
  "value": 1000001,
  "visible": true
}
'

Last updated

Was this helpful?