Create Test Accounts and Send Transactions From Aptos CLI
In general, to make a new account on-chain, you will need to generate keys and then fund the account. On devnet, you can fund a new account by asking a “faucet” account with test Aptos tokens to send them to your account. On testnet you can mint at the mint page.
Using the CLI, you can generate and fund a test account using:
aptos init --profile <your-profile-name>Once you have a funded account you can send coins between accounts with the transfer command like this:
aptos account transfer --account superuser --amount 100You should see a result like:
{  "Result": {    "gas_used": 73,    "balance_changes": {      "742854f7dca56ea6309b51e8cebb830b12623f9c9d76c72c3242e4cad353dedc": {        "coin": {          "value": "10100"        },        "deposit_events": {          "counter": "2",          "guid": {            "id": {              "addr": "0x742854f7dca56ea6309b51e8cebb830b12623f9c9d76c72c3242e4cad353dedc",              "creation_num": "1"            }          }        },        "withdraw_events": {          "counter": "0",          "guid": {            "id": {              "addr": "0x742854f7dca56ea6309b51e8cebb830b12623f9c9d76c72c3242e4cad353dedc",              "creation_num": "2"            }          }        }      },      "b9bd2cfa58ca29bce1d7add25fce5c62220604cd0236fe3f90d9de91ed9fb8cb": {        "coin": {          "value": "9827"        },        "deposit_events": {          "counter": "1",          "guid": {            "id": {              "addr": "0xb9bd2cfa58ca29bce1d7add25fce5c62220604cd0236fe3f90d9de91ed9fb8cb",              "creation_num": "1"            }          }        },        "withdraw_events": {          "counter": "1",          "guid": {            "id": {              "addr": "0xb9bd2cfa58ca29bce1d7add25fce5c62220604cd0236fe3f90d9de91ed9fb8cb",              "creation_num": "2"            }          }        }      }    },    "sender": "b9bd2cfa58ca29bce1d7add25fce5c62220604cd0236fe3f90d9de91ed9fb8cb",    "success": true,    "version": 1139,    "vm_status": "Executed successfully"  }}This can be useful for manual testing of Move contracts or just to try seeing how the chain works in practice.