Skip to content

Commit d3d2953

Browse files
committed
docs: fixed and expanded explanation of fees (ethers-io#2321)
1 parent 0403314 commit d3d2953

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs.wrm/api/providers/types.wrm

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ _property: transactionRequest.gasLimit => [[BigNumber]] | Promise<[[BigNumber]]>
210210
The maximum amount of gas this transaction is permitted to use.
211211

212212
If left unspecified, ethers will use ``estimateGas`` to determine the value
213-
to use. For transactions with unpredicatable gas estiamtes, this may be required
213+
to use. For transactions with unpredicatable gas estimates, this may be required
214214
to specify explicitly.
215215

216216
_property: transactionRequest.gasPrice => [[BigNumber]] | Promise<[[BigNumber]]>
@@ -221,7 +221,7 @@ if ``maxFeePerGas`` or ``maxPriorityFeePerGas`` is given.
221221

222222
_property: transactionRequest.maxFeePerGas => [[BigNumber]] | Promise<[[BigNumber]]>
223223
The maximum price (in wei) per unit of gas this transaction will pay for the
224-
[[link-eip-1559]] base fee.
224+
combined [[link-eip-1559]] block's base fee and this transaction's priority fee.
225225

226226
Most developers should leave this unspecified and use the default value that
227227
ethers determines from the network.
@@ -230,9 +230,10 @@ This may not be specified for transactions with ``type`` set to ``0`` or if ``ga
230230
is specified..
231231

232232
_property: transactionRequest.maxPriorityFeePerGas => [[BigNumber]] | Promise<[[BigNumber]]>
233-
The price (in wei) per unit of gas this transaction will pay for the
234-
[[link-eip-1559]] priority fee. This is **included in** the ``maxFeePerGass``,
235-
so this will **not affect** the total maximum cost set with ``maxFeePerGas``.
233+
The price (in wei) per unit of gas this transaction will allow in addition to
234+
the [[link-eip-1559]] block's base fee to bribe miners into giving this transaction
235+
priority. This is **included in** the ``maxFeePerGas``, so this will **not affect**
236+
the total maximum cost set with ``maxFeePerGas``.
236237

237238
Most developers should leave this unspecified and use the default value that
238239
ethers determines from the network.

0 commit comments

Comments
 (0)