penumbra_view/
transaction_info.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use penumbra_transaction::{
    txhash::TransactionId, Transaction, TransactionPerspective, TransactionView,
};

#[derive(Debug, Clone)]
pub struct TransactionInfo {
    // The height the transaction was included in a block, if known.
    pub height: u64,
    // The hash of the transaction.
    pub id: TransactionId,
    // The transaction data itself.
    pub transaction: Transaction,
    // The transaction perspective, as seen by this view server.
    pub perspective: TransactionPerspective,
    // A precomputed transaction view of `transaction` from `perspective`, included for convenience of clients that don't have support for viewing transactions on their own.
    pub view: TransactionView,
}