api • Docs
near-sdk-js v2.0.0 / api / promiseThen
promiseThen(promiseIndex, accountId, methodName, args, amount, gas): PromiseIndex
promiseIndex
accountId
methodName
args
amount
gas
PromiseIndex
Attach a callback NEAR promise to be executed after a provided promise.
• promiseIndex: PromiseIndex
The promise after which to call the callback.
• accountId: string
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
NearAmount
The amount of NEAR to attach to the call.
• gas: NearAmount
The amount of Gas to attach to the call.
packages/near-sdk-js/src/api.ts:512arrow-up-right
Last updated 1 year ago