@latticelabs/sdk
v2.0.9
Published
晶格链JS/TS SDK
Downloads
219
Readme
Lattice.js
JS/TS library for quick interaction with LatticeChain.
Documentation
Features
- Connect to LatticeChain nodes over Http, WebSocket..
- Promise event related to transactions
- Fully TypeScript supported
- Cross platform
- Extensive api documention
Installation
Install @latticelabs/sdk
with npm/yarn
npm i @latticelabs/sdk
Usage/Examples
import { Lattice } from '@latticelabs/sdk';
const chainUrl = ''; // lattice chain url
const chainId = 1; // lattice chain id
const lattice = new Lattice(chainUrl, chainId);
Tech Stack
- TypeScript
- Nodejs
- EventEmitter
- cross-fetch
- ws
Running Tests
To run tests, run the following command
npm run test
Roadmap
Additional browser support
React Native support
Add more integrations
Support
For support, email [email protected] or open an issue.