Enum solana_client::blockhash_query::Source
source · [−]pub enum Source {
Cluster,
NonceAccount(Pubkey),
}
Variants
Cluster
NonceAccount(Pubkey)
Implementations
pub fn get_blockhash_and_fee_calculator(
&self,
rpc_client: &RpcClient,
commitment: CommitmentConfig
) -> Result<(Hash, FeeCalculator), Box<dyn Error>>
👎 Deprecated since 1.9.0:
Please use get_blockhash
instead
pub fn get_fee_calculator(
&self,
rpc_client: &RpcClient,
blockhash: &Hash,
commitment: CommitmentConfig
) -> Result<Option<FeeCalculator>, Box<dyn Error>>
👎 Deprecated since 1.9.0:
Please do not use, will no longer be available in the future
pub fn get_blockhash(
&self,
rpc_client: &RpcClient,
commitment: CommitmentConfig
) -> Result<Hash, Box<dyn Error>>
pub fn is_blockhash_valid(
&self,
rpc_client: &RpcClient,
blockhash: &Hash,
commitment: CommitmentConfig
) -> Result<bool, Box<dyn Error>>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Source
impl UnwindSafe for Source
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more