Struct near_workspaces::Account[][src]

pub struct Account { /* fields omitted */ }

Implementations

Create a new account with the given path to the credentials JSON file

Call a contract on the network specified within worker, and return a Builder object that we will make use to populate the rest of the call details.

Transfer NEAR to an account specified by receiver_id with the amount specified by amount. Returns the execution details of this transaction

Deletes the current account, and returns the execution details of this transaction. The beneficiary will receive the funds of the account deleted

Create a new sub account. Returns a CreateAccountBuilder object that we can make use of to fill out the rest of the details. The sub account id will be in the form of: “{new_account_id}.{parent_account_id}”

Deploy contract code or WASM bytes to the account, and return us a new Contract object that we can use to interact with the contract.

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.

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