penumbra_sdk_view/transaction_info.rs
1use penumbra_sdk_transaction::{
2 txhash::TransactionId, Transaction, TransactionPerspective, TransactionSummary, TransactionView,
3};
4
5#[derive(Debug, Clone)]
6pub struct TransactionInfo {
7 // The height the transaction was included in a block, if known.
8 pub height: u64,
9 // The hash of the transaction.
10 pub id: TransactionId,
11 // The transaction data itself.
12 pub transaction: Transaction,
13 // The transaction perspective, as seen by this view server.
14 pub perspective: TransactionPerspective,
15 // A precomputed transaction view of `transaction` from `perspective`, included for convenience of clients that don't have support for viewing transactions on their own.
16 pub view: TransactionView,
17 // A short view of balances leaving and entering accounts, computed from transaction actions.
18 pub summary: TransactionSummary,
19}