total gas used
is computed by KLVM based on the gas cost of the opcode and the intrinsic gas cost.unit price
is the price of gas defined in Klaytn.gas
required.Gas
is a measuring unit representing how much calculation is needed to process the user's transaction.Unit price
is the price for a single gas. The unit price (also called gas price
) is set in the system by the governance. It is currently set to 250 ston (i.e., 250 x 10^9 peb) per gas and cannot be changed by user. The current value of the unit price can be obtained by calling the klay.gasPrice
API.invalid unit price
is returned when the gas price of a transaction is not equal to the unit price of Klaytn.