promiseThen

apiDocs


near-sdk-js v2.0.0 / api / promiseThen

Function: promiseThen()

promiseThen(promiseIndex, accountId, methodName, args, amount, gas): PromiseIndex

Attach a callback NEAR promise to be executed after a provided promise.

Parameters

promiseIndex: PromiseIndex

The promise after which to call the callback.

accountId: string

The account ID of the contract to perform the callback on.

methodName: string

The name of the method to call.

args: string

The utf-8 string arguments to call the method with.

amount: NearAmount

The amount of NEAR to attach to the call.

gas: NearAmount

The amount of Gas to attach to the call.

Returns

PromiseIndex

Defined in

packages/near-sdk-js/src/api.ts:512

Last updated