eth_getCode
POST https://mainnet.valuechain.xyz
Returns the contract code at an address.
The example truncates bytecode. WSOSO is 0x5050505050505050505050505050505050505050.
Parameters
Name
Type
Required
Description
address
address
Yes
Contract address.
block
quantity or tag
No
Hex block number, or earliest, latest, safe, finalized, or pending. See block tags.
Result
Code (data): Bytecode at the address, or 0x for an EOA.
Example
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x6080604052..."
}Code examples
cURL
JavaScript
Python
Last updated