Although you have seen Remix IDE until now, we can also use local development environment. In the future, after you get comfortable with Aptos development, my suggestion is to switch to local environment but you can work with Remix IDE until you are comfortable.
In this guide you will find 2 steps.
STEP 1: Install CLI
STEP 2: Creating an Account and Funding It
Please start a new terminal and paste the following command.
aptos init
Choose network from [devnet, testnet, mainnet, local, custom | defaults to devnet]
No network given, using devnet...
Enter your private key as a hex literal (0x...) [Current: None | No input: Generate new key (or keep one if present)]
No key given, generating key...
Account a345dbfb0c94416589721360f207dcc92ecfe4f06d8ddc1c286f569d59721e5a doesn't exist, creating it and funding it with 100000000 Octas
Account a345dbfb0c94416589721360f207dcc92ecfe4f06d8ddc1c286f569d59721e5a funded successfully
\--
Aptos CLI is now set up for account a345dbfb0c94416589721360f207dcc92ecfe4f06d8ddc1c286f569d59721e5a as profile default!
Run `aptos --help` for more information about commands{ "Result": "Success"}
a345dbfb0c94416589721360f207dcc92ecfe4f06d8ddc1c286f569d59721e5a is your new account and is aliased as the profile default.
This account address will be different for you as it is generated randomly.
Of course, substitute your own address as needed.
aptos account fund-with-faucet --account default
{ "Result": "Added 100000000 Octas to account a345dbfb0c94416589721360f207dcc92ecfe4f06d8ddc1c286f569d59721e5a"}
And this is it! Hopefully, it worked without a problem. If you have any problems, do not hesitate to ask.
Swap insights and ask questions about “Learn everything about Aptos”.
Ask a question or share your thoughts about this lesson.