Thorchain.js is a libary that allows you to work with mutiple chains including, Thorchain, Bitcoin, Dogecoin, Ethereum, Etc
Currently this libary isnt really fully released so it doesnt support swapping, liquidity adding/removing, Etc. However if you just want to do some basic stuff you can.
This project isnt fully released so it is missing many features i want to add to it in the future.
Supported Chains | Swapping | Liquidity |
---|---|---|
Bitcoin | No | No |
Thorchain | No | No |
- First you will have to install the project
yarn add thorchain.js
or
npm i thorchain.js
- You will want to initalize your thor client like so
const thorchain = require("thorchain.js");
const client = new thorchain.client({
network: "mainnet", // Defaults to testnet if you dont provide
seed: "12 word seed phrase", // Defaults to "" if you dont provide a mnemonic
});
-
After you get your client setup youre all good to start using this libary
-
Check out the examples folder to learn how to do things. Official documentation wont be made until package is done
If you need help you can join the Discord