Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
16 changes: 1 addition & 15 deletions docs/tools/lab/account.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The Friendbot can be used for new account or accounts with balance under a start

:::

4. Optionally, to save the generated keypair, click the "Save Keypair" button. Enter the name in the pop-up and click the "Save" button to save the keypair in the browser's local storage. Click the "Saved" link on the main menu to expand the submenu, then click on the "Keypairs" link to view saved keypairs. The save feature is available only on Testnet and Futurenet networks.
4. Optionally, to save the generated keypair, click the "Save Keypair" button. Enter the name in the pop-up and click the "Save" button to save the keypair in the browser's local storage. Click the "Saved" link on the main menu to expand the submenu, then click on the "[Keypairs](./saved/keypairs)" link to view saved keypairs. The save feature is available only on Testnet and Futurenet networks.

## [Fund Account](https://lab.stellar.org/account/fund)

Expand All @@ -47,17 +47,3 @@ If you already have a keypair you want to fund, go to the "Fund Account" page (u
You can also create an account using a Stellar SDK. Follow a guide [here](../../build/guides/transactions/create-account.mdx).

:::

## [Saved Keypairs](https://lab.stellar.org/account/saved)

![Lab: Saved Keypairs](/assets/lab/lab-account-saved.png)

This page shows you saved keypairs for the selected network (only Testnet and Futurenet) in the browser's local storage. Every keypair has the following:

1. Name - makes it easy to find the keypair you're looking for. You can update the name anytime by clicking the edit button and saving the new name.
2. Public key - the public account address. You can quickly copy it with a click of a button.
3. Secret key - the secret key of the account. Click the Eye button to toggle between masked and clear text format. Like the Public key, you can copy it by clicking the Copy button.
4. Delete the saved keypair if it's no longer needed.
5. The last saved date and time.
6. XLM balance if the account is funded.
7. If the account is unfunded, you can get 10,000 XLM by clicking the "Fund with Friendbot" button. This might be useful after the Testnet or Futurenet reset, as all your saved accounts will also be reset.
6 changes: 1 addition & 5 deletions docs/tools/lab/api-explorer/horizon-endpoint.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,4 @@ Clicking the icon opens a modal. We recommend providing an identifiable name to

![Lab: Horizon - Modal](/assets/lab/horizon-save-modal.png)

Saved endpoints are located in the main menu under the "Saved" menu, "Requests" submenu. They include requests for both the **RPC Methods** and **Horizon Endpoints**.

![Lab: Horizon - Saved Requests Page](/assets/lab/horizon-saved-requests.png)

On the Saved Requests page, you can update a request name at any time by clicking the edit button and saving the new name. The **View** button redirects you to the respective endpoint page on the Stellar Lab, while the copy icon serves as the Share Feature we discussed earlier. You can also delete saved requests from this page.
Saved endpoints are located in the main menu under the "Saved" menu, "[Requests](../saved/requests.mdx)" submenu.
21 changes: 1 addition & 20 deletions docs/tools/lab/api-explorer/rpc-methods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,4 @@ The Stellar Lab allows you to share RPC methods with filled data. Simply click o

## Saved Requests

You can save methods in the browser’s local storage by clicking the Save button (next to the Share button). Once you click that button, a modal will pop up, where you will need to enter the name and click save. To view your saved RPC methods in the Lab, click the "Saved" link in the main menu, then click the "Requests" submenu link. Then click the "RPC Methods" tab in the top right.

:::info

Only items for the selected network are shown. If you don’t see the item you’re looking for, try changing the network.

:::

![Lab: Saved RPC Methods](/assets/lab/rpc-methods-saved.png)

Every saved request item has the following:

1. RPC method name - quickly identify the method you need.
2. Name - makes finding the RPC method you’re looking for easy. You can update the name anytime by clicking the edit button and saving the new name.
3. RPC URL - where to submit the request.
4. Share the URL to view the method with all the data in the Lab.
5. View the item in the API Explorer, where you can submit it.
6. View payload.
7. The last saved date and time.
8. Delete the item if it’s no longer needed.
You can save methods in the browser’s local storage by clicking the Save button (next to the Share button). Once you click that button, a modal will pop up, where you will need to enter the name and click save. To view your saved RPC methods in the Lab, click the "Saved" link in the main menu, then click the "[Requests](../saved/requests.mdx)" submenu link. Then click the "RPC Methods" tab in the top right.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which image do you mean?

12 changes: 12 additions & 0 deletions docs/tools/lab/saved/README.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Saved
sidebar_position: 20
---

import DocCardList from "@theme/DocCardList";

# Saved

View keypairs, requests, and transactions saved in local storage.

<DocCardList />
46 changes: 46 additions & 0 deletions docs/tools/lab/saved/keypairs.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
title: "Keypairs"
sidebar_label: Keypairs
description: "View saved keypairs (accounts)."
sidebar_position: 0
---

# [Keypairs](https://lab.stellar.org/account/saved)

:::important

You can only save keypairs on test networks—never on Mainnet—and you should never reuse Mainnet keypairs on test networks or share your secret keys with anyone.

:::

## Overview

![Lab: Saved Keypairs](/assets/lab/lab-account-saved.png)

This page shows you saved keypairs for the selected network (only Testnet and Futurenet) in the browser's local storage. Every keypair has the following:

1. Name - makes it easy to find the keypair you're looking for. You can update the name anytime by clicking the edit button and saving the new name.
2. Public key - the public account address. You can quickly copy it with a click of a button.
3. Secret key - the secret key of the account. Click the Eye button to toggle between masked and clear text format. Like the Public key, you can copy it by clicking the Copy button.
4. Recovery phrase - the 12 or 24-word passphrase. Click the Eye button to toggle between masked and clear text format. Like the Public key, you can copy it by clicking the Copy button.
5. Delete button - click this button to delete the keypair.
6. Delete the saved keypair if it's no longer needed.
7. The last saved date and time.
8. XLM balance if the account is funded.
9. If the account is unfunded, you can get 10,000 XLM by clicking the "Fund with Friendbot" button. This might be useful after the Testnet or Futurenet reset, as all your saved accounts will also be reset.

## Manually save keypair

To add a keypair manually, click the "Add keypair manually" button located in the top right corner of the screen. This will open a modal where you can enter a name for your keypair along with the [Stellar secret key](../../../learn/glossary.mdx#secret-private-key) (which begins with the letter "S") or recovery passphrase (a 12 or 24-word phrase).

![Lab: Add keypair manually](/assets/lab/lab-account-saved-manual.png)

## Using saved keypairs

Saved keypairs make it easy to work with Stellar accounts and sign transactions. When building a transaction, click the "Get address" button in the Source Account input and choose your desired account from the dropdown.

![Lab: Use saved public key](/assets/lab/lab-account-saved-usage-public.png)

When it's time to sign, head to the Signatures section on the Sign Transaction page. If you don't see it, import your transaction XDR first. Then click "Use secret key" in the "Sign with secret key" section and select the account key you'd like to use.

![Lab: Use saved secret key](/assets/lab/lab-account-saved-usage-secret.png)
44 changes: 44 additions & 0 deletions docs/tools/lab/saved/requests.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: "Requests"
sidebar_label: Requests
description: "View saved Horizon endpoints and RPC methods."
sidebar_position: 1
---

# [Requests](https://lab.stellar.org/endpoints/saved)

On this page, you can view saved requests for both the **RPC Methods** and **Horizon Endpoints**. Select the tab you want to view in the top right corner.

:::info

Only items for the selected network are shown. If you don’t see the item you’re looking for, try changing the network.

:::

## RPC Methods

![Lab: Saved RPC Methods](/assets/lab/lab-rpc-methods-saved.png)

Every saved RPC request item has the following:

1. RPC method name - quickly identify the method you need.
2. Name - makes finding the RPC method you’re looking for easy. You can update the name anytime by clicking the edit button and saving the new name.
3. RPC URL - where to submit the request.
4. Share the URL to view the method with all the data in the Lab.
5. View the item in the API Explorer, where you can submit it.
6. View payload.
7. The last saved date and time.
8. Delete the item if it’s no longer needed.

## Horizon Endpoints

![Lab: Horizon - Saved Requests Page](/assets/lab/lab-horizon-saved-requests.png)

Saved Horizon Endpoints have the following:

1. Name - You can update the name anytime by clicking the edit button and saving the new name.
2. Horizon URL - endpoint to fetch the data from.
3. Share the URL to view the endpoint with all the data in the Lab.
4. View the item in the API Explorer, where you can submit it.
5. The last saved date and time.
6. Delete the item if it’s no longer needed.
22 changes: 22 additions & 0 deletions docs/tools/lab/saved/transactions.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: "Transactions"
sidebar_label: Transactions
description: "View saved transactions."
sidebar_position: 2
---

# [Transactions](https://lab.stellar.org/transaction/saved)

![Lab: Saved Transactions](/assets/lab/lab-transactions-saved.png)

On this page, you'll see transactions saved in your browser's local storage. It only shows the transactions on the selected network, which you can change in the upper right corner.

Saved transactions have the following:

1. Name - makes finding the transaction you're looking for easy. You can update the name anytime by clicking the edit button and saving the new name.
2. Operations - list of operations in this transaction.
3. Delete the saved transaction.
4. The last saved date and time.
5. The share button to get a shareable link to this transaction.
6. Transactions saved on the "Transaction Builder" page have the "View in builder" button to take you to the "Build Transaction" page.
7. Transactions saved on the "Submit Transaction" page have the "View in submitter" button to take you to that page.
18 changes: 1 addition & 17 deletions docs/tools/lab/transactions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Select the operation type from the dropdown to get the fields for that operation

If you wish to add more operations, click the "Add Operation" button at the bottom of the operations section. You can also duplicate, delete, and move the operation by clicking the appropriate button on the upper right of the individual operation section.

You can also save a valid transaction by clicking the save button at the bottom of the operations section. You will need to enter a name for this transaction in a pop-up and click the "Save" button. The transactions are saved in the browser's local storage and can be found on the "Saved Transactions" page (accessed by clicking the link in the left-side navigation).
You can also save a valid transaction by clicking the save button at the bottom of the operations section. You will need to enter a name for this transaction in a pop-up and click the "Save" button. The transactions are saved in the browser's local storage and can be found on the "[Saved Transactions](./saved/transactions)" page (accessed by clicking the Saved link in the left navigation and clicking on the "Transactions" submenu item).

Clicking the share button (right next to the save button) allows you to share a link with all the transaction information provided. You can share any transaction, even if it's invalid or incomplete.

Expand All @@ -37,19 +37,3 @@ The validation section at the bottom of the page shows the built transaction inf
If there are errors in this transaction, you will see them grouped by section (params and every operation) to make it easier to tell what needs fixing.

![Lab: Transaction validation error](/assets/lab/lab-transactions-response-error.png)

## [Saved Transactions](https://lab.stellar.org/transaction/saved)

![Lab: Saved Transactions](/assets/lab/lab-transactions-saved.png)

On this page, you'll see transactions saved in your browser's local storage. It only shows the transactions on the selected network, which you can change in the upper right corner.

Saved transactions have the following:

1. Name - makes finding the transaction you're looking for easy. You can update the name anytime by clicking the edit button and saving the new name.
2. Operations - list of operations in this transaction.
3. Delete the saved transaction.
4. The last saved date and time.
5. The share button to get a shareable link to this transaction.
6. Transactions saved on the "Transaction Builder" page have the "View in builder" button to take you to the "Build Transaction" page.
7. Transactions saved on the "Submit Transaction" page have the "View in submitter" button to take you to that page.
4 changes: 4 additions & 0 deletions routes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,10 @@
/docs/tools/lab/api-explorer/horizon-endpoint
/docs/tools/lab/api-explorer/rpc-methods
/docs/tools/lab/quickstart-with-lab
/docs/tools/lab/saved
/docs/tools/lab/saved/keypairs
/docs/tools/lab/saved/requests
/docs/tools/lab/saved/transactions
/docs/tools/lab/smart-contracts
/docs/tools/lab/smart-contracts/contract-explorer
/docs/tools/lab/smart-contracts/smart-contract-list
Expand Down
Binary file removed static/assets/lab/horizon-saved-requests.png
Binary file not shown.
Binary file added static/assets/lab/lab-account-saved-manual.png
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/assets/lab/lab-account-saved.png
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.
Binary file added static/assets/lab/lab-rpc-methods-saved.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 removed static/assets/lab/rpc-methods-saved.png
Binary file not shown.