Skip to main content

TRC10 Token

tokenviewAbout 3 min

TRC10 Token

getassetissuebyaccount

POST https://services.tokenview.io/vipapi/nodeservice/trx/wallet/getassetissuebyaccount?apikey={apikey}

Query the TRC10 token information issued by an account.

Parameters:

  • address: string. Address is the Token Issuer account address.
  • visible: boolean. Optional. Defaults to false. Whether addresses are in base58check format.

Request

curl --location -g 'https://services.tokenview.io/vipapi/nodeservice/trx/wallet/getassetissuebyaccount?apikey={apikey}' \
--data '{
  "address": "4137FA1A56EB8C503624701D776D95F6DAE1D9F0D6"
}'

Response

{
    "assetIssue": [
        {
            "owner_address": "4137fa1a56eb8c503624701d776d95f6dae1d9f0d6",
            "name": "426974546f7272656e74",
            "abbr": "425454",
            "total_supply": 990000000000000000,
            "trx_num": 1,
            "precision": 6,
            "num": 1,
            "start_time": 1548000000000,
            "end_time": 1548000001000,
            "description": "4f6666696369616c20546f6b656e206f6620426974546f7272656e742050726f746f636f6c",
            "url": "7777772e626974746f7272656e742e636f6d",
            "id": "1002000"
        }
    ]
}

getassetissuebyid

POST https://services.tokenview.io/vipapi/nodeservice/trx/wallet/getassetissuebyid?apikey={apikey}

Query a token by token id. Returns the token object, which contains the token name.

Note: TRC10 allows for duplicate token names. Thus TRC10 tokens are
identifiable by a unique Token ID. Input the Token ID into this API to
return the Token object containing the Token Name.

Parameters:

  • value: int32. The ID of the TRC10 token.

Request

curl --location -g 'https://services.tokenview.io/vipapi/nodeservice/trx/wallet/getassetissuebyid?apikey={apikey}' \
--data '{"value":1000001}'

Response

{
    "owner_address": "414d1ef8673f916debb7e2515a8f3ecaf2611034aa",
    "name": "53454544",
    "abbr": "53454544",
    "total_supply": 100000000000,
    "trx_num": 1000000,
    "num": 1,
    "start_time": 1529987043000,
    "end_time": 1530342060000,
    "description": "536573616d657365656420746f6b656e7320666f7220636f6d6d756e697479207265776172647320616e6420534545446765726d696e61746f7220696e766573746d656e74206f6620636f6d6d756e6974792d766f7465642070726f6a656374732e",
    "url": "687474703a2f2f7777772e736573616d65736565642e6f7267",
    "id": "1000001"
}

getassetissuelist

GET https://services.tokenview.io/vipapi/nodeservice/trx/wallet/getassetissuelist?apikey={apikey}

Query the list of all the TRC10 tokens.

Request

curl --location https://services.tokenview.io/vipapi/nodeservice/trx/wallet/getassetissuelist?apikey={apikey}

Response

{
    "assetIssue": [
        {
            "owner_address": "414d1ef8673f916debb7e2515a8f3ecaf2611034aa",
            "name": "53454544",
            "abbr": "53454544",
            "total_supply": 100000000000,
            "trx_num": 1000000,
            "num": 1,
            "start_time": 1529987043000,
            "end_time": 1530342060000,
            "description": "536573616d657365656420746f6b656e7320666f7220636f6d6d756e697479207265776172647320616e6420534545446765726d696e61746f7220696e766573746d656e74206f6620636f6d6d756e6974792d766f7465642070726f6a656374732e",
            "url": "687474703a2f2f7777772e736573616d65736565642e6f7267",
            "id": "1000001"
        },
        {
            "owner_address": "410b53ce4aa6f0c2f3c849f11f682702ec99622e2e",
            "name": "545258",
            "abbr": "545258",
            "total_supply": 99000000000,
            "trx_num": 1000000,
            "num": 1,
            "start_time": 1529989896000,
            "end_time": 1537632000000,
            "description": "74726f6e546f6b656e",
            "url": "68747470733a2f2f74726f6e2e6e6574776f726b",
            "id": "1000002"
        }
    ]
}

getpaginatedassetissuelist

POST https://services.tokenview.io/vipapi/nodeservice/trx/wallet/getpaginatedassetissuelist?apikey={apikey}

Query the list of all the tokens by pagination.Returns a list of Tokens that succeed the Token located at offset.

Parameters:

  • offset: int32. The index of the start token.
  • limit. int32. The amount of tokens per page.

Request

curl --location -g 'https://services.tokenview.io/vipapi/nodeservice/trx/wallet/getpaginatedassetissuelist?apikey={apikey}' \
--data '{
  "offset": 1,
  "limit": 0
}'

Response

{}

transferasset

POST https://services.tokenview.io/vipapi/nodeservice/trx/wallet/transferasset?apikey={apikey}

Transfer TRC10 token.

Parameters:

  • owner_address: string. default hexString.
  • to_address: string. default hexString.
  • asset_name: string. Token id, default hexString.
  • amount: int64
  • permission_id: int32. Optional, for multi-signature use
  • visible: boolean. Optional, Whether the address is in base58 format.
  • extra_data: string. Optional, totes on the transaction, HEX format.

Request

curl --location -g 'https://services.tokenview.io/vipapi/nodeservice/trx/wallet/transferasset?apikey={apikey}' \
--data '{
  "owner_address": "41d1e7a6bc354106cb410e65ff8b181c600ff14292",
  "to_address": "41e552f6487585c2b58bc2c9bb4492bc1f17132cd0",
  "asset_name": "31303030303031",
  "amount": 1
}'

