Example program for automation methods on the Defichain
| .vscode | ||
| settings | ||
| .gitignore | ||
| dfc-bot.ts | ||
| helper.ts | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| parameter.json | ||
| README.md | ||
| sequencer.ts | ||
| settings.json | ||
| text.json | ||
| transaction.ts | ||
| tsconfig.json | ||
dfc-bot
Example program for automation methods on the Defichain
- Check the UTXO balance and, if necessary, transfer DFI from the account to UTXO
- Collect crypto dust and exchange it for a previously defined token
- Reinvest in Liquidity Mining
Installation of Typescript
For the latest stable version: npm install -g typescript If tsc does not run, input in admin mode: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
Command
tsc -p tsconfig.json;node dist/dfc-bot.js
Installation
- Installation of necessary node modules: npm install
- settings.json must be filled in correctly and stored separately in directory: './settings/settings.json'
- the encryptMnemonic and decryptMnemonic functions can be used to encrypt your mnemonic (passphrase)
Get DFI on Testnet
https://mydeficha.in/en/index.php?site=faucet
Get Token ID
https://ocean.defichain.com/v0/mainnet/tokens?size=200
Get Pool ID
https://ocean.defichain.com/v0/mainnet/poolpairs?size=200
Package Telegraf
If you have problems with Telegraf, try the following: npm i github:telegraf/telegraf