Package Exports
- near-api-js
- near-api-js/lib
- near-api-js/lib/account_creator
- near-api-js/lib/account_creator.js
- near-api-js/lib/account_multisig
- near-api-js/lib/account_multisig.js
- near-api-js/lib/browser-index.js
- near-api-js/lib/constants
- near-api-js/lib/constants.js
- near-api-js/lib/index.js
- near-api-js/lib/key_stores
- near-api-js/lib/key_stores/browser_local_storage_key_store
- near-api-js/lib/key_stores/browser_local_storage_key_store.js
- near-api-js/lib/key_stores/in_memory_key_store
- near-api-js/lib/key_stores/in_memory_key_store.js
- near-api-js/lib/key_stores/index.js
- near-api-js/lib/key_stores/unencrypted_file_system_keystore
- near-api-js/lib/key_stores/unencrypted_file_system_keystore.js
- near-api-js/lib/providers
- near-api-js/lib/providers/index.js
- near-api-js/lib/providers/json-rpc-provider
- near-api-js/lib/providers/json-rpc-provider.js
- near-api-js/lib/providers/provider
- near-api-js/lib/providers/provider.js
- near-api-js/lib/signer
- near-api-js/lib/signer.js
- near-api-js/lib/transaction
- near-api-js/lib/transaction.js
- near-api-js/lib/utils
- near-api-js/lib/utils/errors
- near-api-js/lib/utils/errors.js
- near-api-js/lib/utils/format
- near-api-js/lib/utils/format.js
- near-api-js/lib/utils/index.js
- near-api-js/lib/utils/key_pair
- near-api-js/lib/utils/key_pair.js
- near-api-js/lib/utils/rpc_errors
- near-api-js/lib/utils/rpc_errors.js
- near-api-js/lib/utils/serialize
- near-api-js/lib/utils/serialize.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (near-api-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
near-api-js
A JavaScript/TypeScript library for development of DApps on the NEAR platform
Documentation
Read the TypeDoc API documentation
Examples
Quick Reference
(Cheat sheet / quick reference)
Cookbook
(Common use cases / more complex examples)
Contribute to this library
Install dependencies
yarn
Run continuous build with:
yarn build -- -w
Publish
Prepare dist
version by running:
yarn dist
When publishing to npm use np.
Integration Test
Start the node by following instructions from nearcore, then
yarn test
Tests use sample contract from near-hello
npm package, see https://github.com/nearprotocol/near-hello
Update error schema
Follow next steps:
- Change hash for the commit with errors in the nearcore
- Fetch new schema:
node fetch_error_schema.js
yarn build
to updatelib/**.js
files
License
This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0). See LICENSE and LICENSE-APACHE for details.