pub struct WalletArrivalRecord {
pub seq: u64,
pub coin_id: String,
pub puzzle_hash: String,
pub amount: String,
pub asset_id: Option<String>,
pub confirmed_height: u32,
}Expand description
One confirmed incoming payment, as the node’s arrival ledger recorded it.
Every field is a public chain fact about an address this node already watches. There is deliberately no ticker and no formatted amount: naming an asset the node did not attribute, or choosing a divisor for it, would be a claim about WHICH money arrived that the node cannot support.
Fields§
§seq: u64This arrival’s monotonic ledger position. Strictly increasing and never reused, so a stored position cannot come to mean a different arrival after a reorg.
coin_id: StringThe coin that arrived (lowercase hex).
puzzle_hash: StringThe watched puzzle hash it arrived at (lowercase hex).
amount: StringThe amount in the asset’s own base unit, as a DECIMAL STRING.
A string because the ledger stores the full u64 range and a JSON number does not carry it
losslessly — a large mojo amount silently rounds through an f64 parser, which is a wrong
figure about somebody’s money.
asset_id: Option<String>The CAT asset id (hex TAIL), or None for native XCH.
confirmed_height: u32The height the coin was CONFIRMED at. Never optional: an arrival with no confirmed height is not an arrival, and a node MUST NOT emit a mempool sighting here.
Trait Implementations§
Source§impl Clone for WalletArrivalRecord
impl Clone for WalletArrivalRecord
Source§fn clone(&self) -> WalletArrivalRecord
fn clone(&self) -> WalletArrivalRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more