Type alias RpcResp_Any

RpcResp_Any: RpcResp<string, any>

Most generic possible response

Example

Successful response (RpcResp_ok)

// 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"}}

Example

Unsuccessful response (RpcResp_error)

// layer 3: RPC
{jsonrpc : "2.0",
id : "ske-address-1",
method : "address.subscribe",
// layer 4: AWCP semantics
error : {code : 4,
data : {},
message : "Operation rejected by user"}}

Generated using TypeDoc