glethers/provider

Types

pub type Provider {
  Rpc(endpoint: String)
}

Constructors

  • Rpc(endpoint: String)
pub type ProviderError {
  DecodeError(json.DecodeError)
}

Constructors

  • DecodeError(json.DecodeError)

Functions

pub fn decode_response(
  body: Response(String),
) -> Result(JsonRpcResponse, DecodeError)
pub fn to_request(
  provider: Provider,
  method: RpcMethod,
) -> Request(String)
Search Document