pub trait ExplorerTransaction<Types>{
// Required methods
fn namespace_id(&self) -> NamespaceId<Types>;
fn payload_size(&self) -> u64;
}
Expand description
ExplorerTransaction is a trait that allows the Explorer API to be able to retrieve a namespace id from a transaction. This is necessary for the Explorer API to be able to display the namespace id for a TransactionSummary.
Required Methods§
Sourcefn namespace_id(&self) -> NamespaceId<Types>
fn namespace_id(&self) -> NamespaceId<Types>
namespace_id returns the namespace id of the individual transaction.
Sourcefn payload_size(&self) -> u64
fn payload_size(&self) -> u64
payload_size returns the size of the payload of the transaction.