> 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/types/vm_types/enumerations/promiseresult.md).

# PromiseResult

[**types/vm\_types**](/near-sdk-js/types/vm_types.md) • **Docs**

***

[near-sdk-js v2.0.0](/near-sdk-js/packages.md) / [types/vm\_types](/near-sdk-js/types/vm_types.md) / PromiseResult

## Enumeration: PromiseResult

A Promise result in near can be one of:

* NotReady = 0 - the promise you are specifying is still not ready, not yet failed nor successful.
* Successful = 1 - the promise has been successfully executed and you can retrieve the resulting value.
* Failed = 2 - the promise execution has failed.

### Enumeration Members

#### Failed

> **Failed**: `2`

**Defined in**

[packages/near-sdk-js/src/types/vm\_types.ts:19](https://github.com/near/near-sdk-js/blob/b58ac04fc6dff2f1120e9098c0cb059493486598/packages/near-sdk-js/src/types/vm_types.ts#L19)

***

#### NotReady

> **NotReady**: `0`

**Defined in**

[packages/near-sdk-js/src/types/vm\_types.ts:17](https://github.com/near/near-sdk-js/blob/b58ac04fc6dff2f1120e9098c0cb059493486598/packages/near-sdk-js/src/types/vm_types.ts#L17)

***

#### Successful

> **Successful**: `1`

**Defined in**

[packages/near-sdk-js/src/types/vm\_types.ts:18](https://github.com/near/near-sdk-js/blob/b58ac04fc6dff2f1120e9098c0cb059493486598/packages/near-sdk-js/src/types/vm_types.ts#L18)
