eth_getCode

Returns the code at a given address.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
AddressstringRequiredformat: "^0x[0-9a-fA-F]{40}$"
The address of the contract to get code from.
Blockstring or enumRequired

The block number, tag, or hash at which to retrieve the code. Please note only the 'latest' block option is supported.

Response

The code from the specified address, as a hexadecimal string.