Struct solana_program::nonce::state::Data
source · pub struct Data {
pub authority: Pubkey,
pub durable_nonce: DurableNonce,
pub fee_calculator: FeeCalculator,
}
Expand description
Initialized data of a durable transaction nonce account.
This is stored within State
for initialized nonce accounts.
Fields§
Address of the account that signs transactions using the nonce account.
durable_nonce: DurableNonce
Durable nonce value derived from a valid previous blockhash.
fee_calculator: FeeCalculator
The fee calculator associated with the blockhash.
Implementations§
source§impl Data
impl Data
sourcepub fn new(
authority: Pubkey,
durable_nonce: DurableNonce,
lamports_per_signature: u64
) -> Self
pub fn new( authority: Pubkey, durable_nonce: DurableNonce, lamports_per_signature: u64 ) -> Self
Create new durable transaction nonce data.
sourcepub fn blockhash(&self) -> Hash
pub fn blockhash(&self) -> Hash
Hash value used as recent_blockhash field in Transactions. Named blockhash for legacy reasons, but durable nonce and blockhash have separate domains.
sourcepub fn get_lamports_per_signature(&self) -> u64
pub fn get_lamports_per_signature(&self) -> u64
Get the cost per signature for the next transaction to use this nonce.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Data
impl<'de> Deserialize<'de> for Data
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more