# Transfer

[**promise**](https://limechain.gitbook.io/limechain-test/promise) • **Docs**

***

[near-sdk-js v2.0.0](https://limechain.gitbook.io/limechain-test/packages) / [promise](https://limechain.gitbook.io/limechain-test/promise) / Transfer

## Class: Transfer

A transfer promise action.

### Extends

* [`PromiseAction`](https://limechain.gitbook.io/limechain-test/promise/classes/promiseaction)

### Constructors

#### new Transfer()

> **new Transfer**(`amount`): [`Transfer`](https://limechain.gitbook.io/limechain-test/promise/classes/transfer)

**Parameters**

• **amount**: `bigint`

The amount of NEAR to tranfer.

**Returns**

[`Transfer`](https://limechain.gitbook.io/limechain-test/promise/classes/transfer)

**Overrides**

[`PromiseAction`](https://limechain.gitbook.io/limechain-test/promise/classes/promiseaction).[`constructor`](https://limechain.gitbook.io/limechain-test/promise/promiseaction#constructors)

**Defined in**

[packages/near-sdk-js/src/promise.ts:190](https://github.com/dim-daskalov/near-sdk-js/blob/c95f5e9eab115df82feb9d8dca403e7b9c8c9534/packages/near-sdk-js/src/promise.ts#L190)

### Properties

#### amount

> **amount**: `bigint`

The amount of NEAR to tranfer.

**Defined in**

[packages/near-sdk-js/src/promise.ts:190](https://github.com/dim-daskalov/near-sdk-js/blob/c95f5e9eab115df82feb9d8dca403e7b9c8c9534/packages/near-sdk-js/src/promise.ts#L190)

### 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`](https://limechain.gitbook.io/limechain-test/utils/type-aliases/promiseindex)

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

**Returns**

`void`

**Overrides**

[`PromiseAction`](https://limechain.gitbook.io/limechain-test/promise/classes/promiseaction).[`add`](https://limechain.gitbook.io/limechain-test/promise/promiseaction#add)

**Defined in**

[packages/near-sdk-js/src/promise.ts:194](https://github.com/dim-daskalov/near-sdk-js/blob/c95f5e9eab115df82feb9d8dca403e7b9c8c9534/packages/near-sdk-js/src/promise.ts#L194)
