Transactions and queries for the Token Service.
{% hint style="info" %}
To transfer tokens created by HTS, please reference the cryptoTransfer
API.
{% endhint %}
Method Name | Request Type | Response Type | Description |
---|---|---|---|
createToken |
Transaction | TransactionResponse | Creates a new Token by submitting the transaction |
updateToken |
Transaction | TransactionResponse | Updates the account by submitting the transaction |
mintToken |
Transaction | TransactionResponse | Mints an amount of the token to the defined treasury account |
burnToken |
Transaction | TransactionResponse | Burns an amount of the token from the defined treasury account |
deleteToken |
Transaction | TransactionResponse | (NOT CURRENTLY SUPPORTED) Deletes a Token |
wipeTokenAccount |
Transaction | TransactionResponse | Wipes the provided amount of tokens from the specified Account ID |
freezeTokenAccount |
Transaction | TransactionResponse | Freezes the transfer of tokens to or from the specified Account ID |
unfreezeTokenAccount |
Transaction | TransactionResponse | Unfreezes the transfer of tokens to or from the specified Account ID |
grantKycToTokenAccount |
Transaction | TransactionResponse | Flags the provided Account ID as having gone through KYC |
revokeKycFromTokenAccount |
Transaction | TransactionResponse | Removes the KYC flag of the provided Account ID |
associateTokens |
Transaction | TransactionResponse | Associates tokens to an account |
dissociateTokens |
Transaction | TransactionResponse | Dissociates tokens from an account |
updateTokenFeeSchedule |
Transaction | TransactionResponse | Updates the custom fee schedule on a token |
getTokenInfo |
Query | Response | Retrieves the metadata of a token |
getAccountNftInfo |
Query | Response | Gets info on NFTs N through M on the list of NFTs associated with a given account |
getTokenNftInfo |
Query | Response | Retrieves the metadata of an NFT by TokenID and serial number |
getTokenNftInfo |
Query | Response | Gets info on NFTs N through M on the list of NFTs associated with a given Token of type NON_FUNGIBLE |
pauseToken |
Transaction | TransactionResponse | Pause the token |
unpauseToken |
Transaction | TransactionResponse | Unpause the token |