Vault Subscription - CLI Guide
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.

Rename Your Files
In the dci-cli-main folder, locate the files
config.example.json
andcreate-vaults.example.csv
.Create copies of these files and rename them:
config.example.json
→config.json
create-vaults.example.csv
→create-vaults.csv
To rename:
Alternatively, in Finder (Mac) or File Explorer (Windows), right-click, select Duplicate or Copy/Paste, and rename.

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

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.
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
andpassphrase
into the config.json file.

Configure The Vault Subscription Command
Now that you have copied the vault address, paste it in this programme:
npx ts-node ./src/main.ts "<Blockchain>" subscribeVault --vault <vault address> --amount <amount>.
Replace the
<vault address>
with the vault address you copied in step 8Replace
<amount>
with your desired subscription amount (eg; 100).Replace
<Blockchain>
with the network you are subscribing to vaults on via Prodigy.Fi, (eg; Base Mainnet, Base Testnet)It should look something like this:
npx ts-node ./src/main.ts "Base Mainnet" subscribeVault --vault 0x1a1f9604eab571b98adeb2c63fe11cc923c8f6d9 --amount 100.
Last updated