@statechannels/client-api-schema > JsonRpcNotification
JsonRpcNotification interface
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Specifies notification headers as per JSON-RPC 2.0 Specification
Signature:
export interface JsonRpcNotification<NotificationName extends string, NotificationParams extends object>
Remarks
Note one difference to the JSON-RPC spec is that notifications originate from the wallet (i.e. the Server, not the Client).
Properties
Property | Type | Description |
---|---|---|
jsonrpc | '2.0' | (BETA) Spec version |
method | NotificationName | (BETA) Generic type of the Notification name |
params | NotificationParams | (BETA) Generic type of the Notification parameters |