Exth.Rpc.Response.Success (Exth v0.4.2)
View SourceRepresents a successful JSON-RPC 2.0 response.
Fields
id
- Request identifier that matches the request IDresult
- The actual response data from the RPC method calljsonrpc
- JSON-RPC version (defaults to "2.0")
Example
%Success{
id: 1,
result: "0x4b7",
jsonrpc: "2.0"
}
Summary
Types
@type t() :: %Exth.Rpc.Response.Success{ id: Exth.Rpc.Types.id(), jsonrpc: Exth.Rpc.Types.jsonrpc(), result: String.t() }