promiseThenRaw

apiDocs


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

Function: promiseThenRaw()

promiseThenRaw(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: Uint8Array

The 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:484

Last updated