Type alias RpcCast<method_s, params_t>

RpcCast<method_s, params_t>: { jsonrpc: "2.0"; method: method_s; params: params_t }

This type is used for "notifications", i.e. messages sent from the client to the server that do not need a response. An example is the wallet announcing it exists.

(layer 3)

Example

//layer 3: JSON RPC
{jsonrpc : "2.0",
method : "connection.announcePresence",
// layer 4: AWCP-specific semantics
params : {id : "{aee9e933-52b6-410a-8c3f-99c6be596b4e}",
name : "Superhero",
networkId : "ae_mainnet",
origin : "moz-extension://ee425d81-d5b2-44b6-9406-4da31b019e7c",
type : "extension"}}

Type Parameters

Type declaration

  • jsonrpc: "2.0"
  • method: method_s
  • params: params_t

Generated using TypeDoc