Response


createassetissue

POST https://services.tokenview.io/vipapi/nodeservice/trx/wallet/createassetissue?apikey={apikey}

Issue a TRC10 token.

Parameters:

  • owner_address:string. Owner address, default hexString
  • name: string. Token name, default hexString
  • abbr: string.
  • total_supply: int64. Token total supply
  • trx_num: int64. Define the price by the ratio of trx_num/num(The unit of 'trx_num' is SUN)
  • num: int64. Define the price by the ratio of trx_num/num
  • start_time: date-time. ICO start time
  • end_time: date-time. ICO end time
  • description: string. Token description, default hexString
  • url: string. Token official website url, default hexString
  • free_asset_net_limit: int64. Token free asset net limit
  • public_free_asset_net_limit: int64. Token public free asset net limit
  • frozen_supply: json. Token frozen supply
  • precision: int32

Request

curl --location -g 'https://services.tokenview.io/vipapi/nodeservice/trx/wallet/createassetissue?apikey={apikey}' \
--data '{
  "owner_address": "411FAFB1E96DFE4F609E2259BFAF8C77B60C535B93",
  "name": "0x6173736574497373756531353330383934333132313538",
  "abbr": "0x6162627231353330383934333132313538",
  "description": "0x4578616d706c654465736372697074696f6e",
  "url": "0x7777772e6578616d706c652e636f6d",
  "frozen_supply": {
    "frozen_amount": 1,
    "frozen_days": 2
  }
}'

Response


participateassetissue

POST https://services.tokenview.io/vipapi/nodeservice/trx/wallet/participateassetissue?apikey={apikey}

Participate in an asset issue.

Parameters:

  • to_address:string
  • owner_address:string. The participant address, default hexString
  • amount: int64. The number of trx participating in token issuance
  • asset_name: string. Token id, default hexString
  • visible: boolean. Optional, Whether the address is in base58 format.

Request

curl --location -g 'https://services.tokenview.io/vipapi/nodeservice/trx/wallet/participateassetissue?apikey={apikey}' \
--data '{
  "to_address": "41e552f6487585c2b58bc2c9bb4492bc1f17132cd0",
  "owner_address": "41e472f387585c2b58bc2c9bb4492bc1f17342cd1",
  "asset_name": "1000001031303030303031"
}'

Response


unfreezeasset

POST https://services.tokenview.io/vipapi/nodeservice/trx/wallet/unfreezeasset?apikey={apikey}

Unstake a token that has passed the minimum freeze duration.

Parameters:

  • owner_address: string. Owner address, default hexString
  • permission_id: int32. Optional, for multi-signature use
  • visible: boolean. Optional, Whether the address is in base58 format.

Request

curl --location -g 'https://services.tokenview.io/vipapi/nodeservice/trx/wallet/unfreezeasset?apikey={apikey}' \
--data '{
  "owner_address": "41e472f387585c2b58bc2c9bb4492bc1f17342cd1"
}'

Response


updateasset

POST https://services.tokenview.io/vipapi/nodeservice/trx/wallet/updateasset?apikey={apikey}

Update basic TRC10 token information.

Parameters:

  • owner_address: string. The issuers address of the token, default hexString
  • description: string. The description of token, default hexString
  • url: string. The token's website url, default hexString
  • new_limit: int32. Each token holder's free bandwidth
  • new_public_limit: int32. The total free bandwidth of the token
  • permission_id: int32. Optional, for multi-signature use
  • visible: boolean. Optional, Whether the address is in base58 format.

Request

curl --location -g 'https://services.tokenview.io/vipapi/nodeservice/trx/wallet/updateasset?apikey={apikey}' \
--data '{
  "owner_address": "4116440834509C59DE4EE6BA4933678626F451BEFE",
  "description": "string",
  "url": "string",
  "new_limit": 0,
  "new_public_limit": 0,
  "permission_id": 0,
  "visible": true
}'

Response


easytransferasset

POST https://services.tokenview.io/vipapi/nodeservice/trx/wallet/easytransferasset?apikey={apikey}

This interface has been deprecated.

Parameters:

  • passPhrase: string. Password, default hexString
  • toAddress: string. To address, default hexString
  • assetId: string. Token id
  • amount: int64. Transfer token amount,the unit is the smallest unit.
  • visible: boolean. Optional, Whether the address is in base58 format.

Request

curl --location -g 'https://services.tokenview.io/vipapi/nodeservice/trx/wallet/easytransferasset?apikey={apikey}' \
--data '{
  "passPhrase": "string",
  "toAddress": "41e552f6487585c2b58bc2c9bb4492bc1f17132cd0",
  "assetId": "1000001",
  "amount": 0,
  "visible": true
}'

Response


easytransferassetbyprivate

POST https://services.tokenview.io/vipapi/nodeservice/trx/wallet/easytransferassetbyprivate?apikey={apikey}

This interface has been deprecated.

Parameters:

  • privateKey: string. Private key, default hexString
  • toAddress: string. To address, default hexString
  • assetId: string. Token id
  • amount: int64. Token transfer amount
  • visible: boolean. Optional, Whether the address is in base58 format.

Request

curl --location -g 'https://services.tokenview.io/vipapi/nodeservice/trx/wallet/easytransferassetbyprivate?apikey={apikey}' \
--data '{
  "privateKey": "D95611A9AF2A2A45359106222ED1AFED48853D9A44DEFF8DC7913F5CBA727366",
  "toAddress": "4112E621D5577311998708F4D7B9F71F86DAE138B5",
  "assetId": "1000001",
  "amount": 0,
  "visible": true
}'

Response


Last update: