glethers/rpc/calls
Types
pub type JsonRpcError {
JsonRpcError(code: Int, message: String)
}
Constructors
-
JsonRpcError(code: Int, message: String)
pub type JsonRpcResponse {
Result(id: Int, jsonrpc: String, result: dynamic.Dynamic)
Error(id: Int, jsonrpc: String, error: JsonRpcError)
}
Constructors
-
Result(id: Int, jsonrpc: String, result: dynamic.Dynamic)
-
Error(id: Int, jsonrpc: String, error: JsonRpcError)
pub type RpcRequest {
RpcRequest(
method: String,
params: List(String),
id: Int,
jsonrpc: String,
)
}
Constructors
-
RpcRequest( method: String, params: List(String), id: Int, jsonrpc: String, )
Functions
pub fn encode_rpc_call(json_rpc_call: RpcRequest) -> Json