-
Notifications
You must be signed in to change notification settings - Fork 236
[Lab] Add Transaction Dashboard #2205
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
Merged
Changes from 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
616c257
[Lab] Add Transaction Dashboard
jeesunikim a2f9dd9
update the description
jeesunikim 75e30a7
Update docs/tools/lab/transaction-dashboard.mdx
jeesunikim 1565c94
Update docs/tools/lab/transaction-dashboard.mdx
jeesunikim a872009
Update docs/tools/lab/transaction-dashboard.mdx
jeesunikim 2d5fcca
Update docs/tools/lab/account.mdx
jeesunikim eafaffd
Update docs/tools/lab/transaction-dashboard.mdx
jeesunikim ec7f0b6
Update docs/tools/lab/transaction-dashboard.mdx
jeesunikim 79fe96e
Update docs/tools/lab/transaction-dashboard.mdx
jeesunikim 1bdb9fd
update copilot's updates
jeesunikim 69d91e5
add routes and indexers reference
jeesunikim 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
Some comments aren't visible on the classic Files Changed page.
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,95 @@ | ||
| --- | ||
| title: Transaction Dashboard | ||
| description: Use Stellar Lab's Transaction Dashboard Page to get a comprehensive view of transaction details for both classic and smart contracts | ||
jeesunikim marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| sidebar_position: 60 | ||
| --- | ||
|
|
||
| # Transaction Dashboard | ||
|
|
||
|  | ||
|
|
||
| The [Transaction Dashboard](https://lab.stellar.org/transaction-dashboard) provides a comprehensive view of transaction details. For classic transactions, it offers deep insights into operations. For smart contract transactions, it offers details on its interactions (token summary, contracts, events, state change), resource consumption, signatures, and fee breakdowns. | ||
|
|
||
|  | ||
|
|
||
| Transaction details for both smart contract and classic transactions include the status of the transaction, transaction hash, source account for the transaction, sequence number, the date it was processed, fee, and fee source account if applicable. In classic transactions, it includes `memo` and the number of `operations`. Whether you're debugging a failed transaction, analyzing contract behavior, or optimizing performance, the Transaction Dashboard gives you all the information you need in an organized, easy-to-understand interface. | ||
|
|
||
| The dashboard automatically detects whether you're viewing a classic transaction or a smart contract transaction and displays the relevant tabs accordingly. | ||
|
|
||
| :::note | ||
|
|
||
| This feature uses an RPC and RPC retains at maximum 7 days of historical data. Any transaction older 7 days will be displayed as invalid. | ||
jeesunikim marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ::: | ||
|
|
||
| ## Dashboard Tabs for Smart Contracts | ||
|
|
||
| The Transaction Dashboard organizes transaction information into multiple tabs, each focusing on a specific aspect of the transaction: | ||
|
|
||
| ### Token Summary | ||
|
|
||
| The Token Summary tab displays information about token transfers and balance changes that occurred during the transaction. This tab is particularly useful for tracking asset movements and understanding the financial impact of a transaction. | ||
|
|
||
|  | ||
|
|
||
| **What you'll see:** Tokens transferred with asset codes and amounts, sender and receiver addresses for each transfer | ||
|
|
||
| ### Contracts | ||
|
|
||
| The Contracts tab shows detailed information about smart contracts involved in the transaction, including which contracts were invoked. | ||
|
|
||
|  | ||
|
|
||
| **What you'll see:** Contract IDs for all invoked contracts and their verification status | ||
|
|
||
| ### Events | ||
|
|
||
| The Events tab displays all events emitted during transaction execution. Events are logged outputs from smart contracts that track state changes and important occurrences, providing visibility into what happened inside contract execution. | ||
|
|
||
|  | ||
jeesunikim marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| **What you'll see:** Event topics, event data payloads with decoded values, Contract ID that emitted each event, chronological order of all events, and token events | ||
|
|
||
| ### State Change | ||
|
|
||
| The State Change tab shows how ledger entries changed before and after the transaction, giving you a complete picture of the transaction's impact on blockchain state. | ||
|
|
||
|  | ||
jeesunikim marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| **What you'll see:** Contract storage modifications (data read, written, or deleted), account balance changes, trustline updates, contract instance changes, state archival and restoration information Ledger footprint details (which entries were accessed) | ||
jeesunikim marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ### Resource Profiler | ||
|
|
||
| The Resource Profiler provides detailed metrics on resource consumption during transaction execution, helping you understand performance characteristics and optimize costs. | ||
|
|
||
|  | ||
jeesunikim marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| **What you'll see:** CPU instructions consumed Memory (RAM) bytes used, ledger read and write bytes, transaction size metrics, resource fee calculations, comparison against network limits | ||
|
||
|
|
||
| ### Signatures | ||
|
|
||
| The Signatures tab displays all signing and authorization information for the transaction, essential for understanding multi-signature setups and contract authorization. | ||
|
|
||
|  | ||
|
|
||
| **What you'll see:** Required signers for the transaction, actual signatures provided, public keys of all signers. | ||
|
|
||
| ### Fee Breakdown | ||
|
|
||
| The Fee Breakdown tab provides a detailed analysis of all costs associated with the transaction, showing exactly where XLM was spent. | ||
|
|
||
|  | ||
jeesunikim marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| **What you'll see:** Base network fee, resource fee, fee charged versus fee refunded, and final fee | ||
|
|
||
| ## Dashboard Tabs for Classic | ||
|
|
||
| The Transaction Dashboard for classic transactions is straightforward and focused on operations. It displays all operations that occurred in the transaction, with support for up to 100 operations per page. | ||
|
|
||
|  | ||
|
|
||
| ### Operations | ||
|
|
||
| For more information operations, check [List of Operations](https://developers.stellar.org/docs/learn/fundamentals/transactions/list-of-operations). | ||
jeesunikim marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|  | ||
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 |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| --- | ||
| title: View XDR | ||
| sidebar_position: 20 | ||
| sidebar_position: 10 | ||
| --- | ||
|
|
||
| import DocCardList from "@theme/DocCardList"; | ||
|
|
||
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.