ethers-rs/book/providers/custom.md

520 B

Custom data transport

As we've previously seen, a transport must implement JsonRpcClient, and can also optionally implement PubsubClient.

Let's see how we can create a custom data transport by implementing one that stores either a Ws or an Ipc transport:

{{#include ../../examples/providers/examples/custom.rs}}