Skip to main content

RecentBlockhashProvider

Trait RecentBlockhashProvider 

Source
pub trait RecentBlockhashProvider: Send + Sync {
    // Required method
    fn latest_blockhash(&self) -> Option<[u8; 32]>;
}
Expand description

Source of the latest recent blockhash bytes.

Required Methods§

Source

fn latest_blockhash(&self) -> Option<[u8; 32]>

Returns the newest blockhash bytes when available.

Implementors§