#transport #json-rpc #abstraction #low-level #ethereum #alloy #rpc-client

linera-alloy-transport

Low-level Ethereum JSON-RPC transport abstraction

1 unstable release

0.1.0 Jun 1, 2024

#63 in #alloy

Download history 120/week @ 2024-06-03 78/week @ 2024-06-10 92/week @ 2024-06-17 20/week @ 2024-06-24 75/week @ 2024-07-01 25/week @ 2024-07-08 90/week @ 2024-07-15 83/week @ 2024-07-22 105/week @ 2024-07-29 99/week @ 2024-08-05 108/week @ 2024-08-12 99/week @ 2024-08-19 160/week @ 2024-08-26 137/week @ 2024-09-02 272/week @ 2024-09-09 291/week @ 2024-09-16

868 downloads per month
Used in 12 crates (8 directly)

MIT/Apache

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:

Dependencies

~16–26MB
~461K SLoC