EVM RPC API
eth_getCode
Returns the byte code at a given address (if it’s a smart contract).
Parameters
DATA
, 20 Bytes - Address from which to retrieve byte codeTAG
- Integer block number or one of “earliest”, “latest” or “pending”
Returns
DATA
- The byte code (if any) found at the given address
POST
https://{network}.s.chainbase.online/v1
/
{api-key}
Path Parameters
api-key
string
requiredBody
application/json
id
integer
default: 1requiredjsonrpc
string
default: 2.0requiredmethod
string
default: eth_getCoderequiredparams
any[]
requiredResponse
200 - application/json
id
integer
requiredjsonrpc
string
requiredresult
string
required