src/kas/wallet/wallet.js
/**
     * Create a Klaytn fee payer account. Generate a Klaytn account address and random private/public key pair and get ID of public key and private key returned. <br>
     * Klaytn fee payer account should be updated to [AccountKeyRoleBased](https://docs.klaytn.com/klaytn/design/accounts#accountkeyrolebased) and can only be used for fee delegation. <br>
     * POST /v2/feepayer
     *
     * @example
     * const ret = await caver.kas.wallet.createFeePayer()
     *
     * @param {Function} [callback] The callback function to call.
     * @return {Account}
     */
Create a Klaytn fee payer account. Generate a Klaytn account address and random private/public key pair and get ID of public key and private key returned. 
Klaytn fee payer account should be updated to [AccountKeyRoleBased] and can only be used for fee delegation. 
POST /v2/feepayer

@example
const ret = await caver.kas.wallet.createFeePayer()

@param {Function} [callback] The callback function to call.
@return {Account}
Create a Klaytn fee payer account . Generate a Klaytn account address and random private / public key pair and get ID of public key and private key returned . Klaytn fee payer account should be updated to [ AccountKeyRoleBased ] and can only be used for fee delegation . POST / v2 / feepayer @example const ret = await caver . kas . wallet . createFeePayer () @param { Function } [ callback ] The callback function to call . @return { Account }
createFeePayer(callback) {
        if (!this.accessOptions || !this.feePayerApi) throw new Error(NOT_INIT_API_ERR_MSG)
        return new Promise((resolve, reject) => {
            this.feePayerApi.creatFeePayerAccount(this.chainId, (err, data, response) => {
                if (err) {
                    reject(err)
                }
                if (callback) callback(err, data, response)
                resolve(data)
            })
        })
    }
createFeePayer ( callback ) { if ( ! this . accessOptions || ! this . feePayerApi ) throw new Error ( NOT_INIT_API_ERR_MSG ) return new Promise ( ( resolve , reject ) => { this . feePayerApi . creatFeePayerAccount ( this . chainId , ( err , data , response ) => { if ( err ) { reject ( err ) } if ( callback ) callback ( err , data , response ) resolve ( data ) } ) } ) }
Create a Klaytn fee payer account.
Create a Klaytn fee payer account .