mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 03:21:06 +00:00
blocks: Fetch chainHead header
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -34,6 +34,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
|
||||
let body = event.body().await?;
|
||||
println!("[hash={:?}] body={:?}", event.hash(), body);
|
||||
|
||||
let header = event.header().await?;
|
||||
println!("[hash={:?}] header={:?}", event.hash(), header);
|
||||
}
|
||||
|
||||
// Subscribe to the `chainHead_follow` method.
|
||||
|
||||
Reference in New Issue
Block a user