Request format
Set the "id" field
If the "id"
field in the request is omitted or set to null
, the server will assume the client is not intending to wait for a response, and we won't return one. The JSON RPC spec calls this a "notification".
It's up to your client to decide on the data type and value to use for the ID field, as long as it's a valid JSON value. The same ID that is used in the request will be used in the response. However, if your client doesn't have any specific needs, we recommend that you just use 1
as it's a short and simple value. This is the value that is typically used by our SDKs.
Example
request
{
"jsonrpc": "2.0",
"method": "<RPC METHOD>",
"id": 1,
"params": {}
}
Definition
type: object
Properties
Name | Type | Required | Description |
---|---|---|---|
jsonrpc | string("2.0" ) | Yes | Version of JSON RPC protocol to use. Must be "2.0" . |
id | any | Yes | Set to any value except null to request a response. |
method | string | Yes | Name of method to invoke. |
params | array or object | Depends on method | Input parameters for the method, encoded either as positional parameters (array) or named parameters (object). |