Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IRpcRequest<TParams>

The rpc call represented as request object

Type parameters

  • TParams: Record<string, any> = Record<string, any>

Hierarchy

Index

Properties

Properties

Optional id

id: undefined | null | string | number

The identifier established by the client that MUST contain a String, Number, or NULL value if included. If it is not included it is assumed to be a notification. The value SHOULD normally not be Null and Numbers SHOULD NOT contain fractional parts.

jsonrpc

jsonrpc: "2.0"

The string specifying the version of the JSON-RPC protocol. MUST be exactly "2.0".

method

method: string

The string containing the name of the method to be invoked. Method names that begin with the word rpc followed by a period character (U+002E or ASCII 46) are reserved for rpc-internal methods and extensions and MUST NOT be used for anything else.

params

params: TParams

The structured value that holds the parameter values to be used during the invocation of the method. This member MAY be omitted.

Generated using TypeDoc