src/rest-client/src/kip17/api/KIP17Api.js
/**
     * Burn a KIP-17 token
     * Burns a token. Unless the requested &#x60;from&#x60; address is the owner, or have authority to burn, the transaction through this API becomes &#x60;reverted&#x60;.&lt;p&gt;&lt;/p&gt;
     * @param {Object} opts Optional parameters
     * @param {KIP17Api~burnTokenCallback} callback The callback function, accepting three arguments: error, data, response
     * data is of type: {@link Kip17TransactionStatusResponse}
     */
Burn a KIP-17 token
Burns a token. Unless the requested `from` address is the owner, or have authority to burn, the transaction through this API becomes `reverted`.<p></p>
@param {Object} opts Optional parameters
@param {KIP17Api~burnTokenCallback} callback The callback function, accepting three arguments: error, data, response
data is of type:  Kip17TransactionStatusResponse
Burn a KIP - 17 token Burns a token . Unless the requested ` from ` address is the owner or have authority to burn the transaction through this API becomes ` reverted ` . <p > < / p > @param { Object } opts Optional parameters @param { KIP17Api~burnTokenCallback } callback The callback function accepting three arguments : error data response data is of type : Kip17TransactionStatusResponse
burnToken(xChainId, contractAddressOrAlias, tokenId, opts, callback) {
        opts = opts || {}
        const postBody = opts.body
        const pathParams = {
            'contract-address-or-alias': contractAddressOrAlias,
            'token-id': tokenId,
        }
        const queryParams = {}
        const headerParams = {
            'x-chain-id': xChainId,
        }
        const formParams = {}
        const authNames = ['basic']
        const contentTypes = ['application/json']
        const accepts = ['application/json']
        const returnType = Kip17TransactionStatusResponse
        return this.apiClient.callApi(
            '/v1/contract/{contract-address-or-alias}/token/{token-id}',
            'DELETE',
            pathParams,
            queryParams,
            headerParams,
            formParams,
            postBody,
            authNames,
            contentTypes,
            accepts,
            returnType,
            callback
        )
    }
burnToken ( xChainId , contractAddressOrAlias , tokenId , opts , callback ) { opts = opts || { } const postBody = opts . body const pathParams = { 'contract-address-or-alias' : contractAddressOrAlias , 'token-id' : tokenId , } const queryParams = { } const headerParams = { 'x-chain-id' : xChainId , } const formParams = { } const authNames = [ 'basic' ] const contentTypes = [ 'application/json' ] const accepts = [ 'application/json' ] const returnType = Kip17TransactionStatusResponse return this . apiClient . callApi ( '/v1/contract/{contract-address-or-alias}/token/{token-id}' , 'DELETE' , pathParams , queryParams , headerParams , formParams , postBody , authNames , contentTypes , accepts , returnType , callback ) }
Burn a KIP-17 token
 Burns a token.
Burn a KIP - 17 token Burns a token .