eth_call
POST https://mainnet.valuechain.xyz
Executes a call without creating a transaction on the chain.
The example calls name() on WSOSO and returns Wrapped SOSO.
Parameters
Name
Type
Required
Description
transaction
object
Yes
Call object: to, optional from, data, value, and gas fields.
block
quantity, tag, or object
No
Hex block number, tag (earliest, latest, safe, finalized, pending), or block identifier object. Defaults to latest. See block tags.
Result
Return data (data): ABI-encoded return data from the call.
Example
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000c5772617070656420534f534f0000000000000000000000000000000000000000"
}Code examples
cURL
JavaScript
Python
Last updated