Account
Unsubscribe Balance
Stops receiving balance updates for the specified account
Unsubscribe from balance updates (requires authentication)#
Stops receiving balance updates for the specified account
Channel:WEBSOCKET
Tag:
Account
MESSAGE
Request to unsubscribe from balance updates
Parameters
sourcestringMust be 'balance'
accountstringEthereum address of the account (must match subscription)
subaccount_indices?arrayOptional array of subaccount indices. Must match the subscription if provided (same order not required, but same indices).
Payload
{
"jsonrpc": "2.0",
"method": "unsubscribe",
"params": {
"source": "balance",
"account": "0xe1c03ec3bcf509b3e8e63abcd03edc661ffe6a78"
},
"id": 15
}REPLY
Success response for unsubscribe requests
Parameters
message?stringSuccess message
Payload
{
"jsonrpc": "2.0",
"result": {
"message": "Unsubscribed from channel"
},
"usIn": 1234567890123,
"usOut": 1234567890456,
"usDiff": 333,
"id": 10
}REPLY
Error response for failed requests
Parameters
jsonrpcstringJSON-RPC version
errorobjectusInintegerRequest received timestamp in milliseconds
usOutintegerResponse sent timestamp in milliseconds
usDiffintegerProcessing time in milliseconds
id?string | integer | nullRequest identifier (if provided in request, otherwise null)
Payload
{
"jsonrpc": "2.0",
"error": {
"code": -32602,
"message": "Invalid subscription params"
},
"usIn": 1234567890123,
"usOut": 1234567890456,
"usDiff": 333,
"id": 2
}