CLI Guide

Download the latest copy of CLI tools here: https://github.com/prodigyfi/dci-cli Step 1: Download the source code

Step 2: Use a code editor to open the file

Step 3: Copy the file and remove “example” from the name

  1. config.example.json -> config.json

  2. create-vaults.example.csv -> create-vaults.csv

Step 4: Fill in the config.json parameter

  1. rpcNode - The chain’s RPC node. You can find Berachain Testnet public RPC node here: https://chainlist.org/chain/80084 Copy any one of the link shown on the website

  2. account - The wallet address

  3. privateKey - The wallet’s private key

Step 5: Change the create-vaults.csv parameter (You can also open the CSV file with Excel or other spreadsheet app)

  1. CreationDate - The date when the vault will be created

  2. Network - The blockchain network where the vault will be created

  3. TradingPair - The token asset pair

  4. LinkedPrice - The target price at which you want to buy or sell your crypto token at

  5. YieldPercentage - The reward offered to subscribers

  6. ExpireDate - The expiration date of the vault

  7. Direction - The vault strategy. “Buy Low” or “Sell High” Only

  8. Quantity - The amount of digital asset to be bought or sold

  9. Hedge - Experimental feature, please leave it blank for now

Step 6: Once you fill-up the parameter, save both the config.json & create-vaults.csv file

Step 7: Install dependencies.

npm i

Step 8: Run the batch_runner.ts script

npx ts-node ./src/batch_runner.ts

Step 9: Once the vault is created, you will see the message “Vault created successfully”.

Last updated