eth_getCode - Polygon

Returns code at a given address.

Parameters

params: [
    '0xce5f94f814906fbe7cd151c6ceb9095325612245',
    'latest'
]

Returns

  • DATA - the code from the given address.

Request example

curl https://polygon.api.watchdata.io/node/jsonrpc?api_key=your_api_key
-X POST \
-d '{"jsonrpc":"2.0","method":"eth_getCode","params":["0xce5f94f814906fbe7cd151c6ceb9095325612245", "latest"],"id":0}'

Result

{
    "jsonrpc": "2.0",
    "id": 0,
    "result": "0x"
}

Last updated