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
impl Eq for Data
impl StructuralPartialEq for Data
Auto Trait Implementations§
impl Freeze for Data
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more