Module data

Source
Expand description

Real Monero data.

This module provides access to real Monero data, either in raw bytes or typed.

§Constants

The constants provide byte slices representing block and transaction blobs that can be directly deserialized:

use monero_serai::{block::Block, transaction::Transaction};

let block: Block = Block::read(&mut BLOCK_43BD1F).unwrap();
let tx: Transaction = Transaction::read(&mut TX_E57440).unwrap();

§Statics

The statics provide access to typed data found in cuprate_types:

use cuprate_types::{VerifiedBlockInformation, VerifiedTransactionInformation};

let block: VerifiedBlockInformation = BLOCK_V16_TX0.clone();
let tx: VerifiedTransactionInformation = TX_V1_SIG0.clone();

Constants§

BLOCK_5ECB7E
Block with hash 5ecb7e663bbe947c734c8059e7d7d52dc7d6644bb82d81a6ad4057d127ee8eda.
BLOCK_43BD1F
Block with hash 43bd1f2b6556dcafa413d8372974af59e4e8f37dbf74dc6b2a9b7212d0577428.
BLOCK_BBD604
Block with hash bbd604d2ba11ba27935e006ed39c9bfdd99b76bf4a50654bc1e1e61217962698.
BLOCK_F91043
Block with hash f910435a5477ca27be1986c080d5476aeab52d0c07cf3d9c72513213350d25d4.
TX_3BC7FF
Transaction with hash 3bc7ff015b227e7313cc2e8668bfbb3f3acbee274a9c201d6211cf681b5f6bb1.
TX_9E3F73
Transaction with hash 9e3f73e66d7c7293af59c59c1ff5d6aae047289f49e5884c66caaf4aea49fb34.
TX_84D48D
Transaction with hash 84d48dc11ec91950f8b70a85af9db91fe0c8abef71ef5db08304f7344b99ea66.
TX_2180A8
Transaction with hash 2180a87f724702d37af087e22476297e818a73579ef7b7da947da963245202a3.
TX_B6B439
Transaction with hash b6b4394d4ec5f08ad63267c07962550064caa8d225dd9ad6d739ebf60291c169.
TX_D7FEBD
Transaction with hash d7febd16293799d9c6a8e0fe9199b8a0a3e0da5a8a165098937b60f0bbd582df.
TX_E2D393
Transaction with hash e2d39395dd1625b2d707b98af789e7eab9d24c2bd2978ec38ef910961a8cdcee.
TX_E57440
Transaction with hash e57440ec66d2f3b2a5fa2081af40128868973e7c021bb3877290db3066317474.

Statics§

BLOCK_V1_TX2
Return BLOCK_5ECB7E as a VerifiedBlockInformation.
BLOCK_V9_TX3
Return BLOCK_F91043 as a VerifiedBlockInformation.
BLOCK_V16_TX0
Return BLOCK_43BD1F as a VerifiedBlockInformation.
TX_V1_SIG0
Return TX_3BC7FF as a VerifiedTransactionInformation.
TX_V1_SIG2
Return TX_9E3F73 as a VerifiedTransactionInformation.
TX_V2_RCT3
Return TX_84D48D as a VerifiedTransactionInformation.