Skip to content

Commit

Permalink
Lab: Create and fund account (stellar#858)
Browse files Browse the repository at this point in the history
* Lab: Create and fund account

* Use relative links

* Add update to friendbot message

---------

Co-authored-by: Jane Wang <[email protected]>
  • Loading branch information
quietbits and janewang authored Aug 2, 2024
1 parent 8966f64 commit 5ef9645
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 0 deletions.
File renamed without changes.
3 changes: 3 additions & 0 deletions docs/tools/developer-tools/lab/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"collapsed": false
}
41 changes: 41 additions & 0 deletions docs/tools/developer-tools/lab/account.mdx
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).

:::
Binary file added static/assets/lab/lab-account-create.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/lab/lab-account-fund.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5ef9645

Please sign in to comment.