Kaia Fee Delegation Program for Kaia Wave Builders
1. Introduction
The fee delegation of kaia network is a feature that allows another account to pay for the transaction gas fee. This allows users to perform transactions without spending their own $KAIA for the gas fee of a transaction.
1. kaia fee delegation consist of three mian compenents:
Sender: The account submitting the transaction (from)
Dapp: The relayer that relay the user signed transaction to the fee payer server
Fee payer server: Sign as fee payer and send the signed transaction to the network and return the receipt to the caller
2. The operations of kaia fee delegation is as follows:
The sender creates the transaction.
The sender specifies the fee payer's address in the transaction.
The sender signs the transaction.
The sender sends the signed transaction to backend of dapp.
The backend requests a transaction sign to the fee payer server.
The fee payer server signs the transaction as a fee payer, sends it to the network, gets a receipt of the transaction and returns the transaction receipt.
3. Code Samples
1. Prequisite
SDK
ethers-ext that is one of kaia-sdk should be installed.