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
Copy file name to clipboardExpand all lines: docs/types/value-types.rst
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -329,6 +329,10 @@ on ``call``.
329
329
regardless of whether state is read from or written to, as this can have many pitfalls.
330
330
Also, access to gas might change in the future.
331
331
332
+
* ``code`` and ``codehash``
333
+
334
+
You can query the deployed code for any smart contract. Use ``code`` to get the EVM bytecode as a string, which might be empty. Use ``codehash`` get the Keccak-256 hash of that code.
335
+
332
336
.. note::
333
337
All contracts can be converted to ``address`` type, so it is possible to query the balance of the
0 commit comments