eth_getCode

Returns code at a given address.

Request

This endpoint expects an object.
addressstringRequiredformat: "^0x[a-fA-F0-9]{40}$"
Address whose contract code should be returned.
blockanyRequired
Block number or tag used for the code lookup.

Response

Hex-encoded contract bytecode, or 0x when no code exists.