Get the Chain / Network State

Get the latest state

// Get latest state (for transaction construction)
let state = client.get_latest_epoch_checkpoint().await?;

// Get chain information
let chain = client.get_chain_info().await?;
println!("Chain ID: {}", chain.chain_id);

Get network statistics

// Get network statistics
let stats = client.get_network_stats().await?;
println!("Total transactions: {}", stats.total_transactions);

Last updated