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§
Sourcefn latest_blockhash(&self) -> Option<[u8; 32]>
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".