eth_getCode RPC Method
Please note that for this RPC method, if the block number is set to pending, Polygon zkEVM assumes it as the latest.
Parameters
address
string
REQUIRED
Loading...
blockNumber
string
REQUIRED
Loading...
Returns
result
string
Loading...
Request
1curl https://docs-demo.xlayer-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_getCode","params":["0x89ea659a68ad399de1d71e5acc1544a8b98ad6db","latest"],"id":1,"jsonrpc":"2.0"}'5
1curl https://docs-demo.xlayer-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_getCode","params":["0x89ea659a68ad399de1d71e5acc1544a8b98ad6db","latest"],"id":1,"jsonrpc":"2.0"}'5
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free