Links

eth_getCode (BSC)

Returns code at a given address.
Parameters
  • DATA, 20 Bytes - address.
  • QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending", see the default block parameter.
params: [
'0xe9ae3261a475a27bb1028f140bc2a7c843318afd',
'latest'
]
Returns
  • DATA - the code from the given address.
Request example
Curl
Postman
curl https://bsc.api.watchdata.io/node/jsonrpc?api_key=your_api_key
-X POST \
-d '{"jsonrpc":"2.0","method":"eth_getCode","params":["0xe9ae3261a475a27bb1028f140bc2a7c843318afd", "latest"],"id":0}'
URL: https://bsc.api.watchdata.io/node/jsonrpc?api_key=your_api_key
RequestType: POST
Body:
{
"jsonrpc":"2.0",
"method":"eth_getCode",
"params":["0xe9ae3261a475a27bb1028f140bc2a7c843318afd", "latest"],
"id":0
}
Result
{
"jsonrpc": "2.0",
"id": 0,
"result": "0x"
}