# Token ID
Token ID is a byte array calculated as follows:
- If the token is issued by Issue transaction, the token ID is the same as the transaction ID.
- If the token is issued by Invoke Script transaction when the callable function of dApp script performed the Issue action, the token ID is calculated as the BLAKE2b-256 hash of the byte array containing transaction ID and the fields of the
Issue
structure.
In the Node REST API, the token identifier is encoded in base58. For example:
"assetId": "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"
The WAVES token has no identifier. The Node REST API uses null
for WAVES.