AlgoKit Task Transfer
The AlgoKit Transfer feature allows you to transfer algos and assets between two accounts.
Usage
Available commands and possible usage as follows:
1$ ~ algokit task transfer2Usage: algokit task transfer [OPTIONS]3
4Transfer algos or assets from one account to another.5
6Options:7  -s, --sender TEXT               Address or alias of the sender account  [required]8  -r, --receiver TEXT             Address or alias to an account that will receive the asset(s)  [required]9  --asset, --id INTEGER           ASA asset id to transfer10  -a, --amount INTEGER            Amount to transfer  [required]11  --whole-units                   Use whole units (Algos | ASAs) instead of smallest divisible units (for example,12                                  microAlgos). Disabled by default.13  -n, --network [localnet|testnet|mainnet]14                                  Network to use. Refers to `localnet` by default.15  -h, --help                      Show this message and exit.Note: If you use a wallet address for the
senderargument, you’ll be asked for the mnemonic phrase. To use a wallet alias instead, see the wallet aliasing task. For wallet aliases, the sender must have a storedprivate key, but the receiver doesn’t need one. This is because the sender signs and sends the transfer transaction, while the receiver reference only needs a valid Algorand address.
Examples
Transfer algo between accounts on LocalNet
1$ ~ algokit task transfer -s {SENDER_ALIAS OR SENDER_ADDRESS} -r {RECEIVER_ALIAS OR RECEIVER_ADDRESS} -a {AMOUNT}By default:
- the amountis in microAlgos. To use whole units, use the--whole-unitsflag.
- the networkislocalnet.
Transfer asset between accounts on TestNet
1$ ~ algokit task transfer -s {SENDER_ALIAS OR SENDER_ADDRESS} -r {RECEIVER_ALIAS OR RECEIVER_ADDRESS} -a {AMOUNT} --id {ASSET_ID} --network testnetBy default:
- the amountis smallest divisible unit of suppliedASSET_ID. To use whole units, use the--whole-unitsflag.
Further Reading
For in-depth details, visit the transfer section in the AlgoKit CLI reference documentation.