post https://ethereum-mainnet-archive.allthatnode.com/
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://ethereum-mainnet-rpc.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": "x606060405260043610610196576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde031461019b5780630753c30c14610229578063095ea7b3146102625780630e136b19146102a45780630ecb93c0146102d157806318160ddd1461030a57806323b872dd1461033357806326976e3f1461039457806327e235e3146103e9578063313ce56714610436578063353907141461045f5780633eaaf86b14610....4"
}