Type alias RpcResp_ok<method_s, result_t>

RpcResp_ok<method_s, result_t>: { jsonrpc: "2.0"; id: number | string; method: method_s; result: result_t }

This is the shape of successful responses

Example

// layer 3: RPC
{jsonrpc : "2.0",
id : "ske-connect-1",
method : "connection.open",
// layer 4: AWCP-specific semantics
result : {id : "mnhmmkepfddpifjkamaligfeemcbhdne",
name : "Superhero",
networkId : "ae_mainnet",
origin : "chrome-extension://mnhmmkepfddpifjkamaligfeemcbhdne",
type : "extension"}}

Type Parameters

Type declaration

  • jsonrpc: "2.0"
  • id: number | string
  • method: method_s
  • result: result_t

Generated using TypeDoc