FunctionCallWeightRaw

promiseDocs


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

Class: FunctionCallWeightRaw

A function call weight raw promise action.

Extends

Constructors

new FunctionCallWeightRaw()

new FunctionCallWeightRaw(functionName, args, amount, gas, weight): FunctionCallWeightRaw

Parameters

functionName: string

The name of the function to be called.

args: Uint8Array

The 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.

weight: bigint

The weight of unused Gas to use.

Returns

FunctionCallWeightRaw

Overrides

PromiseAction.constructor

Defined in

packages/near-sdk-js/src/promise.ts:159

Properties

amount

amount: bigint

The amount of NEAR to attach to the call.

Defined in

packages/near-sdk-js/src/promise.ts:162


args

args: Uint8Array

The arguments to be passed to the function.

Defined in

packages/near-sdk-js/src/promise.ts:161


functionName

functionName: string

The name of the function to be called.

Defined in

packages/near-sdk-js/src/promise.ts:160


gas

gas: bigint

The amount of Gas to attach to the call.

Defined in

packages/near-sdk-js/src/promise.ts:163


weight

weight: bigint

The weight of unused Gas to use.

Defined in

packages/near-sdk-js/src/promise.ts:164

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:169

Last updated