Skip to content

tari-project/tari-snap

 
 

Repository files navigation

tari-snap

This repository contains:

  • A MetaMask snap that adds support to Tari network, allowing the user to send and retrieve transactions.
  • A web wallet as an UI to visualize and perform account management operations (see balances, transfer, etc.).

Please read the TODO file for upcoming features.

Pre-requisites

To interact with Snaps, you will need to install MetaMask Flask, a canary distribution for developers that provides access to upcoming features.

You will also need a Tari network running, with an indexer.

For building the project, Node.js version 18 or superior is required.

Getting Started

First clone the repo

git clone https://github.com/mrnaveira/tari-snap
cd tari-snap
nvm use 18

Then you need to build the WebAssembly library used to build Tari transactions:

cd tari_wallet_lib
npm install
npm run build

The snap requires connection to a Tari indexer to access the Tari network. The URL value is configured in the tari-snap/snap/.env file, which you need to create by making a copy of the tari-snap/snap/.env.example file.

Finally, from the root folder (tari-snap), build and launch the snap and wallet website:

yarn install
yarn start

The output of the yarn start command will direct you to open the URL http://127.0.0.1:8000 for the wallet website.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 77.8%
  • Rust 18.7%
  • JavaScript 2.7%
  • Shell 0.8%