Exth.Rpc.Response.Success (Exth v0.4.2)

View Source

Represents a successful JSON-RPC 2.0 response.

Fields

  • id - Request identifier that matches the request ID
  • result - The actual response data from the RPC method call
  • jsonrpc - JSON-RPC version (defaults to "2.0")

Example

%Success{
  id: 1,
  result: "0x4b7",
  jsonrpc: "2.0"
}

Summary

Types

t()

@type t() :: %Exth.Rpc.Response.Success{
  id: Exth.Rpc.Types.id(),
  jsonrpc: Exth.Rpc.Types.jsonrpc(),
  result: String.t()
}