POST
/
eth_call
curl --request POST \
  --url https://api.mainnet.abs.xyz/eth_call \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_call",
  "params": [
    {
      "to": "0xc94770007dda54cF92009BFF0dE90c06F603a09f"
    },
    "latest"
  ]
}'
{
  "jsonrpc": "2.0",
  "result": "0x",
  "id": 1
}

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:eth_call
required

The method to call

params
any[]
required

Call parameters

id
integer
default:1
required

Request identifier

Response

200 - application/json
Returns the result of the contract execution
jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
string

The return value of the executed contract method

Example:

"0x"