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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§