Skip to content

near/near-api-js

Folders and files

NameName
Last commit message
Last commit date
Apr 24, 2024
Apr 25, 2023
Nov 30, 2023
Sep 20, 2022
Jan 15, 2024
Apr 24, 2024
Apr 22, 2020
May 10, 2023
Dec 18, 2023
Mar 23, 2023
Jul 1, 2019
Nov 30, 2023
Mar 10, 2020
Aug 2, 2022
Dec 8, 2021
Feb 21, 2020
Jan 25, 2023
Apr 3, 2020
Apr 3, 2020
Dec 6, 2023
Nov 30, 2023
Jan 25, 2023
Sep 27, 2022
Sep 16, 2022
Apr 24, 2024
Apr 24, 2024
Sep 20, 2022
Jan 3, 2024
Jan 3, 2024
Jan 3, 2024
Apr 25, 2023
Nov 30, 2023

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. Change hash for the commit with errors in the nearcore
  2. Fetch new schema: node fetch_error_schema.js
  3. pnpm build to update lib/**.js files

Packages

Package Architecture in Onion Diagram

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.