Socket
Socket
Sign inDemoInstall

near-api-js

Package Overview
Dependencies
Maintainers
4
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

near-api-js

JavaScript library to interact with NEAR Protocol via RPC API


Version published
Weekly downloads
83K
decreased by-2.85%
Maintainers
4
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 26 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc