gleeth/rpc/client
Values
pub fn make_batch_request(
rpc_url: String,
batch_body: String,
) -> Result(String, types.GleethError)
Send a batch of JSON-RPC requests in a single HTTP call. The body should be a JSON array of request objects. Returns the raw response body (a JSON array of responses).
pub fn make_request(
rpc_url: String,
method: String,
params: List(json.Json),
) -> Result(String, types.GleethError)
pub fn make_request_with_retry(
rpc_url: String,
method: String,
params: List(json.Json),
retry_config: provider.RetryConfig,
) -> Result(String, types.GleethError)
Make a JSON-RPC request with automatic retry on transient errors. Retries on HTTP 429 (rate limited), 503 (service unavailable), and connection failures, using exponential backoff from the retry config.