Getting funds

This document covers getting funds into an account that has been generated externally.

Setting up your account

In this guide we will be covering getting funds into a externally generated account. The recommended way to generate an account is by using the polkadot.js wallet extension.

Please make sure to follow the instructions on how to generate a new account if you have not done so already. You can read more about creating a Polkadot account using the extension in the following link

Or you can watch the following video:

Dripping funds using the storagext CLI

Make sure to run the local testnet, you can find how to do so in the local testnet guide.

Once the local testnet is up and running we can drip funds into the account.

Funds can be dripped using a single command:

storagext-cli faucet drip <ACCOUNT>

Where the <ACCOUNT> is the SS58 address generated in the previous steps.

For more information about the faucet pallet and the storagext faucet subcommand check out their respective documenation.

Faucet pallet docs link

storagext faucet subcommand docs link

Getting funds through the Sudo pallet

Make sure to run the local testnet, you can find how to do so in the local testnet guide. Once the local testnet is up and running navigate to the polkadot-js web app interface by going to the default polkadot.js web interface URL.

If you have changed the ws_port value in the zombienet configuration — local-testnet.toml, this URL is different and you should change the port accordingly.

Under the developer tab, navigate to Sudo.

sudo selection

Once you are in Sudo you should select balances from the submit dropdown.

balance selection

Then, on the box to the right, select forceSetBalance from the dropdown.

force selection

Setting the Id field to your generated address and the newFree field to the amount in plancks, as shown in the image below. If your polkadot.js extension is injected into the polkadot.js web interface it will recognize the injection and you can select the desired account.

Note that the forceSetBalance extrinsic does NOT add tokens to an account but rather sets the balance to the given amount.

balance forceSetBalance

Sign and submit your transaction, the caller will automatically be set to Alice, a dev account.

sign and submit

After the block has been finalized, the balance will show up in the generated account under the accounts tab and you are ready to start using the polka-storage chain with your own account.

account balance