core.subscribe

Subscribe the current connection to the named event and return a subscription identifier.

Matching event notifications are pushed to this connection until the subscription is removed with core.unsubscribe. A JSON-RPC error response (code -32001, Method call error) is returned if the caller is not authorized to subscribe to the event.

Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: event

event

Type: string

Event name to subscribe to for real-time updates.

Result

Type: string

CoreSubscribeResult return fields.



Required roles: