promise • Docs
near-sdk-js v2.0.0 / promise / Transfer
A transfer promise action.
PromiseAction
new Transfer(amount): Transfer
amount
Transfer
Parameters
• amount: bigint
bigint
The amount of NEAR to transfer.
Returns
Overrides
PromiseAction.constructor
constructor
Defined in
packages/near-sdk-js/src/promise.ts:190arrow-up-right
amount: bigint
add(promiseIndex): void
promiseIndex
void
The method that describes how a promise action adds it's action to the promise batch with the provided index.
• promiseIndex: PromiseIndex
PromiseIndex
The index of the promise batch to attach the action to.
PromiseAction.add
add
packages/near-sdk-js/src/promise.ts:194arrow-up-right
Last updated 1 year ago