src/rest-client/src/kip17/api/KIP17Api.js
/**
     * Transfer a KIP-17 token
     * Transfers a token. If &#x60;sender&#x60; and &#x60;owner&#x60; mismatched, &#x60;sender&#x60; should have the authority to transfer the token.&lt;p&gt;&lt;/p&gt;  Note: This API requires two KRNs; for deployer pool and sender.&lt;p&gt;&lt;/p&gt;  - The first KRN for the &#x60;deployer pool&#x60; should have &#x60;krn:*:kip17:*:account-pool:*&#x60; format and confirm whether API caller has authority to call a contract. Klaytn contract is publicly available and anyone who knows the address can call the contract function, however, it requires indirect measures such as observing network communication unless contract owner reveals the address. Therefore, KIP-17 API assumes that the contract owner calls the contract function only with veiled address. - The second KRN for the &#x60;sender&#x60; should have &#x60;krn:*:wallet:*:account-pool:*&#x60; format. KIP-17 API is currently available to transfer tokens with the accounts created from the account pool. - As all other APIs, &#x60;x-krn&#x60; has default value if excluded.&lt;p&gt;&lt;/p&gt;
     * @param {Object} opts Optional parameters
     * @param {KIP17Api~transferTokenCallback} callback The callback function, accepting three arguments: error, data, response
     * data is of type: {@link Kip17TransactionStatusResponse}
     */
Transfer a KIP-17 token
Transfers a token.
Transfer a KIP - 17 token Transfers a token .
transferToken(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}',
            'POST',
            pathParams,
            queryParams,
            headerParams,
            formParams,
            postBody,
            authNames,
            contentTypes,
            accepts,
            returnType,
            callback
        )
    }
transferToken ( 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}' , 'POST' , pathParams , queryParams , headerParams , formParams , postBody , authNames , contentTypes , accepts , returnType , callback ) }
Transfer a KIP-17 token
 Transfers a token.
Transfer a KIP - 17 token Transfers a token .