For the complete documentation index, see llms.txt. This page is also available as Markdown.

PromiseAction

promise • Docs


near-sdk-js v2.0.0 / promise / PromiseAction

Class: abstract PromiseAction

A promise action which can be executed on the NEAR blockchain.

Extended by

Constructors

new PromiseAction()

new PromiseAction(): PromiseAction

Returns

PromiseAction

Methods

add()

abstract add(promiseIndex): void

The method that describes how a promise action adds it's action to the promise batch with the provided index.

Parameters

• promiseIndex: PromiseIndex

The index of the promise batch to attach the action to.

Returns

void

Defined in

packages/near-sdk-js/src/promise.ts:15

Last updated