Protocol
Changelly API uses JSON-RPC 2.0 protocol.
Request body
Name | Type | Required | Description |
---|---|---|---|
jsonrpc | string | true | JSON-RPC version. |
id | string | true | Client's custom ID. |
method | string | true | API method name. |
params | object / array of objects | true | Request parameters. |
The content and the type of the params
parameter depend on the method.
Sample request body
{
"jsonrpc": "2.0",
"id": "test",
"method": "getStatus",
"params": {
"id": "pgj********2minj"
}
}
Response body
Name | Type | Description |
---|---|---|
jsonrpc | string | JSON-RPC version. |
id | string | Client's custom ID. |
result | string / array of strings object / array of objects | API response. |
id
used is a custom ID generated at the client side to distinguish responses. You may use any value you want.
The content and the type of the params
parameter depend on the method.
Sample response body
{
"jsonrpc": "2.0",
"id": "test",
"result": "waiting"
}