> For the complete documentation index, see [llms.txt](https://near-sdk-js.gitbook.io/near-sdk-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://near-sdk-js.gitbook.io/near-sdk-js/promise/classes/addfullaccesskey.md).

# AddFullAccessKey

[**promise**](/near-sdk-js/promise.md) • **Docs**

***

[near-sdk-js v2.0.0](/near-sdk-js/packages.md) / [promise](/near-sdk-js/promise.md) / AddFullAccessKey

## Class: AddFullAccessKey

A add full access key promise action.

### Extends

* [`PromiseAction`](/near-sdk-js/promise/classes/promiseaction.md)

### Constructors

#### new AddFullAccessKey()

> **new AddFullAccessKey**(`publicKey`, `nonce`): [`AddFullAccessKey`](/near-sdk-js/promise/classes/addfullaccesskey.md)

**Parameters**

• **publicKey**: [`PublicKey`](/near-sdk-js/types/public_key/classes/publickey.md)

The public key to add as a full access key.

• **nonce**: `bigint`

The nonce to use.

**Returns**

[`AddFullAccessKey`](/near-sdk-js/promise/classes/addfullaccesskey.md)

**Overrides**

[`PromiseAction`](/near-sdk-js/promise/classes/promiseaction.md).[`constructor`](/near-sdk-js/promise/classes/promiseaction.md#constructors)

**Defined in**

[packages/near-sdk-js/src/promise.ts:232](https://github.com/near/near-sdk-js/blob/b58ac04fc6dff2f1120e9098c0cb059493486598/packages/near-sdk-js/src/promise.ts#L232)

### Properties

#### nonce

> **nonce**: `bigint`

The nonce to use.

**Defined in**

[packages/near-sdk-js/src/promise.ts:232](https://github.com/near/near-sdk-js/blob/b58ac04fc6dff2f1120e9098c0cb059493486598/packages/near-sdk-js/src/promise.ts#L232)

***

#### publicKey

> **publicKey**: [`PublicKey`](/near-sdk-js/types/public_key/classes/publickey.md)

The public key to add as a full access key.

**Defined in**

[packages/near-sdk-js/src/promise.ts:232](https://github.com/near/near-sdk-js/blob/b58ac04fc6dff2f1120e9098c0cb059493486598/packages/near-sdk-js/src/promise.ts#L232)

### 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`](/near-sdk-js/utils/type-aliases/promiseindex.md)

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

**Returns**

`void`

**Overrides**

[`PromiseAction`](/near-sdk-js/promise/classes/promiseaction.md).[`add`](/near-sdk-js/promise/classes/promiseaction.md#add)

**Defined in**

[packages/near-sdk-js/src/promise.ts:236](https://github.com/near/near-sdk-js/blob/b58ac04fc6dff2f1120e9098c0cb059493486598/packages/near-sdk-js/src/promise.ts#L236)
