eth_getCode-polygon

Returns code at a given address.

Log in to see full request history

Parameters

  • DATA, 20 Bytes - address to get the code.
  • QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending", see the default block parameter.
curl https://polygon-mainnet-archive.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \ --request POST \ --header "Content-Type: application/json" \ --data '{ "jsonrpc":"2.0", "id":1, "method":"eth_getCode", "params":[ "0xdAC17F958D2ee523a2206206994597C13D831ec7", "latest" ] }'

Returns

  • DATA - the code from the given address.
{ "jsonrpc": "2.0", "id": 1, "result": "0x" }

Try Yourself

Path Params
string
required
Defaults to 8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj
Body Params
string
required
Defaults to { "jsonrpc":"2.0", "id":1, "method":"eth_getCode", "params":[ "0xdAC17F958D2ee523a2206206994597C13D831ec7", "latest" ] }
Language
Click Try It! to start a request and see the response here!