POST
curl --request POST \
  --url https://rpc.quai.network/cyprus1/ \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "quai_qiToQuai",
  "params": [
    {
      "from": "0x03b1b2fcbaa6e4a3b44ac348b00ed0a68546d26b",
      "to": "0x1856f346b67615e9acb4dc3da6ebceb2bc2f8940",
      "value": "0xe3424c93"
    }
  ],
  "id": 1
}'
{
  "jsonrpc": "2.0",
  "result": "0xA98AC7",
  "id": 1
}

Body

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

"2.0"

method
enum<string>
required

The name of the method to be invoked.

Available options:
quai_qiToQuai
Example:

"quai_qiToQuai"

params
array
required

The transaction data to know the type of conversion and amount used for the conversion.

Example:
[
  {
    "from": "0x03b1b2fcbaa6e4a3b44ac348b00ed0a68546d26b",
    "to": "0x1856f346b67615e9acb4dc3da6ebceb2bc2f8940",
    "value": "0xe3424c93"
  }
]
id
integer
required

A unique identifier for the request.

Example:

1

Response

200 - application/json
Successful response
jsonrpc
string
Example:

"2.0"

result
string

The amount of Quai (Wei) or Qi in (Qits) after the conversion flow and k quai discount slip is applied at the current block

Example:

"0xA98AC7"

id
integer
Example:

1