Skip to content

JavaScript library to interact with NEAR Protocol via RPC API

License

Notifications You must be signed in to change notification settings

hanakannzashi/near-api-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEAR JavaScript API

Build Status Gitpod Ready-to-Code

NEAR JavaScript API is a complete library to interact with the NEAR blockchain. You can use it in the browser, or in Node.js runtime.

Documentation

Contribute to this library

  1. Install dependencies

    pnpm install
    
  2. Run continuous build with:

    pnpm -r compile -w
    

Publish

Prepare dist version by running:

pnpm dist

Integration Test

Start the node by following instructions from nearcore, then

pnpm test

Tests use sample contract from near-hello npm package, see https://github.com/nearprotocol/near-hello

Update error schema

Follow next steps:

  1. Optionally, set a specific hash for the commit with errors in the nearcore
  2. Fetch new schema: node fetch_error_schema.js
  3. pnpm build and pnpm test to check tests still work
  4. pnpm changeset to generate a changeset with a minor bump for the @near-js/utils package
  5. commit all changes and submit a PR on GitHub

Packages

Package Architecture in Onion Diagram

Example Templates

To help you get started quickly, we have prepared example templates for popular frameworks:

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.

About

JavaScript library to interact with NEAR Protocol via RPC API

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 57.7%
  • JavaScript 42.3%