Skip to main content

Crate quai_rpc

Crate quai_rpc 

Source
Expand description

Explicit shard routing and a bounded JSON-RPC transport.

Routing has no network side effects. Native HTTP and WebSocket transports are optional; native futures are Send while browser adapters have a separate bound.

Modules§

fetch
General resource requests with explicit limits and lifecycle. Bounded general resource fetching, separate from JSON-RPC submission policy.

Structs§

DynTransport
Any native transport behind one concrete, cheaply cloned type.
Endpoint
A validated endpoint. Debug deliberately omits paths and query credentials.
HttpConfig
Limits applied to every HTTP request.
HttpProxy
An explicit forward proxy for HttpTransport: HTTP(S) or SOCKS5.
HttpTransport
Native pooled HTTP transport with no redirects or automatic retries.
QuantityError
A malformed or overflowing 256-bit JSON-RPC quantity.
RemoteError
JSON-RPC error details. Message/data are available explicitly but redacted in diagnostics.
Routing
A validated static shard-to-endpoint table. No silent shard fallback occurs.
WsConfig
Resource and deadline limits for a single explicit native WebSocket connection.
WsSubscription
Bounded notification receiver. Call unsubscribe for independent graceful removal.
WsTransport
One explicit endpoint and one multiplexed session. Clones share its resource limits.

Enums§

RouteError
Invalid routing configuration, without echoing credential-bearing input.
RpcError
Bounded transport/protocol failures; no raw URL or response body is displayed.
WsSubscriptionKind
Common Quai subscription requests. The endpoint selects the shard; no zone parameter is added.

Constants§

MAX_BATCH_CALLS
Maximum calls accepted in one batch, for every transport that supports one.

Traits§

Transport
A transport independent of routing and key material.

Functions§

parse_quantity
Parse an unsigned quantity, rejecting empty, padded and overflowing values.
parse_use_pathing
Parse text configuration without JavaScript’s nonempty-string truthiness.

Type Aliases§

BatchResult
Entire batch transport/envelope result, containing ordered per-request results.
U256
Uint for 256 bits.