Get Contract Bytecode at Address
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the contract code stored at a given address. If the address is an externally owned account (EOA), it returns "0x".
Body
Returns the contract code stored at a given address. If the address is an externally owned account (EOA), it returns "0x".
JSON-RPC request payload.
jsonrpcstringrequiredJSON-RPC version.
methodstringeth_getCoderequiredJSON-RPC method name.
paramsArray<string>requiredParameters array with two elements:
- The address to get the code for (hex string, 0x-prefixed).
- The block number or block tag (e.g., "latest", "earliest", "pending").
idintegerrequiredRequest identifier.
Response
HTTP 200 response for eth_getCode. The body contains either a successful result or a method-level JSON-RPC error.
Bad Request. The request body is malformed or contains invalid JSON-RPC parameters.
Unauthorized: API key is present but rejected by the NOWNodes gateway.
Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.
Missing API key. The NOWNodes gateway returns plain text for this error.
Internal Server Error. The gateway or node failed while processing the request.