Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added metamask info #316

Merged
merged 3 commits into from
Oct 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/build-on-linea/gas-fees.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ sidebar_position: 6

2. We don't mine a transaction if `gasPrice` or `maxPriorityFeePerGas` is lower than a given value that fluctuates over time.

To ensure that your transaction gets included by the sequencer, we recommend using EIP-1559 with the following settings:
To ensure that your transaction gets included by the sequencer, we recommend that non-MetaMask users use EIP-1559 with the following settings:

- maxBaseFee = 1.35 * previousBlockMaxBaseFee
- maxBaseFee = 1.35 * previousBlockMaxBaseFee (equivalent to the medium ("Market") setting on MetaMask)

- `maxPriorityFeePerGas` = reward value from eth_feeHistory( 5 blocks, latest, 20th percentile)

Expand All @@ -28,6 +28,7 @@ curl https://linea-mainnet.infura.io/v3/your-api-key \
-H "Content-Type: application/json" \
-d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": [4, "latest", [20]] }'
```
If you're using MetaMask, it should automatically calculate the necessary fees to ensure your transaction goes through.

## Example Code

Expand Down