Skip to main content
Time to read: 1 min

RIF Relay - Gas Costs

The overhead gas cost is the extra amount of gas required to process the relay call requested by the user. Let's call X the gas consumed by the destination contract method call, and Y the total gas consumed by the relay call, then the relay call cost (i.e. overhead gas cost) is: Z = Y - X.

SmartWallet templates

RIF Relay V0.1 only has one SmartWallet template, which can be used as-is, or be injected with extra logic during the SmartWallet instance creation.

V0.2 introduces a cheaper template (SmartWallet), to be used when there's no need for extra custom-logic in the smart wallets. The behaviour is the same as the CustomSmartWallet template of V0.2, but without this capability.

Gas cost from the deployment of each template.

RIF VersionSW TemplateAvg. overhead gas
0.1SmartWallet172400
0.2CustomSmartWallet98070
0.2SmartWallet97695
1CustomSmartWalletTBD
1SmartWalletTBD
Note

The instance of CustomSmartWallet used didn't point to any extra custom logic.

Last updated on by Owanate Amachree