src/rest-client/src/kip17/api/KIP17Api.js
/**
     * Approve token transfer
     * Turns on/off transfer approval from the third party, &#x60;to&#x60;, for all tokens in a contract.&lt;p&gt;&lt;/p&gt;
     * @param {Object} opts Optional parameters
     * @param {KIP17Api~approveAllCallback} callback The callback function, accepting three arguments: error, data, response
     * data is of type: {@link Kip17TransactionStatusResponse}
     */
Approve token transfer
Turns on/off transfer approval from the third party, `to`, for all tokens in a contract.<p></p>
@param {Object} opts Optional parameters
@param {KIP17Api~approveAllCallback} callback The callback function, accepting three arguments: error, data, response
data is of type:  Kip17TransactionStatusResponse
Approve token transfer Turns on / off transfer approval from the third party ` to ` for all tokens in a contract . <p > < / p > @param { Object } opts Optional parameters @param { KIP17Api~approveAllCallback } callback The callback function accepting three arguments : error data response data is of type : Kip17TransactionStatusResponse
approveAll(xChainId, contractAddressOrAlias, opts, callback) {
        opts = opts || {}
        const postBody = opts.body
        const pathParams = {
            'contract-address-or-alias': contractAddressOrAlias,
        }
        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}/approveall',
            'POST',
            pathParams,
            queryParams,
            headerParams,
            formParams,
            postBody,
            authNames,
            contentTypes,
            accepts,
            returnType,
            callback
        )
    }
approveAll ( xChainId , contractAddressOrAlias , opts , callback ) { opts = opts || { } const postBody = opts . body const pathParams = { 'contract-address-or-alias' : contractAddressOrAlias , } 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}/approveall' , 'POST' , pathParams , queryParams , headerParams , formParams , postBody , authNames , contentTypes , accepts , returnType , callback ) }
Approve token transfer
 Turns on/off transfer approval from the third party, &#x60;to&#x60;, for all tokens in a contract.&lt;p&gt;&lt;/p&gt;
 @param {Object} opts Optional parameters
 @param {KIP17Api~approveAllCallback} callback The callback function, accepting three arguments: error, data, response
 data is of type: {@link Kip17TransactionStatusResponse}
Approve token transfer Turns on / off transfer approval from the third party &#x60 ; to&#x60 ; for all tokens in a contract . &lt ; p&gt ; &lt ; / p&gt ; @param { Object } opts Optional parameters @param { KIP17Api~approveAllCallback } callback The callback function accepting three arguments : error data response data is of type : { @link Kip17TransactionStatusResponse }