This is the shape of unsuccessful responses
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.
4
// 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
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
4corresponds to ERROR_CODE_RpcRejectedByUserError.