eth_getCode

Returns code at a given address. The code is returned as a hex-encoded string. If the address is not a contract, returns "0x". ⚡ Compute Units: [20 CU](https://docs.conduit.xyz/rpc-nodes/information/compute-units)

Request

This endpoint expects an object.
addressstringRequiredformat: "^0x[0-9a-fA-F]{40}$"

20-byte address to get code for

blockIdentifierenum or stringRequired
Block number, block hash, or one of "latest", "earliest", "pending", "finalized", "safe"

Response

The code at the given address, hex-encoded