promiseCreate

apiDocs


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

Function: promiseCreate()

promiseCreate(accountId, methodName, args, amount, gas): PromiseIndex

Create a NEAR promise call to a contract on the blockchain.

Parameters

accountId: string

The account ID of the target contract.

methodName: string

The name of the method to be called.

args: string

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

amount: NearAmount

The amount of NEAR attached to the call.

gas: NearAmount

The amount of Gas attached to the call.

Returns

PromiseIndex

Defined in

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

Last updated