RPC API/Standard JSON formats

The RPC structures comply with the standards defined in the JSON-RPC 2.0 specification.

Requests
{   "jsonrpc":  "method":  "params": [Optional]  "id":      }

Responses
{   "jsonrpc":  }

TypeError: {   "code":     "message":  "data":   [Optional]  }

Default error codes
Error codes 0-9 are preserved for generalization purposes.