eth_getCode

Returns the code at a given address.

⚠ This endpoint is only available with Blast access.

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.

Response

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