You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/web3-eth-contract.rst
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -837,6 +837,8 @@ Parameters
837
837
* ``gasPrice`` - ``String`` (optional): The gas price in wei to use for this transaction.
838
838
* ``gas`` - ``Number`` (optional): The maximum gas provided for this transaction (gas limit).
839
839
* ``value`` - ``Number|String|BN|BigNumber``(optional): The value transferred for the transaction in wei.
840
+
* ``nonce`` - ``Number`` (optional): the nonce number of transaction
841
+
840
842
2. ``callback`` - ``Function`` (optional): This callback will be fired first with the "transactionHash", or with an error object as the first argument.
Returns base fee per gas and transaction effective priority fee per gas history for the requested block range if available.
731
+
The range between headBlock-4 and headBlock is guaranteed to be available while retrieving data from the pending block and older
732
+
history are optional to support. For pre-EIP-1559 blocks the gas prices are returned as rewards and zeroes are returned for the base fee per gas.
733
+
734
+
----------
735
+
Parameters
736
+
----------
737
+
738
+
1. ``String|Number|BN|BigNumber`` - Number of blocks in the requested range. Between 1 and 1024 blocks can be requested in a single query. Less than requested may be returned if not all blocks are available.
739
+
2. ``String|Number|BN|BigNumber`` - Highest number block of the requested range.
740
+
3. ``Array of numbers`` - A monotonically increasing list of percentile values to sample from each block's effective priority fees per gas in ascending order, weighted by gas used. Example: `["0", "25", "50", "75", "100"]` or `["0", "0.5", "1", "1.5", "3", "80"]`
741
+
4. ``Function`` - (optional) Optional callback, returns an error object as first parameter and the result as second.
742
+
743
+
-------
744
+
Returns
745
+
-------
746
+
747
+
``Promise`` returns ``Object`` - Fee history for the returned block range. The object:
748
+
749
+
- ``Number`` oldestBlock - Lowest number block of the returned range.
750
+
- ``Array of strings`` baseFeePerGas - An array of block base fees per gas. This includes the next block after the newest of the returned range, because this value can be derived from the newest block. Zeroes are returned for pre-EIP-1559 blocks.
751
+
- ``Array of numbers`` gasUsedRatio - An array of block gas used ratios. These are calculated as the ratio of gasUsed and gasLimit.
752
+
- ``Array of string arrays`` reward - An array of effective priority fee per gas data points from a single block. All zeroes are returned if the block is empty.
- ``value`` - ``Number|String|BN|BigNumber``: (optional) The value transferred for the transaction in :ref:`wei <what-is-wei>`, also the endowment if it's a contract-creation transaction.
1420
1459
- ``gas`` - ``Number``: (optional, default: To-Be-Determined) The amount of gas to use for the transaction (unused gas is refunded).
1421
1460
- ``gasPrice`` - ``Number|String|BN|BigNumber``: (optional) The price of gas for this transaction in :ref:`wei <what-is-wei>`, defaults to :ref:`web3.eth.gasPrice <eth-gasprice>`.
1461
+
- ``type`` - ``Number|String|BN|BigNumber``: (optional) A positive unsigned 8-bit number between 0 and 0x7f that represents the type of the transaction.
1462
+
- ``maxFeePerGas`` - ``Number|String|BN``: (optional, defaulted to ``(2 * block.baseFeePerGas) + maxPriorityFeePerGas``) The maximum fee per gas that the transaction is willing to pay in total
1463
+
- ``maxPriorityFeePerGas`` - ``Number|String|BN`` (optional, defaulted to ``1 Gwei``) The maximum fee per gas to give miners to incentivize them to include the transaction (Priority fee)
1464
+
- ``accessList`` - ``List of hexstrings`` (optional) a list of addresses and storage keys that the transaction plans to access
1422
1465
- ``data`` - ``String``: (optional) Either a `ABI byte string <http://solidity.readthedocs.io/en/latest/abi-spec.html>`_ containing the data of the function call on a contract, or in the case of a contract-creation transaction the initialisation code.
1423
1466
- ``nonce`` - ``Number``: (optional) Integer of the nonce. This allows to overwrite your own pending transactions that use the same nonce.
1424
1467
- ``chain`` - ``String``: (optional) Defaults to ``mainnet``.
1425
-
- ``hardfork`` - ``String``: (optional) Defaults to ``petersburg``.
1468
+
- ``hardfork`` - ``String``: (optional) Defaults to ``london``.
1426
1469
- ``common`` - ``Object``: (optional) The common object
1427
1470
- ``customChain`` - ``Object``: The custom chain properties
1428
1471
- ``name`` - ``string``: (optional) The name of the chain
1429
1472
- ``networkId`` - ``number``: Network ID of the custom chain
1430
1473
- ``chainId`` - ``number``: Chain ID of the custom chain
Copy file name to clipboardExpand all lines: docs/web3-shh.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ web3.shh
5
5
========
6
6
7
7
8
-
The ``web3-shh`` package allows you to interact with the whisper protocol for broadcasting. For more see `Whisper Overview <https://github.com/ethereum/go-ethereum/wiki/Whisper>`_.
8
+
The ``web3-shh`` package allows you to interact with the whisper protocol for broadcasting. For more see `Whisper Overview <https://eth.wiki/concepts/whisper/whisper-overview>`_.
0 commit comments