Virtual TestNets are live! ⚡️ Test and stage dapps on real-time production data.  Schedule Office Hours

All Products

eth_getCode - Mode


Summary

Returns code at a given address.

Parameters

1. Address Address

Address to fetch code from
Example: i.e. 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b

2. Block Number Quantity or Tag

Hex block number, or the string latest, earliest or pending
Example: i.e. latest or pending

Code Examples