Skip to content

non-official Narwallets' near-api js/ts lite version

Notifications You must be signed in to change notification settings

Narwallets/near-api-lite

Repository files navigation

near-api-lite

non-official Narwallets' near-api js/ts lite version - for node.js

near-api-lite is a a subset of the official near-api-js

It has no dependencies and unpacked size is 240kb (approx. 10% of near-api-js)

TODO

  • create near-api-lite-browser

Differences:

  • Smaller, just core functionality, no dependencies

What's included

  • Transaction
  • Borsh Serializer
  • a .ts cut-down version fo TweetNacl (only sign/25519 curve)
  • bn.js
  • json-rpc (minimal)
  • near-rpc (minimal)

What's extra

  • base-smart-contract class to derive from
  • NEP141 smart contract class to derive from
  • NEP129 smart contract class to derive from

What's not included

  • KeyStores
  • Providers
  • Signers
  • Connection, Account, NEAR-Wallet & Contracts Wrappers
  • NEAR-Wallet navigate-to integration
  • Validators abstractions
  • Multisig abstractions

Objective

This is a simpler API intended to include the minimal required API to interact with the NEAR blockchain

Prerequisites:

  • Current version of Node.js. >=v14.0.0

Setup:

  1. Add to your project by running:
npm i near-api-lite

Happy coding! 🚀

About

non-official Narwallets' near-api js/ts lite version

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published