> 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/index.md).

# index

**index** • **Docs**

***

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

## index

### Index

#### Functions

* [includeBytes](/near-sdk-js/index/functions/includebytes.md)

### References

#### AccountId

Re-exports [AccountId](/near-sdk-js/types/account_id/type-aliases/accountid.md)

***

#### AddAccessKey

Re-exports [AddAccessKey](/near-sdk-js/promise/classes/addaccesskey.md)

***

#### AddFullAccessKey

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

***

#### Balance

Re-exports [Balance](/near-sdk-js/types/primitives/type-aliases/balance.md)

***

#### Base58Error

Re-exports [Base58Error](/near-sdk-js/types/public_key/classes/base58error.md)

***

#### BlockHeight

Re-exports [BlockHeight](/near-sdk-js/types/primitives/type-aliases/blockheight.md)

***

#### CreateAccount

Re-exports [CreateAccount](/near-sdk-js/promise/classes/createaccount.md)

***

#### CurveType

Re-exports [CurveType](/near-sdk-js/types/public_key/enumerations/curvetype.md)

***

#### DeleteAccount

Re-exports [DeleteAccount](/near-sdk-js/promise/classes/deleteaccount.md)

***

#### DeleteKey

Re-exports [DeleteKey](/near-sdk-js/promise/classes/deletekey.md)

***

#### DeployContract

Re-exports [DeployContract](/near-sdk-js/promise/classes/deploycontract.md)

***

#### ERR\_INCONSISTENT\_STATE

Re-exports [ERR\_INCONSISTENT\_STATE](/near-sdk-js/utils/variables/err_inconsistent_state.md)

***

#### ERR\_INDEX\_OUT\_OF\_BOUNDS

Re-exports [ERR\_INDEX\_OUT\_OF\_BOUNDS](/near-sdk-js/utils/variables/err_index_out_of_bounds.md)

***

#### Env

Re-exports [Env](/near-sdk-js/utils/interfaces/env.md)

***

#### EpochHeight

Re-exports [EpochHeight](/near-sdk-js/types/primitives/type-aliases/epochheight.md)

***

#### FunctionCall

Re-exports [FunctionCall](/near-sdk-js/promise/classes/functioncall.md)

***

#### FunctionCallRaw

Re-exports [FunctionCallRaw](/near-sdk-js/promise/classes/functioncallraw.md)

***

#### FunctionCallWeight

Re-exports [FunctionCallWeight](/near-sdk-js/promise/classes/functioncallweight.md)

***

#### FunctionCallWeightRaw

Re-exports [FunctionCallWeightRaw](/near-sdk-js/promise/classes/functioncallweightraw.md)

***

#### Gas

Re-exports [Gas](/near-sdk-js/types/gas/type-aliases/gas.md)

***

#### GasWeight

Re-exports [GasWeight](/near-sdk-js/types/primitives/type-aliases/gasweight.md)

***

#### IntoStorageKey

Re-exports [IntoStorageKey](/near-sdk-js/utils/interfaces/intostoragekey.md)

***

#### InvalidLengthError

Re-exports [InvalidLengthError](/near-sdk-js/types/public_key/classes/invalidlengtherror.md)

***

#### IteratorIndex

Re-exports [IteratorIndex](/near-sdk-js/types/vm_types/type-aliases/iteratorindex.md)

***

#### LookupMap

Re-exports [LookupMap](/near-sdk-js/collections/lookup-map/classes/lookupmap.md)

***

#### LookupSet

Re-exports [LookupSet](/near-sdk-js/collections/lookup-set/classes/lookupset.md)

***

#### Mutable

Re-exports [Mutable](/near-sdk-js/utils/type-aliases/mutable.md)

***

#### NearAmount

Re-exports [NearAmount](/near-sdk-js/utils/type-aliases/nearamount.md)

***

#### NearBindgen

Re-exports [NearBindgen](/near-sdk-js/near-bindgen/functions/nearbindgen.md)

***

#### NearPromise

Re-exports [NearPromise](/near-sdk-js/promise/classes/nearpromise.md)

***

#### Nonce

Re-exports [Nonce](/near-sdk-js/types/primitives/type-aliases/nonce.md)

***

#### ONE\_NEAR

Re-exports [ONE\_NEAR](/near-sdk-js/types/primitives/variables/one_near.md)

***

#### ONE\_TERA\_GAS

Re-exports [ONE\_TERA\_GAS](/near-sdk-js/types/gas/variables/one_tera_gas.md)

***

#### ONE\_YOCTO

Re-exports [ONE\_YOCTO](/near-sdk-js/types/primitives/variables/one_yocto.md)

***

#### ParsePublicKeyError

