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
* Delegates to ``eth_createAccessList`` RPC Method
1083
+
* Delegates to ``eth_create_access_list`` RPC Method
1084
1084
1085
1085
This method creates an `EIP2930 <https://eips.ethereum.org/EIPS/eip-2930>`_ type ``accessList`` based on a given ``Transaction``. The ``accessList`` contains all storage slots and addresses read and written by the transaction, except for the sender account and the precompiles. This method uses the same ``transaction`` call object and ``block_identifier`` object as :meth:`~web3.eth.Eth.call()`. An ``accessList`` can be used to unstuck contracts that became inaccessible due to gas cost increases.
1086
1086
1087
1087
:param transaction: ``TransactionCall`` object.
1088
-
:param block_identifier: Optional, blocknumber or ``latest`` or ``pending``
1088
+
:param block_identifier: Optional, a block_number or ``latest`` or ``pending``
@@ -1107,7 +1107,7 @@ The following methods are available on the ``web3.eth`` namespace.
1107
1107
"gas": "21000"
1108
1108
}
1109
1109
1110
-
The method ``eth_createAccessList`` returns list of addresses and storage keys used by the transaction, plus the gas consumed when the access list is added.
1110
+
The method ``eth_create_access_list`` returns list of addresses and storage keys used by the transaction, plus the gas consumed when the access list is added.
1111
1111
1112
1112
That is, it gives you the list of addresses and storage keys that will be used by that transaction, plus the gas consumed if the access list is included. Like ``eth_estimateGas``, this is an estimation; the list could change when the transaction is actually mined. Adding an ``accessList`` to your transaction does not necessary result in lower gas usage compared to a transaction without an access list.
0 commit comments