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

authorizers: Repeated<Vec<Box<[u8]>>>

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.

Returns an iterator parsing the underlying arguments.

Trait Implementations

Formats the value using the given formatter. Read more

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

How big the tag message gets. This is an unsigned varint. Read more

Decodes a field with the given tag. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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