Re-exports [ParsePublicKeyError](/near-sdk-js/types/public_key/classes/parsepublickeyerror.md)

***

#### PromiseAction

Re-exports [PromiseAction](/near-sdk-js/promise/classes/promiseaction.md)

***

#### PromiseError

Re-exports [PromiseError](/near-sdk-js/types/vm_types/enumerations/promiseerror.md)

***

#### PromiseIndex

Re-exports [PromiseIndex](/near-sdk-js/utils/type-aliases/promiseindex.md)

***

#### PromiseJoint

Re-exports [PromiseJoint](/near-sdk-js/promise/classes/promisejoint.md)

***

#### PromiseOrValue

Re-exports [PromiseOrValue](/near-sdk-js/promise/type-aliases/promiseorvalue.md)

***

#### PromiseResult

Re-exports [PromiseResult](/near-sdk-js/types/vm_types/enumerations/promiseresult.md)

***

#### PublicKey

Re-exports [PublicKey](/near-sdk-js/types/public_key/classes/publickey.md)

***

#### ReceiptIndex

Re-exports [ReceiptIndex](/near-sdk-js/types/vm_types/type-aliases/receiptindex.md)

***

#### Register

Re-exports [Register](/near-sdk-js/utils/type-aliases/register.md)

***

#### Stake

Re-exports [Stake](/near-sdk-js/promise/classes/stake.md)

***

#### StorageUsage

Re-exports [StorageUsage](/near-sdk-js/types/primitives/type-aliases/storageusage.md)

***

#### SubType

Re-exports [SubType](/near-sdk-js/collections/subtype/classes/subtype.md)

***

#### TextDecoder

Re-exports [TextDecoder](/near-sdk-js/utils/classes/textdecoder.md)

***

#### TextEncoder

Re-exports [TextEncoder](/near-sdk-js/utils/classes/textencoder.md)

***

#### Transfer

Re-exports [Transfer](/near-sdk-js/promise/classes/transfer.md)

***

#### UnknownCurve

Re-exports [UnknownCurve](/near-sdk-js/types/public_key/classes/unknowncurve.md)

***

#### UnorderedMap

Re-exports [UnorderedMap](/near-sdk-js/collections/unordered-map/classes/unorderedmap.md)

***

#### UnorderedSet

Re-exports [UnorderedSet](/near-sdk-js/collections/unordered-set/classes/unorderedset.md)

***

#### Vector

Re-exports [Vector](/near-sdk-js/collections/vector/classes/vector.md)

***

#### VectorIterator

Re-exports [VectorIterator](/near-sdk-js/collections/vector/classes/vectoriterator.md)

***

#### assert

Re-exports [assert](/near-sdk-js/utils/functions/assert.md)

***

#### bytes

Re-exports [bytes](/near-sdk-js/utils/functions/bytes.md)

***

#### call

Re-exports [call](/near-sdk-js/near-bindgen/functions/call.md)

***

#### concat

Re-exports [concat](/near-sdk-js/utils/functions/concat.md)

***

#### curveTypeFromStr

Re-exports [curveTypeFromStr](/near-sdk-js/types/public_key/functions/curvetypefromstr.md)

***

#### decode

Re-exports [decode](/near-sdk-js/utils/functions/decode.md)

***

#### decodeObj2class

Re-exports [decodeObj2class](/near-sdk-js/utils/functions/decodeobj2class.md)

***

#### deserialize

Re-exports [deserialize](/near-sdk-js/utils/functions/deserialize.md)

***

#### encode

Re-exports [encode](/near-sdk-js/utils/functions/encode.md)

***

#### getValueWithOptions

Re-exports [getValueWithOptions](/near-sdk-js/utils/functions/getvaluewithoptions.md)

***

#### initialize

Re-exports [initialize](/near-sdk-js/near-bindgen/functions/initialize.md)

***

#### middleware

Re-exports [middleware](/near-sdk-js/near-bindgen/functions/middleware.md)

***

#### migrate

Re-exports [migrate](/near-sdk-js/near-bindgen/functions/migrate.md)

***

#### near

Renames and re-exports [api](/near-sdk-js/api.md)

***

#### serialize

Re-exports [serialize](/near-sdk-js/utils/functions/serialize.md)

***

#### serializeValueWithOptions

Re-exports [serializeValueWithOptions](/near-sdk-js/utils/functions/serializevaluewithoptions.md)

***

#### str

Re-exports [str](/near-sdk-js/utils/functions/str.md)

***

#### validateAccountId

Re-exports [validateAccountId](/near-sdk-js/utils/functions/validateaccountid.md)

***

#### view

Re-exports [view](/near-sdk-js/near-bindgen/functions/view.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://near-sdk-js.gitbook.io/near-sdk-js/index.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
