pub struct Transaction<'a> { /* private fields */ }
Expand description

A builder-like object that will allow specifying various actions to be performed in a single transaction. For details on each of the actions, find them in NEAR transactions.

All actions are performed on the account specified by receiver_id. This object is most commonly constructed from Account::batch or Contract::batch, where receiver_id is specified in the Account::batch while Contract::id() is used by default for Contract::batch.

Implementations

Adds a key to the receiver_id’s account, where the public key can be used later to delete the same key.

Call into the receiver_id’s contract with the specific function arguments.

Create a new account with the account id being receiver_id.

Deletes the receiver_id’s account. The beneficiary specified by beneficiary_id will receive the funds of the account deleted.

Deletes a key from the receiver_id’s account, where the public key is associated with the access key to be deleted.

Deploy contract code or WASM bytes to the receiver_id’s account.

An action which stakes the signer’s tokens and setups a validator public key.

Transfer deposit amount from signer’s account into receiver_id’s account.

Process the trannsaction, and return the result of the execution.

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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
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