RpcResp_error<method_s>: { jsonrpc: "2.0"; id: number | string; method: method_s; error: RpcError }

This is the shape of unsuccessful responses

Example

From a page script, using sidekick, I asked for the user's address. Superhero popped up the little dialog thing asking if I wanted to connect, and I hit "deny". This is what was sent back. Code 4 corresponds to ERROR_CODE_RpcRejectedByUserError.

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

Type Parameters

Type declaration

  • jsonrpc: "2.0"
  • id: number | string
  • method: method_s
  • error: RpcError

Generated using TypeDoc