Skip to content

Commit

Permalink
Update wallet-dev.md
Browse files Browse the repository at this point in the history
  • Loading branch information
qbzzt authored Jun 28, 2023
1 parent 763a728 commit f12a1e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/docs/guides/wallet-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ If it takes the user fourteen seconds to approve the transaction in the wallet,

The base fee specified in the transaction is not necessarily the base fee that the user will pay, *it is merely an upper limit to that amount*.
In most cases, it makes sense to specify a much higher base fee than the current value, to ensure acceptance.

For example, as I'm writing this, ETH is about $2000, and a cent is about 5000 gwei.
Assuming 20% of a cent is an acceptable base fee for a transaction, and that the transaction is a big 5,000,000 gas one (at the target block size), this gives us a base fee of 200,000 wei.
That would be the value to put in the transaction, even though the L2 base fee (as I'm writing this) is 2,420 wei.
Expand Down Expand Up @@ -96,4 +97,4 @@ You **MUST** deduct both the L2 execution fee and the L1 data fee or the charged

### Displaying the gas prices

If you want to display the current gas prices, you can use [`eth_gasPrice`](https://docs.alchemy.com/reference/eth-gasprice).
If you want to display the current gas prices, you can use [`eth_gasPrice`](https://docs.alchemy.com/reference/eth-gasprice).

0 comments on commit f12a1e7

Please sign in to comment.