Struct solana_sdk::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
) -> Data
pub fn new( authority: Pubkey, durable_nonce: DurableNonce, lamports_per_signature: u64 ) -> Data
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<Data, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Data, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Data> for Data
impl PartialEq<Data> for Data
source§impl Serialize for Data
impl Serialize for Data
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more