I am trying to build an application for which I need to make a transaction but I don’t have any funds in my wallet. However, while creating the private network my template.json file allocated funds to wallet1 2 3 but now I am unable to find any wallets with these names.
So either I need a way to access the wallets created(if any) at the time of creation of the network or I need some way to add funds to the wallet I created. Please help me.
The confusion is an unfortunate misuse of the word ‘Wallet’. Private networks generate Genesis Accounts. These accounts are imported into default unencrypted wallets local to each of the node instance folders in your network. So to fund your new account, you should be able to goal clerk send from one of the generated nodes. If you goal account list in a node that has a Genesis Account, you should see the account that was generated with a lot of tokens.
I ultimately shifted to testnet for development purpose. But I tried the above steps before moving to testnet and couldn’t execute them, so if you can post some additional details it would be helpful for people trying the private network.
read -p “Press enter to send tokens”
echo “### Sending money from one account to another”
goal clerk send -a 10000 -f $NODEKEY -t $PRIMKEY -d test/Node
echo
That said my template is different than the default. Mine is:
{
“Genesis”: {
“NetworkName”: “”,
“Wallets”: [
{
“Name”: “Wallet1”,
“Stake”: 50,
“Online”: true
},
{
“Name”: “Wallet2”,
“Stake”: 50,
“Online”: true
}
]
},
“Nodes”: [
{
“Name”: “Primary”,
“IsRelay”: true,
“Wallets”: [
{
“Name”: “Wallet1”,
“ParticipationOnly”: false
}
]
},
{
“Name”: “Node”,
“Wallets”: [
{
“Name”: “Wallet2”,
“ParticipationOnly”: false
}
]
}
]
}