pub fn promise_batch_action_transfer(
promise_index: PromiseIndex,
amount: NearToken,
)
Expand description
Attach a transfer 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_transfer, promise_batch_create};
use near_sdk::{NearToken, AccountId};
use std::str::FromStr;
let promise = promise_batch_create(
&AccountId::from_str("receiver.near").unwrap()
);
promise_batch_action_transfer(
promise,
NearToken::from_near(1),
);
More low-level info here: near_vm_runner::logic::VMLogic::promise_batch_action_transfer
See example of usage here