src/rest-client/src/kip7/api/KIP7Api.js
/**
     * Approve KIP-7 token transfer
     * Authorizes the &#x60;spender&#x60; to send a certain amount of tokens on behalf of the &#x60;owner&#x60;.  You can execute a delegated token transfer by calling [/v1/contract/{contract-address-or-alias}/transfer-from](#opera ion/TransferFromToken) API.&lt;p&gt;&lt;/p&gt;  **Note**: Only a &#x60;spender&#x60; account address managed by Wallet API can execute delegated token transfers.  &lt;br&gt; **Note**: This API requires two types of x-krn, separated by &#x60;,&#x60; in the request header. &lt;br&gt; krn:{chain-id}:kip7:{account-id}:account-pool:default,krn:{chain-id}:wallet:{account-id}:account-pool:{pool-name}&lt;p&gt;&lt;/p&gt;  - The first KRN: Default KIP-7 &#x60;account-pool&#x60; - The second KRN: &#x60;account-pool&#x60; Wallet API, which has the &#x60;owner&#x60; account - Just as in other APIs, not including the x-krn will give it the default value.&lt;p&gt;&lt;/p&gt;
     * @param {Object} opts Optional parameters
     * @param {KIP7Api~approveTokenCallback} callback The callback function, accepting three arguments: error, data, response
     * data is of type: {@link Kip7TransactionStatusResponse}
     */
Approve KIP-7 token transfer
Authorizes the `spender` to send a certain amount of tokens on behalf of the `owner`.
Approve KIP - 7 token transfer Authorizes the ` spender ` to send a certain amount of tokens on behalf of the ` owner ` .
approveToken(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 = Kip7TransactionStatusResponse
        return this.apiClient.callApi(
            '/v1/contract/{contract-address-or-alias}/approve',
            'POST',
            pathParams,
            queryParams,
            headerParams,
            formParams,
            postBody,
            authNames,
            contentTypes,
            accepts,
            returnType,
            callback
        )
    }
approveToken ( 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 = Kip7TransactionStatusResponse return this . apiClient . callApi ( '/v1/contract/{contract-address-or-alias}/approve' , 'POST' , pathParams , queryParams , headerParams , formParams , postBody , authNames , contentTypes , accepts , returnType , callback ) }
Approve KIP-7 token transfer
 Authorizes the &#x60;spender&#x60; to send a certain amount of tokens on behalf of the &#x60;owner&#x60;.
Approve KIP - 7 token transfer Authorizes the &#x60 ; spender&#x60 ; to send a certain amount of tokens on behalf of the &#x60 ; owner&#x60 ; .