1 unstable release
0.1.0 | Jun 1, 2024 |
---|
#58 in #json-rpc-server
1,637 downloads per month
Used in 12 crates
(8 directly)
89KB
1.5K
SLoC
linera-alloy-transport
Low-level Ethereum JSON-RPC transport abstraction.
This crate handles RPC connection and request management. It builds an
RpcClient
on top of the tower Service
abstraction, and provides
futures for simple and batch RPC requests as well as a unified TransportError
type.
Typically, this crate should not be used directly. Most EVM users will want to use the linera-alloy-provider crate, which provides a high-level API for interacting with JSON-RPC servers that provide the standard Ethereum RPC endpoints, or the [linera-alloy-rpc-client] crate, which provides a low-level JSON-RPC API without the specific Ethereum endpoints.
Transports
Alloy maintains the following transports:
- linera-alloy-transport-http: JSON-RPC via HTTP.
- linera-alloy-transport-ws: JSON-RPC via Websocket, supports pubsub via linera-alloy-pubsub.
- linera-alloy-transport-ipc: JSON-RPC via IPC, supports pubsub via linera-alloy-pubsub.
Dependencies
~17–27MB
~464K SLoC