FunctionCall

promiseDocs


near-sdk-js v2.0.0 / promise / FunctionCall

Class: FunctionCall

A function call promise action.

Extends

Constructors

new FunctionCall()

new FunctionCall(functionName, args, amount, gas): FunctionCall

Parameters

functionName: string

The name of the function to be called.

args: string

The utf-8 string arguments to be passed to the function.

amount: bigint

The amount of NEAR to attach to the call.

gas: bigint

The amount of Gas to attach to the call.

Returns

FunctionCall

Overrides

PromiseAction.constructor

Defined in

packages/near-sdk-js/src/promise.ts:59arrow-up-right

Properties

amount

amount: bigint

The amount of NEAR to attach to the call.

Defined in

packages/near-sdk-js/src/promise.ts:62arrow-up-right


args

args: string

The utf-8 string arguments to be passed to the function.

Defined in

packages/near-sdk-js/src/promise.ts:61arrow-up-right


functionName

functionName: string

The name of the function to be called.

Defined in

packages/near-sdk-js/src/promise.ts:60arrow-up-right


gas

gas: bigint

The amount of Gas to attach to the call.

Defined in

packages/near-sdk-js/src/promise.ts:63arrow-up-right

Methods

add()

add(promiseIndex): void

The method that describes how a promise action adds it's action to the promise batch with the provided index.

Parameters

promiseIndex: PromiseIndex

The index of the promise batch to attach the action to.

Returns

void

Overrides

PromiseAction.add

Defined in

packages/near-sdk-js/src/promise.ts:68arrow-up-right

Last updated