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.
* Init web3.eth.createAccessList
* Init e2e test for createAccessList
* Add createAccessList method to method wrappers for contracts
* Update failing tests to use dynamic address
* Add check to not run tests if ENV not Geth
* Add createAccessList to docs
* Update CHANGELOG.md
* Update docs/web3-eth-contract.rst
* Update docs/web3-eth-contract.rst
* Update docs/web3-eth-contract.rst
* Update docs/web3-eth-contract.rst
* Update docs/web3-eth-contract.rst
* Update docs/web3-eth.rst
* Remove duplicate line in CHANGELOG
* Move CHANGELOG addition to 1.6.1
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5
Original file line number
Diff line number
Diff line change
@@ -458,6 +458,10 @@ Released with 1.0.0-beta.37 code base.
458
458
459
459
## [1.6.1]
460
460
461
+
### Added
462
+
463
+
- Support for `eth_createAccessList` as both an rpc call (`web3.eth.createAccessList`) and property of contract method wrappers (`contractInstance.methods.getValue().createAccessList`) (#4332)
464
+
461
465
### Changed
462
466
463
467
- Not considering `tx.chainId` if `tx.common.customChain.chainId` is provided for `web3.eth.accounts.signTransaction` function (#4293)
@@ -466,3 +470,4 @@ Released with 1.0.0-beta.37 code base.
466
470
- Emit subscription id with connect event when creating a subscription (#4300)
467
471
- Introduced new configuration "blockHeaderTimeout" for waiting of block headers for transaction receipt (#3891)
468
472
- Format `block.baseFeePerGas` to number (#4330)
473
+
- Updated README to include Webpack 5 angular support instructions (#4174)
Copy file name to clipboardExpand all lines: docs/web3-eth-contract.rst
+70-1
Original file line number
Diff line number
Diff line change
@@ -613,6 +613,7 @@ Returns
613
613
- ``Function`` - :ref:`send <contract-send>`: Will deploy the contract. The promise will resolve with the new contract instance, instead of the receipt!
614
614
- ``Function`` - :ref:`estimateGas <contract-estimateGas>`: Will estimate the gas used for deploying. Note: You must specify a ``from`` address otherwise you may experience odd behavior.
615
615
- ``Function`` - :ref:`encodeABI <contract-encodeABI>`: Encodes the ABI of the deployment, which is contract data + constructor parameters
616
+
- ``Function`` - :ref:`createAccessList <contract-createAccessList>`: Returns an EIP-2930 access list for specified contract method Note: You must specify a ``from`` address and possible ``gas``
Creates a transaction object for that method, which then can be :ref:`called <contract-call>`, :ref:`send <contract-send>`, :ref:`estimated <contract-estimateGas>`, or :ref:`ABI encoded <contract-encodeABI>`.
688
+
Creates a transaction object for that method, which then can be :ref:`called <contract-call>`, :ref:`send <contract-send>`, :ref:`estimated <contract-estimateGas>`, :ref:`createAccessList <contract-createAccessList>` , or :ref:`ABI encoded <contract-encodeABI>`.
688
689
689
690
The methods of this smart contract are available through:
690
691
@@ -711,6 +712,7 @@ Returns
711
712
- ``Function`` - :ref:`send <contract-send>`: Will send a transaction to the smart contract and execute its method (Can alter the smart contract state).
712
713
- ``Function`` - :ref:`estimateGas <contract-estimateGas>`: Will estimate the gas used when the method would be executed on chain. Note: You must specify a ``from`` address otherwise you may experience odd behavior.
713
714
- ``Function`` - :ref:`encodeABI <contract-encodeABI>`: Encodes the ABI for this method. This can be send using a transaction, call the method or passing into another smart contracts method as argument.
715
+
- ``Function`` - :ref:`createAccessList <contract-createAccessList>`: Returns an EIP-2930 access list for specified contract method Note: You must specify a ``from`` address and ``gas`` if it's not specified in ``options`` when instantiating parent contract object (e.g. ``new web3.eth.Contract(jsonInterface[, address][, options])``).
Will call to create an access list a method execution will access when executed in the EVM.
1055
+
Note: Currently `eth_createAccessList` seems to only be supported by Geth.
1056
+
Note: You must specify a ``from`` address and ``gas`` if it's not specified in ``options`` when instantiating parent contract object (e.g. ``new web3.eth.Contract(jsonInterface[, address][, options])``).
1057
+
1058
+
----------
1059
+
Parameters
1060
+
----------
1061
+
1062
+
1. ``options`` - ``Object``: The options used for calling.
1063
+
* ``from`` - ``String``: The address the call "transaction" should be made from.
1064
+
* ``gas`` - ``Number`` (optional): The maximum gas provided for this call "transaction" (gas limit). Setting a specific value helps to detect out of gas errors. Access list response will return amount of gas used.
1065
+
2. ``block`` - ``String|Number|BN|BigNumber`` (optional): The block number or hash. Or the string ``"earliest"``, ``"latest"`` or ``"pending"`` as in the :ref:`default block parameter <eth-defaultblock>`.
1066
+
3. ``callback`` - ``Function`` (optional): This callback will be fired with the result of the access list generation as the second argument, or with an error object as the first argument.
1067
+
1068
+
-------
1069
+
Returns
1070
+
-------
1071
+
1072
+
``Promise`` returns ``Object``: The generated access list for transaction.
Will call to create an access list a method execution will access when executed in the EVM.
2165
+
Note: Currently `eth_createAccessList` seems to only be supported by Geth.
2166
+
Note: You must specify a ``from`` address and ``gas`` if it's not specified in ``options`` when instantiating parent contract object (e.g. ``new web3.eth.Contract(jsonInterface[, address][, options])``).
2167
+
2168
+
----------
2169
+
Parameters
2170
+
----------
2171
+
2172
+
1. A transaction object, see :ref:`web3.eth.sendTransaction <eth-sendtransaction-return>` with the difference that this method is specifically for contract method executions.
2173
+
2. ``block`` - ``String|Number|BN|BigNumber`` (optional): The block number or hash. Or the string ``"earliest"``, ``"latest"`` or ``"pending"`` as in the :ref:`default block parameter <eth-defaultblock>`.
2174
+
3. ``callback`` - ``Function`` (optional): This callback will be fired with the result of the access list generation as the second argument, or with an error object as the first argument.
2175
+
2176
+
2177
+
-------
2178
+
Returns
2179
+
-------
2180
+
2181
+
``Promise`` returns ``Object``: The generated access list for transaction.
0 commit comments