Gas
Info
Relevant JSON-RPC method: custodian_createTransaction
General information about gas¶
Gas refers to fees, denominated in the native token of chain (e.g. Ether) paid to validators or miners for inclusion of a transaction in a block.
MetaMask Institutional, as a wallet, does accept (suggested) gas parameters from dapps and also contains an interface for adjusting gas price, gas limit and so on. Custodians may honour these, however:
Custodians must provide a mechanism for adjusting the amount of gas paid for transactions; either a user interface or an automatic system. This is because transactions can fail due to gas issues and it would be bad user experience to have to resubmit the transaction in MMI.
As for transaction parameters sent by MMI with custodian_createTransaction
, there are two sets of parameters that custodians can accept:
Legacy transactions¶
For some networks:
gasPrice
: the amount in Wei that a user is willing to pay per unit of gas.
Post-London Hardfork transactions¶
Ethereum mainnet and testnets:
maxFeePerGas
: represents the maximum amount that a user is willing to pay for their tx (inclusive ofbaseFeePerGas
andmaxPriorityFeePerGas
).maxPriorityFeePerGas
: the “Miner/validator tip” which is added on to the base fee.