-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Update docs #4185
Closed
Closed
Update docs #4185
Changes from 16 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
c29b932
add nonce to send options.
exx8 fb726ab
add nonce to send options.
exx8 70e4fda
Update CHANGELOG.md
exx8 9139352
linting
exx8 a277e69
Merge remote-tracking branch 'origin/1.x' into 1.x
exx8 f23e07c
merge
exx8 8899f35
updating docs
ab58050
update web3-shh.rst : whisper-overview broken link (#4170)
starwalker00 c61a335
[Docs] Fixed a broken link (#4151)
mongolsteppe 9c31732
Possible typo in docs (#4088)
blackblather 46f9f6b
Typically you will have only one Web3 connection, use const (#3967)
fulldecent 33167fc
Removing deprecation notice for HttpProvider (#4008)
evertonfraga 51bf795
[Docs] Updated solidity example to modern syntax (#4147)
mongolsteppe 068d986
Merge branch '1.x' of https://github.com/exx8/web3.js into alex/updat…
cf32dcf
Update CHANGELOG with next anticipated version
spacesailor24 1c46aa7
npm i and build for v1.5.0-rc.0
spacesailor24 fb3af4b
v1.5.0-rc.0
spacesailor24 4779430
added EIP-2718 and EIP-1559 documentation
b0ea036
fixing typo
b650d1a
addressing feedback
1ad5608
changing possible types for maxPriorityFeePerGas
086ccd5
updating maxFeePerGas type
a73c5e9
Merge branch 'release/1.5.0' into alex/update-docs
a3e2e37
Update CHANGELOG.md
spacesailor24 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -236,8 +236,10 @@ The default hardfork property can be one of the following: | |||||
- ``"constantinople"`` - ``String`` | ||||||
- ``"petersburg"`` - ``String`` | ||||||
- ``"istanbul"`` - ``String`` | ||||||
- ``"berlin"`` - ``String`` | ||||||
- ``"london"`` - ``String`` | ||||||
|
||||||
Default is ``"petersburg"`` | ||||||
Default is ``"london"`` | ||||||
|
||||||
|
||||||
------- | ||||||
|
@@ -247,7 +249,7 @@ Example | |||||
.. code-block:: javascript | ||||||
|
||||||
web3.eth.defaultHardfork; | ||||||
> "petersburg" | ||||||
> "london" | ||||||
|
||||||
// set the default block | ||||||
web3.eth.defaultHardfork = 'istanbul'; | ||||||
|
@@ -318,7 +320,7 @@ The default common property does contain the following ``Common`` object: | |||||
- ``networkId`` - ``number``: Network ID of the custom chain | ||||||
- ``chainId`` - ``number``: Chain ID of the custom chain | ||||||
- ``baseChain`` - ``string``: (optional) ``mainnet``, ``goerli``, ``kovan``, ``rinkeby``, or ``ropsten`` | ||||||
- ``hardfork`` - ``string``: (optional) ``chainstart``, ``homestead``, ``dao``, ``tangerineWhistle``, ``spuriousDragon``, ``byzantium``, ``constantinople``, ``petersburg``, or ``istanbul`` | ||||||
- ``hardfork`` - ``string``: (optional) ``chainstart``, ``homestead``, ``dao``, ``tangerineWhistle``, ``spuriousDragon``, ``byzantium``, ``constantinople``, ``petersburg``, ``istanbul``, ``berlin``, or ``london`` | ||||||
|
||||||
|
||||||
Default is ``undefined``. | ||||||
|
@@ -1419,17 +1421,21 @@ Parameters | |||||
- ``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. | ||||||
- ``gas`` - ``Number``: (optional, default: To-Be-Determined) The amount of gas to use for the transaction (unused gas is refunded). | ||||||
- ``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>`. | ||||||
- ``type`` - ``Number|String|BN|BigNumber``: (optional) A positive unsigned 8-bit number between 0 and 0x7f that represents the type of the transaction. | ||||||
- ``maxFeePerGas`` - ``Number|String|BN|BigNumber``: (optional) The maximum fee per gas that the transaction is willing to pay in total | ||||||
- ``maxPriorityFeePerGas`` - ``Number|String|BN|BigNumber`` (optional) The maximum fee per gas to give miners to incentivize them to include the transaction (Priority fee) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
- ``accessList`` - ``List of hexstrings`` (optional) a list of addresses and storage keys that the transaction plans to access | ||||||
- ``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. | ||||||
- ``nonce`` - ``Number``: (optional) Integer of the nonce. This allows to overwrite your own pending transactions that use the same nonce. | ||||||
- ``chain`` - ``String``: (optional) Defaults to ``mainnet``. | ||||||
- ``hardfork`` - ``String``: (optional) Defaults to ``petersburg``. | ||||||
- ``hardfork`` - ``String``: (optional) Defaults to ``london``. | ||||||
- ``common`` - ``Object``: (optional) The common object | ||||||
- ``customChain`` - ``Object``: The custom chain properties | ||||||
- ``name`` - ``string``: (optional) The name of the chain | ||||||
- ``networkId`` - ``number``: Network ID of the custom chain | ||||||
- ``chainId`` - ``number``: Chain ID of the custom chain | ||||||
- ``baseChain`` - ``string``: (optional) ``mainnet``, ``goerli``, ``kovan``, ``rinkeby``, or ``ropsten`` | ||||||
- ``hardfork`` - ``string``: (optional) ``chainstart``, ``homestead``, ``dao``, ``tangerineWhistle``, ``spuriousDragon``, ``byzantium``, ``constantinople``, ``petersburg``, or ``istanbul`` | ||||||
- ``hardfork`` - ``string``: (optional) ``chainstart``, ``homestead``, ``dao``, ``tangerineWhistle``, ``spuriousDragon``, ``byzantium``, ``constantinople``, ``petersburg``, ``istanbul``, ``berlin``, or ``london`` | ||||||
|
||||||
2. ``callback`` - ``Function``: (optional) Optional callback, returns an error object as first parameter and the result as second. | ||||||
|
||||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.