A JavaScript/TypeScript library for development of DApps on the NEAR platform
The develop
branch here in the AhaLabs GitHub org is our own long-running branch. Anything merged to this branch has already been submitted as a PR to the official version, but can be used immediately by referencing this repo + tag in your package.json
:
"near-api-js": "AhaLabs/near-api-js#v1.0.0"
Read the TypeDoc API documentation
(Cheat sheet / quick reference)
(Common use cases / more complex examples)
-
Install dependencies
yarn
-
Run continuous build with:
yarn build -- -w
Prepare dist
version by running:
yarn dist
When publishing to npm use np.
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
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
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.