POST
curl --request POST \
  --url https://rpc.quai.network/cyprus1/ \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "quai_call",
  "params": [
    {
      "from": "0x02E4dD4F66E018fD2bddf57467D4bB359D72b705",
      "to": "0x0864B3aab87584b337a92aB1fCfCcf6dad2463Db",
      "gas": "0x5208",
      "value": "0x10F2C",
      "data": "0x"
    },
    "latest"
  ],
  "id": 1
}'
{
  "jsonrpc": "2.0",
  "result": "0x",
  "id": 1
}

Body

application/json
jsonrpc
enum<string>
required
Available options:
2.0
method
enum<string>
required

The name of the method to be invoked.

Available options:
quai_call
params
array
required

The transaction data to test execution for, the default block parameter.

id
integer
required

A unique identifier for the request.

Response

200 - application/json
Successful response
jsonrpc
string
result
string

Value of the executed contract method.

id
integer