-
Notifications
You must be signed in to change notification settings - Fork 243
Lab: Saved docs #1969
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
Merged
Lab: Saved docs #1969
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,12 @@ | ||
| --- | ||
| title: Saved | ||
| sidebar_position: 20 | ||
| --- | ||
|
|
||
| import DocCardList from "@theme/DocCardList"; | ||
|
|
||
| # Saved | ||
|
|
||
| View keypairs, requests, and transactions saved in local storage. | ||
|
|
||
| <DocCardList /> |
This file contains hidden or 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,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 | ||
|
|
||
|  | ||
|
|
||
| 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). | ||
|
|
||
quietbits marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|  | ||
|
|
||
| ## 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. | ||
|
|
||
|  | ||
|
|
||
| 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. | ||
|
|
||
|  | ||
This file contains hidden or 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,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 | ||
|
|
||
|  | ||
|
|
||
| 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 | ||
|
|
||
|  | ||
|
|
||
| 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. |
This file contains hidden or 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,22 @@ | ||
| --- | ||
| title: "Transactions" | ||
| sidebar_label: Transactions | ||
| description: "View saved transactions." | ||
| sidebar_position: 2 | ||
| --- | ||
|
|
||
| # [Transactions](https://lab.stellar.org/transaction/saved) | ||
|
|
||
|  | ||
|
|
||
| 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. |
This file contains hidden or 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
This file contains hidden or 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
Binary file not shown.
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.
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 not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we re-use horizon endpoint image https://developers-pr1969.previews.kube001.services.stellar-ops.com/docs/tools/lab/api-explorer/horizon-endpoint#saved-requests
There was a problem hiding this comment.
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?