This repository contains TESTS for NW-ligth-near-api
NW-ligth-near-api is a a subset fo the near-api-js
- Smaller, just core functionality
- Written in ts, compiled to target EsNext
- Transaction
- Borsh Serializer
- a .ts cut-down version fo TweetNacl (only sign/25519 curve)
- Big Number - BN.js
- json-rpc (minimal)
- near-rpc (minimal)
- KeyStores
- Providers
- Signers
- Connection, Account, NEAR-Wallet & Contracts Wrappers
- NEAR-Wallet navigate-to integration
- Validators abstractions
- Multisig abstractions
This is a simpler API intended to analyze the minimal required API to interact with the NEAR blockchain while using ES2020 modules format.
- Current version of Node.js. >=v14.0.0
- Install dependencies by running:
npm iThis proyect contains BOTH libs and related packages:
- near-api-js
- NW-ligth-near-api (as files in src/lib)
In /src/test you'll find 3 files:
-
send-tokens (from transaction-examples, uses near-api-js)
-
send-tokens2 (same but using NW-Ligth-Api)
-
send-tokens3 (do both in parallel comparing outputs)
Put breakpoints and test from a VSCode Debug terminal:
node dist/send-tokens3.jsHappy coding! 🚀