Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab: Create and fund account #858

Merged
merged 3 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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](/docs/learn/glossary#keypair) by following these steps:
janewang marked this conversation as resolved.
Show resolved Hide resolved

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 only on inactive accounts (accounts that don’t have any balance yet). 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)!
janewang marked this conversation as resolved.
Show resolved Hide resolved

:::

## 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](/docs/build/guides/basics/create-account).
janewang marked this conversation as resolved.
Show resolved Hide resolved

:::
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.
Loading