Specify the maximum fee you want to pay by --fee. Gas is the unit used to measure how much resource needed to execute the transaction. Specify the maximum gas limit by --gas. If maximum gas is too small, it won't be enough for executing the transaction. If the fee is too low, fee paid for each unit of gas will be less than gaslimit and validators won't execute the transaction neither. The fee(minimum unit)/gas must be large than 6*10^12 iris-atto. We recommend that you set your maximum gas to 50000 and set your maximum fee to 0.3iris. Fee will be consumed according to actual gas used and spare fee will be reimbursed to users.

Note: Individual transactions consume more gas (e.g. creating validators), so it is recommended to set --gas=100000 --fee=0.6iris to ensure the smooth execution of transactions.


To secure their own validator node and maintain the availability of blockchain network, validators in IRISnet need a lot of equipments and resources. Thus, every transactions in IRISnet should pay some fee to validators. The parameter in commands is used to specify the maximum fee the user want to pay for their transaction.


The resource needed for every transactions are varied for different type of transactions. For example, only a few computations, queries & modifies are needed for transfer transaction. But more computations, queries & modifies are needed for creating a validator. Gas is the unit used to measure how much resource needed to execute the transaction. We list the gas needed for some typical operations in the below:

operations gas needed
writing the tx to the database 10 * the size of the transaction data (in bytes)
for reading some data from database 10 + data length(in bytes)
writing some data to database 10 + 10 * data length(in bytes)
signature verification 100

The total gas needed for executing the transaction is the sum of gas needed for every operations performed during executing the transaction. User should specify the maximum gas by --gas parameter. If maximum gas is not enough for executing the transaction, the transaction won't be executed successfully and all the fee will be returned to user's account. After the transaction being executed successfully, fee will deduct according to gas used, deducted fee will be maximum fee * gas used / maximum gas and left fee will be returned to user. Gas price is equal to maximum fee / maximum gas and stands for fee that user want to pay for each unit of gas. To keep the fee is set in a reasonable range, we set a minimum limit for gas price, 6*10^(-6) iris/gas, transaction won't be executed if the gas price is less than this value.


iriscli bank send --amount=1iris --fee=0.3iris --gas=50000 --chain-id=<chain-id> --from=<key_name> --to=<account_address>

This example is a transfer transaction. The maximum fee --fee is set to be 0.3iris and the maximum gas --gas is set to be 50000. Therefore, the gas price here is 6000iris-nano/Gas. Suppose that 10000 gas is used to execute the transaction, then 0.06iris will be paid to validators and left 0.24iris will be returned to user.