Example program for automation methods on the Defichain
Find a file
Sebastian Behnisch 4723e1d5dc description added
2023-03-31 13:12:09 +02:00
.vscode exceptions added + sequence for adPoolLiquidity added 2023-03-26 00:28:42 +01:00
settings settings folder added 2023-03-30 13:48:56 +02:00
.gitignore minor changes 2023-03-31 09:56:30 +02:00
dfc-bot.ts set intervall to 60 * 60000 = 1h 2023-03-31 10:04:10 +02:00
helper.ts minor changes 2023-03-30 13:04:41 +02:00
LICENSE Initial commit 2023-03-21 14:15:10 +01:00
package-lock.json reinstall 2023-03-30 22:27:06 +02:00
package.json reinstall 2023-03-30 22:27:06 +02:00
parameter.json minor changes 2023-03-30 13:04:41 +02:00
README.md description added 2023-03-31 13:12:09 +02:00
sequencer.ts reinstall 2023-03-30 22:27:06 +02:00
settings.json minor changes 2023-03-30 13:11:42 +02:00
text.json telegram added 2023-03-29 15:53:30 +02:00
transaction.ts sequence completed scheduler added 2023-03-28 14:33:39 +02:00
tsconfig.json reinstall 2023-03-30 22:27:06 +02:00

dfc-bot

Example program for automation methods on the Defichain

  1. Check the UTXO balance and, if necessary, transfer DFI from the account to UTXO
  2. Collect crypto dust and exchange it for a previously defined token
  3. 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