promiseResult

apiDocs


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

Function: promiseResult()

promiseResult(promiseIndex): string

Returns the result of the NEAR promise for the passed promise index as utf-8 string

Parameters

promiseIndex: PromiseIndex

The index of the promise to return the result for.

Returns

string

Defined in

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

Last updated