Skip to content

Add --max-fee-per-gas - #7

Closed
techdigger wants to merge 1 commit into
mainfrom
max-fee-per-gas
Closed

techdigger wants to merge 1 commit into
mainfrom
max-fee-per-gas

Conversation

@techdigger

@techdigger techdigger commented Nov 12, 2026 •

Copy link
Copy Markdown

Replaced by #10, which does the same with one environment variable and no command-line flag.

safe-cli takes maxFeePerGas from eth_feeHistory and gives the user no way
to change it. A chain that charges more than its fee history forecasts
refuses each transaction safe-cli sends, and on a busy chain the user may
want a higher cap.

Add a global option, --max-fee-per-gas GWEI, and its default,
SAFE_CLI_MAX_FEE_PER_GAS. It sets maxFeePerGas for each transaction
safe-cli sends: execution with a local key, approve_hash and execution
with a hardware wallet. Transactions stay EIP-1559 and the tip stays the
estimate. Without the option safe-cli behaves as before.

safe-cli refuses a cap above 10 times the node's gas price and sends
nothing, which catches typos such as extra zeros.
@techdigger techdigger mentioned this pull request Nov 12, 2026
@techdigger techdigger closed this Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant