October 16, 2019, We recommend that you wait for installers which we are developing before attempting to install and use jormungandr on Windows. These instructions will likely not work for you. If you are still keen to run jormungandr on windows you can try using git bash which allows you to enter Linux commands found in the Linux articles on this site but we do not support the use of Git Bash here.
- The local node is started and synced to the blockchain/testnet
- You already have an account address with enough funds to pay for the transaction fees and transfers (> 20000 Lovelace)
- Download the
send-money.shscript to the same location as the node-config.yaml file
- Create a new account address (if required)
- Send some funds using the script from the initial Account address (source) to the newly created Account address (destination)
How to send funds using script (Windows)
Windows users should use PowerShell and not CMD for executing these commands.
1. Download the script
1.1 Open the scripts section of the Shelley-Testnet GitHub repository
1.2 Locate the
send-money.sh script on the left menu and
right click on it; Select
Save link as option from the right-click menu (this is an example as below showing an unrelated file);
1.3 Save the script in the same location where you saved the node configuration (node-config.yaml) file
If you already have an existing account you can use it, if not you can create a new account by following How to create a new Address using a script (Windows)
Sed funds from the source Account to destination Account using the
GitBash in the same location where you have the script and the node-config.yaml file
Open the folder where you saved the files, right click on the screen (on an empty space) and select
GitBash Here --> Gitbash will open;
Execute the commands for the next steps in
GitBash (from the location where the script is saved).
3.2 Check the parameters required by the script
Execute the comand
This is the oputput:
usage: ./send-money.sh <ADDRESS> <AMOUNT> <REST-LISTEN-PORT> <SOURCE-SK> <ADDRESS> Address where to send the funds <AMOUNT> Amount to be sent (in lovelace) - tx fees will be paid by the source address <REST-LISTEN-PORT> The REST Listen Port set in node-config.yaml file (EX: 3101) <SOURCE-SK> The Secret key of the Source address
3.3 Send funds between the 2 accounts using the script
The below command will send
1000 Lovelace from the source account to the newly created one.
bash send-money.sh ca1sh2jqf837dk8m8kmnsvc9n0xphwzrtre9kctvqcwqlq6vsc5vcw7q63gc9l 1000 3101 ed25519e_sk1nqh6fk0dm9p3tgvqcgt9had3ajn5pcmme04qp256p3g7tahxd9q9j4wgn2n250huxc5t38u0yjd9rtalrzae9t7xcwzhcz98jf4hamsgfmydk
3.4 Check the results
Note: In the below command, for the
--host parameter at the end of the comand is required, make sure to use the same value you used in the node-config.yaml file for the rest/listen parameter. The below comand is an example which you need to adjust.
jcli rest v0 account get ca1sh2jqf837dk8m8kmnsvc9n0xphwzrtre9kctvqcwqlq6vsc5vcw7q63gc9l --host "http://127.0.0.1:3101/api"
The output should look like:
--- counter: 0 delegation: pools:  value: 1000