#[repr(C)]pub struct WireTxnHdrV1 {Show 16 fields
pub transaction_version: u8,
pub flags: u8,
pub readwrite_accounts_cnt: u16,
pub readonly_accounts_cnt: u16,
pub instr_data_sz: u16,
pub req_compute_units: u32,
pub req_state_units: u16,
pub req_memory_units: u16,
pub fee: u64,
pub nonce: u64,
pub start_slot: u64,
pub expiry_after: u32,
pub chain_id: u16,
pub padding_0: [u8; 2],
pub fee_payer_pubkey: [u8; 32],
pub program_pubkey: [u8; 32],
}Expand description
On-wire transaction header (matches TnTxnHdrV1 layout)
Transaction wire format: [header (112 bytes)] [input_pubkeys (variable)] [instr_data (variable)] [state_proof (optional)] [account_meta (optional)] [fee_payer_signature (64 bytes)]
Fields§
§transaction_version: u8§flags: u8§readwrite_accounts_cnt: u16§readonly_accounts_cnt: u16§instr_data_sz: u16§req_compute_units: u32§req_state_units: u16§req_memory_units: u16§fee: u64§nonce: u64§start_slot: u64§expiry_after: u32§chain_id: u16§padding_0: [u8; 2]§fee_payer_pubkey: [u8; 32]§program_pubkey: [u8; 32]Trait Implementations§
Source§impl Clone for WireTxnHdrV1
impl Clone for WireTxnHdrV1
Source§fn clone(&self) -> WireTxnHdrV1
fn clone(&self) -> WireTxnHdrV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WireTxnHdrV1
impl Debug for WireTxnHdrV1
Source§impl Default for WireTxnHdrV1
impl Default for WireTxnHdrV1
impl Copy for WireTxnHdrV1
impl Pod for WireTxnHdrV1
Auto Trait Implementations§
impl Freeze for WireTxnHdrV1
impl RefUnwindSafe for WireTxnHdrV1
impl Send for WireTxnHdrV1
impl Sync for WireTxnHdrV1
impl Unpin for WireTxnHdrV1
impl UnsafeUnpin for WireTxnHdrV1
impl UnwindSafe for WireTxnHdrV1
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.