Vault Creation - CLI Guide

1

Download The CLI File

  • Visit the Prodigy.Fi CLI repository: https://github.com/prodigyfi/dci-cli

  • Click the green Code button in the top-right corner.

  • Select Download ZIP and save the file to your computer (eg; in your Downloads folder).

  • Unzip the file to access the dci-cli-main folder.

2

Install A Code Editor

  • Download and install a code editor, such as Visual Studio Code, if you don’t have one.

  • Open the dci-cli-main folder in your code editor:

  • In Visual Studio Code, click File > Open Folder and select the dci-cli-main folder.

3

Rename Your Files

  • In the dci-cli-main folder, locate the files config.example.json and create-vaults.example.csv.

  • Create copies of these files and rename them:

    • config.example.jsonconfig.json

    • create-vaults.example.csvcreate-vaults.csv

  • To rename:

    • Alternatively, in Finder (Mac) or File Explorer (Windows), right-click, select Duplicate or Copy/Paste, and rename.

4

Configure The RPC Node URL

  • Open config.json in your code editor.

  • Fill in the rpcNode parameter with the RPC node URL for your chosen blockchain network. This connects the CLI tool to the network. You can find the list of RPC nodes available here.

  • Copy any one of the link shown on the website

5

Fill In The rpcNode Section

  • Paste the copied link into the rpcNode section

Note: Fill the config file under the network that you are running your CLI tool on. For example, if you trying to run the CLI tool on Base testnet, fill up the file under "Base Testnet" as shown in the example below.

6

Configure Wallet

  • Add the account parameter with your wallet address.

  • Replace the placeholder, lp_account , with your wallet address.

7

Obtain Json Wallet & Passphrase

To obtain the JSON wallet and passphrase, follow these steps:

  • Open your folders, and go to the file you downloaded in Step 1.

  • Right-click on the folder (the unzipped version), and click Copy (Cmd + C or Ctrl + C).

  • Open your terminal (Mac) or command prompt (Windows), type cd, press the spacebar, and paste the folder path (Cmd + V or Ctrl + V).

  • It should look something like: cd /Users/username/Downloads/dci-cli-main.

    • “username” is your Mac username (type whoami in terminal to check).

    • “Downloads” is where your file is stored.

    • “dci-cli-main” is the name of your folder.

Note: If you stored or renamed your folder, the folder path may look different

  • Run this command:

    • npm i

  • If it shows an error, follow the instructions and run the fix command:

    • npm audit fix --force

  • Once all the issues are fixed, run this command:

    • npx ts-node src/encrypt_wallet.ts

  • Enter the private key of the wallet you are trying to create your vaults with.

  • Set your passphrase

  • After you have done so, a new keystore should be generated. It should look something like this: keystore/0xXXXXXXXXX.json. This will be your JSON wallet.

  • Copy the Json wallet and passphrase into the config.json file.

8

Configure Vault Parameters

  • Open the create-vaults.csv file using a code editor (eg; Visual Studio Code). Fill in the vault parameters:

  • CreationDate: The date when the vault will be created in this format; YYYY-MM-DD (eg; 2025-07-29).

  • Network: The blockchain network where the vault will be created (eg; Base Mainnet).

  • TradingPair: The token asset pair (eg; WETH-USDC).

  • LinkedPrice: The target price at which you want to buy or sell your crypto token (eg; 2000.00).

  • YieldPercentage: The reward offered to subscribers (eg; 5.0 for 5%).

  • ExpireDate: The expiration date of the vault in this format: YYYY-MM-DD.

  • Direction: The vault strategy, either “Buy Low” or “Sell High”.

  • Quantity: The amount of digital asset to be bought or sold (eg; 1.5 for 1.5 WETH).

Here is an example:

9

Save Both Files

  • Once you fill-up the parameter, save both the config.json & create-vaults.csv file (Cmd + S or Ctrl + S).

  • Make sure to verify in your code editor that the files are in the dci-cli-main folder and contain the correct saved settings.

10

Install Dependencies

  • In the terminal, run this command npm i

  • If there are any issues, run the fix command again: npm audit fix --force

11

Run The CLI Script

  • Congratulations, you are now ready to run the script!

  • Run this command in the terminal: npx ts-node ./src/batch_runner.ts

  • Once the vault is created, you will see the message “Vault created successfully”.

Last updated