Vested is a script that enables you to make multiple calls to the VestedTransfer extrinsic using Polkadot API.
To use this script, follow the steps below:
- Install the necessary dependencies by running
npm install. - Create an
.envfile and set the following variables:
PROVIDER_URL: The URL of the Polkadot node you are connecting to.SENDER_PHRASE: The mnemonic phrase of the account sending the transactions.SENDER_ADDRESS: The address of the account sending the transactions.
Replace the placeholder values with your actual values.
- Modify the
vested.csvfile with the relevant data. - You can modify the frequency at which each call is made by modifying the
frequencyvariable inscript.js(in milliseconds). - Run the script by typing
node script.jsin your terminal. - Once the process has completed, you can find the records saved in the
output.txtfile.
Make sure to follow the .csv format: first column: recipient address second column: locked third column: perBlock fourth colum: startingBlock
Before actual transaction, make a test with small quantities.
Video: https://drive.google.com/file/d/19vNBywAsojZSh1qjT_u7A8vnRWJ-J9gm/view