post https://polygon-mainnet-rpc.allthatnode.com:8545/
Returns code at a given address.
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"
}