Function promise_batch_action_create_account

Source
pub fn promise_batch_action_create_account(promise_index: PromiseIndex)
Expand description

Attach a create account promise action to the NEAR promise index with the provided promise index.

More info about batching here

ยงExamples

use near_sdk::env::{promise_batch_action_create_account, promise_batch_create};
use near_sdk::AccountId;
use std::str::FromStr;

let promise = promise_batch_create(
    &AccountId::from_str("new_account.near").unwrap()
);

promise_batch_action_create_account(promise);

More low-level info here: near_vm_runner::logic::VMLogic::promise_batch_action_create_account See example of usage here