AddAccessKey

promiseDocs


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

Class: AddAccessKey

A add access key promise action.

Extends

Constructors

new AddAccessKey()

new AddAccessKey(publicKey, allowance, receiverId, functionNames, nonce): AddAccessKey

Parameters

publicKey: PublicKey

The public key to add as a access key.

allowance: bigint

The allowance for the key in yoctoNEAR.

receiverId: string

The account ID of the receiver.

functionNames: string

The names of functions to authorize.

nonce: bigint

The nonce to use.

Returns

AddAccessKey

Overrides

PromiseAction.constructor

Defined in

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

Properties

allowance

allowance: bigint

The allowance for the key in yoctoNEAR.

Defined in

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


functionNames

functionNames: string

The names of functions to authorize.

Defined in

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


nonce

nonce: bigint

The nonce to use.

Defined in

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


publicKey

publicKey: PublicKey

The public key to add as a access key.

Defined in

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


receiverId

receiverId: string

The account ID of the receiver.

Defined in

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

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

Last updated