Methods
Subscribe
Subscribe to topics
Public · 1 param · Returns response
Method subscribe
Subscribe to topics
Request
Send a JSON-RPC request with method: "subscribe" and the parameters below.
topics*string[]Example
{
"jsonrpc": "2.0",
"id": 1,
"method": "subscribe",
"params": {
"topics": [
"wallet/deposit"
]
}
}Response
On success the server replies with a JSON-RPC response matching the request id and the fields below.
subscribed*string[]Example
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"subscribed": [
"wallet/deposit"
]
}
}On failure the server replies with a JSON-RPC error object matching the request id. See Errors for the full list of codes and recovery hints.