All Collections
Transactions
Create Transactions
Advanced transaction parameters
Advanced transaction parameters

This article describes how to set transaction parameters such as nonce or gas limit manually when performing Safe transactions.

Tobias Schubotz avatar
Written by Tobias Schubotz
Updated over a week ago

Please also note: Changing the parameters explained in this article affect transaction execution directly. Please make sure you know what you are doing.

Configure advanced parameters

When reviewing a transaction, there is a dropdown called "Advanced options" where you can inspect all transaction details.

Clicking "Edit" allows you to adapt the values. Please refer to the next section for further details on the parameters and their meaning. Please also note that not all parameters can be modified at any time.

Advanced parameters explained

Safe nonce

The Safe contracts have a so called nonce. This is to ensure that each transaction can be executed only once so no replay attacks are possible. The Safe nonce is equivalent to the nonce of externally owned accounts (EOAs).

The current Safe nonce can be found in the Safe settings or alternatively by checking the nonce of your Safe on-chain.

Assuming the current Safe nonce is x, the next transaction to be executed will have to have a Safe nonce of x. In case you change the nonce to something higher, your transaction will have to wait. In case you change it to something lower, it will never be executed successfully. This logic is defined in the Safe smart contract.

The Safe nonce can only be configured when initiating a Safe transaction, i.e. it is not possible to modify it as "second signer" of a transaction.

safeTxGas

This is another parameter used when executing Safe transactions. As part of a Safe transaction, you can set 2 gas "types": baseGas and safeTxGas. baseGas specifies the gas costs which are independent from the specific transaction, such as base transaction fee, signature check, payment of a possible refund. safeTxGas specifies the gas that should be used for the Safe transaction. When setting safeTxGas to 0, all available gas will be used. Together, safeTxGas and baseGas are comparable to the gas limit of a regular transaction.

In most cases, safeTxGas should remain 0. Please refer to the Safe developer docs for further details.

safeTxGas can only be configured when initiating a Safe transaction, i.e. it is not possible to modify it as "second signer" of a transaction.

Ethereum nonce

As explained for Safe nonce above, the purpose of nonces is to prevent replay attacks (Learn more). This parameter affects the connected owner wallet (e.g. Metamask) and defines which nonce should be used there.

This nonce can only be configured when executing Safe transactions or when doing on-chain confirmations, i.e. it cannot be modified when doing off-chain transactions.

Ethereum gas limit and Ethereum gas price

Gas limit and gas price are fundamental parameters used in Ethereum transactions. Please refer to e.g. this guide for more details.

Ethereum gas limit and gas price can only be configured when executing Safe transactions or when doing on-chain confirmations, i.e. it cannot be modified when doing off-chain transactions.

Did this answer your question?