This repository will help you get up to speed with mangrove.js. Mangrove is currently available on the Mumbai testnet.
How to use:
Run npm install
.
Fill in your private key and node url in .env
, following the template of .env.example
.
- You can use Alchemy to get a Mumbai node.
- You can generate a private key with
node generate_key.js
. You can use the Polygon faucet to get some Mumbai MATIC tokens.
Only use the generated keys for testing purposes.
Run node index.js
to display all the offers on the WETH/DAI pair.
To get the latest mangrove.js, use
npm install @giry/mangrove.js@latest
mangrove.js lives in the Mangrove monorepo. Once you cloned that repo, run npm link
inside packages/mangrove.js
(you may need sudo), then npm link @giry/mangrove.js
in the root directory of this package (e.g. in demo-mangrove.js
).
- Allow using links to other files to get credentials
- Start in readonly if no credentials were given
- Allow connecting to hardware for signing
- Add link to testnet.mangrove.exchange faucets for other tokens.