subxt-rpcs
This crate provides an interface for interacting with Substrate nodes via the available RPC methods.
use ;
// Connect to a local node:
let client = from_url.await?;
// Use a set of methods, here the V2 "chainHead" ones:
let methods = new;
// Call some RPC methods (in this case a subscription):
let mut follow_subscription = methods.chainhead_v1_follow.await.unwrap;
while let Some = follow_subscription.next.await