Skip to content

Response interface

To standardize the communication between decentralized applications and the extension, each method will respond with a Promise and this response format.

 * Based on JSend a specification for a simple, no-frills,
 * JSON based format for application-level communication.
  status: "fail", // "success", "fail" or "error"
  data: { ... }, // Response data
  message: "Forbiden" // Optional: end-user-readable message, explaining what went wrong.