@tariproject/tarijs v0.1.19
tari.js
This project provides a unified TypeScript library to connect and send requests to a Tari wallet. It's intended for web application developers that want to interact with a Tari wallet (connect, get substates, submit transactions, etc.).
Tari wallets supported:
- Tari Wallet Daemon
- MetaMask through the tari-snap
An example site (under the example folder) contains a web project that allows the user to connect to any type of Tari wallet and perform common actions.
Please read the TODO file for upcoming features.
Library building
You must have the tari-dan repo cloned at the same folder level as this repo.
To build the library:
npm install
npm run buildThe bundled files for deployment or publication will be located under the dist folder.
Running the example site
To run the example site you will need to:
- Compile the library following the previous section.
- Have access to a Tari Wallet Daemon and to the Tari MetaMask Snap.
- Copy the
example/.env.examplefile toexample/.envand edit the correct environment variable values.
To run in development mode:
cd example
npm install
npm run devFor building and distribution
cd example
npm install
npm run buildThe distribution files will be under the example/dist folder.