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.rst
+81-5Lines changed: 81 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -677,7 +677,7 @@ Parameters
677
677
----------
678
678
679
679
1. ``String`` - The address to get the balance of.
680
-
2. ``Number|String|BN|BigNumber`` - (optional) If you pass this parameter it will not use the default block set with :ref:`web3.eth.defaultBlock <eth-defaultblock>`. Pre-defined block numbers as ``"latest"``, ``"earlist"``, ``"pending"``, and ``"genesis"`` can also be used.
680
+
2. ``Number|String|BN|BigNumber`` - (optional) If you pass this parameter it will not use the default block set with :ref:`web3.eth.defaultBlock <eth-defaultblock>`. Pre-defined block numbers as ``"latest"``, ``"earliest"``, ``"pending"``, and ``"genesis"`` can also be used.
681
681
3. ``Function`` - (optional) Optional callback, returns an error object as first parameter and the result as second.
682
682
683
683
-------
@@ -718,7 +718,7 @@ Parameters
718
718
719
719
1. ``String`` - The address to get the storage from.
720
720
2. ``Number|String|BN|BigNumber`` - The index position of the storage.
721
-
3. ``Number|String|BN|BigNumber`` - (optional) If you pass this parameter it will not use the default block set with :ref:`web3.eth.defaultBlock <eth-defaultblock>`. Pre-defined block numbers as ``"latest"``, ``"earlist"``, ``"pending"``, and ``"genesis"`` can also be used.
721
+
3. ``Number|String|BN|BigNumber`` - (optional) If you pass this parameter it will not use the default block set with :ref:`web3.eth.defaultBlock <eth-defaultblock>`. Pre-defined block numbers as ``"latest"``, ``"earliest"``, ``"pending"``, and ``"genesis"`` can also be used.
722
722
4. ``Function`` - (optional) Optional callback, returns an error object as first parameter and the result as second.
723
723
724
724
@@ -756,7 +756,7 @@ Parameters
756
756
----------
757
757
758
758
1. ``String`` - The address to get the code from.
759
-
2. ``Number|String|BN|BigNumber`` - (optional) If you pass this parameter it will not use the default block set with :ref:`web3.eth.defaultBlock <eth-defaultblock>`. Pre-defined block numbers as ``"latest"``, ``"earlist"``, ``"pending"``, and ``"genesis"`` can also be used.
759
+
2. ``Number|String|BN|BigNumber`` - (optional) If you pass this parameter it will not use the default block set with :ref:`web3.eth.defaultBlock <eth-defaultblock>`. Pre-defined block numbers as ``"latest"``, ``"earliest"``, ``"pending"``, and ``"genesis"`` can also be used.
760
760
3. ``Function`` - (optional) Optional callback, returns an error object as first parameter and the result as second.
761
761
762
762
-------
@@ -1177,7 +1177,7 @@ Parameters
1177
1177
----------
1178
1178
1179
1179
1. ``String`` - The address to get the numbers of transactions from.
1180
-
2. ``Number|String|BN|BigNumber`` - (optional) If you pass this parameter it will not use the default block set with :ref:`web3.eth.defaultBlock <eth-defaultblock>`. Pre-defined block numbers as ``"latest"``, ``"earlist"``, ``"pending"``, and ``"genesis"`` can also be used.
1180
+
2. ``Number|String|BN|BigNumber`` - (optional) If you pass this parameter it will not use the default block set with :ref:`web3.eth.defaultBlock <eth-defaultblock>`. Pre-defined block numbers as ``"latest"``, ``"earliest"``, ``"pending"``, and ``"genesis"`` can also be used.
1181
1181
3. ``Function`` - (optional) Optional callback, returns an error object as first parameter and the result as second.
1182
1182
1183
1183
-------
@@ -1492,7 +1492,7 @@ Parameters
1492
1492
----------
1493
1493
1494
1494
1. ``Object`` - A transaction object see :ref:`web3.eth.sendTransaction <eth-sendtransaction-return>`, with the difference that for calls the ``from`` property is optional as well.
1495
-
2. ``Number|String|BN|BigNumber`` - (optional) If you pass this parameter it will not use the default block set with :ref:`web3.eth.defaultBlock <eth-defaultblock>`. Pre-defined block numbers as ``"latest"``, ``"earlist"``, ``"pending"``, and ``"genesis"`` can also be used.
1495
+
2. ``Number|String|BN|BigNumber`` - (optional) If you pass this parameter it will not use the default block set with :ref:`web3.eth.defaultBlock <eth-defaultblock>`. Pre-defined block numbers as ``"latest"``, ``"earliest"``, ``"pending"``, and ``"genesis"`` can also be used.
1496
1496
3. ``Function`` - (optional) Optional callback, returns an error object as first parameter and the result as second.
Returns the account and storage-values of the specified account including the Merkle-proof as described in `EIP-1186 <https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1186.md>`_.
1818
+
1819
+
----------
1820
+
Parameters
1821
+
----------
1822
+
1823
+
1. ``String`` 20 Bytes: The Address of the account or contract.
1824
+
2. ``Number[] | BigNumber[] | BN[] | String[]`` 32 Bytes: Array of storage-keys which should be proofed and included. See :ref:`web3.eth.getStorageAt <eth-getStorageAt>`.
1825
+
3. ``Number | String | BN | BigNumber``: Integer block number. Pre-defined block numbers as ``"latest"``, ``"earliest"``, and ``"genesis"`` can also be used.
1826
+
4. ``Function`` - (optional) Optional callback, returns an error object as first parameter and the result as second.
1827
+
1828
+
-------
1829
+
Returns
1830
+
-------
1831
+
1832
+
``Promise<Object>`` - A account object.
1833
+
1834
+
- ``address`` - ``String``: The address of the account.
1835
+
- ``balance`` - ``String``: The balance of the account. See :ref:`web3.eth.getBalance <eth-getBalance>`.
1836
+
- ``codeHash`` - ``String``: hash of the code of the account. For a simple Account without code it will return "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
1837
+
- ``nonce`` - ``String``: Nonce of the account.
1838
+
- ``storageHash`` - ``String``: SHA3 of the StorageRoot. All storage will deliver a MerkleProof starting with this rootHash.
1839
+
- ``accountProof`` - ``String[]``:Array of rlp-serialized MerkleTree-Nodes, starting with the stateRoot-Node, following the path of the SHA3 (address) as key.
1840
+
- ``storageProof`` - ``Object[]`` Array of storage-entries as requested.
0 commit comments