forked from stellar/stellar-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lab: Create and fund account (stellar#858)
* Lab: Create and fund account * Use relative links * Add update to friendbot message --------- Co-authored-by: Jane Wang <[email protected]>
- Loading branch information
Showing
5 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"collapsed": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Account | ||
|
||
## Create Account Keypair | ||
|
||
![Lab: Create Account](/assets/lab/lab-account-create.png) | ||
|
||
From the Lab’s top navigation, click on the "Account" link. You will land on the "Create Account Keypair" page, where you can generate a [keypair](../../../learn/glossary.mdx#keypair) by following these steps: | ||
|
||
1. Make sure you are on the Stellar network for which you want to generate the keypair. You can see the current network in the upper right corner of the page. Click on dropdown to change the network (don’t forget to provide any necessary information). We will use Testnet network for this example. | ||
2. Click the "Generate keypair" button to create public and secret keys for an account. Save them someplace safe, even if they are used only for testing. | ||
|
||
:::warning | ||
|
||
Anyone with the account’s secret key has full access and control over the account. Keep the secret key safe. | ||
|
||
::: | ||
|
||
3. An account is active only once it is funded. You can use Friendbot to fund it on Testnet and Futurenet networks only. Click on the "Fund account with Friendbot" button to add 10,000 XLM to the account. When the operation completes, a message will be displayed at the bottom. | ||
|
||
:::info | ||
|
||
The Friendbot can be used for new account or accounts with balance under a starting balance of 10,000 XLM. Click the "Fund account with Friendbot" button again to see what happens. It’s the Lab, so feel free to experiment (as long as you are on Testnet or Futurenet network)! | ||
|
||
::: | ||
|
||
## Fund Account | ||
|
||
![Lab: Fund Account](/assets/lab/lab-account-fund.png) | ||
|
||
If you already have a keypair you want to fund, go to the "Fund Account" page. | ||
|
||
1. If you have generated a keypair on the "Create Account Keypair" page, you can use its public key by clicking the "Fill in the generated key" button. The button will be disabled if there is no keypair. | ||
2. You can always manually input a public key. | ||
3. Once you enter the public key, click the "Get lumens" button to fund the account with 10,000 XLM on the Testnet or Futurenet network. | ||
4. You will see a response message once the operation is completed. | ||
|
||
:::info | ||
|
||
You can also create an account using a Stellar SDK. Follow a guide [here](../../../build/guides/basics/create-account.mdx). | ||
|
||
::: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.