Files
pezkuwi-sdk/vendor/pezkuwi-subxt/rpcs
pezkuwichain 540661e02e docs: fix broken rustdoc links across codebase
- Fix vendor/zombienet-sdk deprecated method doc links
- Fix vendor/subxt doc links (eth::PublicKey, Client)
- Fix vendor/ss58-registry TokenRegistry doc link
- Fix pezpallet-presale event comment causing doc parse error
- Fix pezframe-support broken Config trait link
- Rebrand pezpallet-revive README with correct crate names and URLs
2025-12-25 05:15:26 +03:00
..

subxt-rpcs

This crate provides an interface for interacting with Bizinikiwi nodes via the available RPC methods.

use subxt_rpcs::{RpcClient, ChainHeadRpcMethods};

// Connect to a local node:
let client = RpcClient::from_url("ws://127.0.0.1:9944").await?;
// Use a set of methods, here the V2 "chainHead" ones:
let methods = ChainHeadRpcMethods::new(client);

// Call some RPC methods (in this case a subscription):
let mut follow_subscription = methods.chainhead_v1_follow(false).await.unwrap();
while let Some(follow_event) = follow_subscription.next().await {
    // do something with events..
}