JSPM

  • Created
  • Published
  • Downloads 95936
  • Score
    100M100P100Q151622F
  • License (MIT AND Apache-2.0)

JavaScript library to interact with NEAR Protocol via RPC API

Package Exports

  • near-api-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

Build Status Gitpod Ready-to-Code

A JavaScript/TypeScript library for development of DApps on the NEAR platform

Contribute to this library

  1. Install dependencies

    yarn
  2. 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 messages

Follow next steps:

  1. Change hash for the commit with errors in the nearcore
  2. Generate new types for errors: node gen_error_types.js
  3. yarn fix fix any issues with linter.
  4. yarn build to update lib/**.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.