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
pub fn create_subaccount<'a, 'b, T: Network>(
&self,
worker: &'a Worker<T>,
new_account_id: &'b str
) -> CreateAccountBuilder<'a, 'b, T>
pub fn create_subaccount<'a, 'b, T: Network>(
&self,
worker: &'a Worker<T>,
new_account_id: &'b str
) -> CreateAccountBuilder<'a, 'b, T>
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}”
Auto Trait Implementations
impl RefUnwindSafe for Account
impl UnwindSafe for Account
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
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
