Struct flow_sdk::transaction::TransactionD [−][src]
pub struct TransactionD {
pub script: Box<[u8]>,
pub arguments: Repeated<Vec<Box<[u8]>>>,
pub reference_block_id: Box<[u8]>,
pub gas_limit: u64,
pub proposal_key: ProposalKeyD,
pub payer: Box<[u8]>,
pub authorizers: Repeated<Vec<Box<[u8]>>>,
pub payload_signatures: Repeated<Vec<SignatureD>>,
pub envelope_signatures: Repeated<Vec<SignatureD>>,
}
Expand description
A transaction represents a unit of computation that is submitted to the Flow network.
This type is used when decoding messages from the network.
Fields
script: Box<[u8]>
Raw source code for a Cadence script, encoded as UTF-8 bytes
arguments: Repeated<Vec<Box<[u8]>>>
Arguments passed to the Cadence script, encoded as JSON-Cadence bytes
reference_block_id: Box<[u8]>
Block ID used to determine transaction expiry
gas_limit: u64
The gas limit.
proposal_key: ProposalKeyD
Account key used to propose the transaction
payer: Box<[u8]>
Address of the payer account
Addresses of the transaction authorizers
payload_signatures: Repeated<Vec<SignatureD>>
Signatures from all payload signer accounts
envelope_signatures: Repeated<Vec<SignatureD>>
Signatures from all envelope signer accounts
Implementations
Parse a specific argument.
pub fn parse_arguments(&self) -> ParseArguments<Iter<'_, Box<[u8]>>>ⓘNotable traits for ParseArguments<I>impl<'a, I: Iterator<Item = &'a Bytes>, Bytes: AsRef<[u8]> + 'a> Iterator for ParseArguments<I> type Item = Result<ValueOwned>;
pub fn parse_arguments(&self) -> ParseArguments<Iter<'_, Box<[u8]>>>ⓘNotable traits for ParseArguments<I>impl<'a, I: Iterator<Item = &'a Bytes>, Bytes: AsRef<[u8]> + 'a> Iterator for ParseArguments<I> type Item = Result<ValueOwned>;
impl<'a, I: Iterator<Item = &'a Bytes>, Bytes: AsRef<[u8]> + 'a> Iterator for ParseArguments<I> type Item = Result<ValueOwned>;
Returns an iterator parsing the underlying arguments.
Trait Implementations
type Wire = LengthDelimitedWire
If this is a message
, call merge()
on all fields,
if this is repeated
, extend this with the elements of other
.
for all other types simply overwrite this with other
, which is the default. Read more
fn merge_from<B>(
&mut self,
deserializer: &mut Deserializer<'de, B>
) -> Result<(), DecodingError> where
B: Buf,
fn decode_field<B: Buf>(
&mut self,
d: &mut Deserializer<'de, B>,
tag: Self::Tag
) -> Result<()>
fn decode_field<B: Buf>(
&mut self,
d: &mut Deserializer<'de, B>,
tag: Self::Tag
) -> Result<()>
Decodes a field with the given tag. Read more
fn decode<B>(
deserializer: &mut Deserializer<'de, B>
) -> Result<Self, DecodingError> where
B: Buf,
Self: Default,
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for TransactionD
impl Send for TransactionD
impl Sync for TransactionD
impl Unpin for TransactionD
impl UnwindSafe for TransactionD
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
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