{{html_escaper::Trusted(include_str!( concat!(env!("CARGO_MANIFEST_DIR"), "/templates/web/html/components/head.html")))}} {{Trusted(self.header.to_string())}}

Announcement

Metadata

Block Height {{self.block_height}}
Block Hash {{self.block_hash.to_hex()}}
Index {{self.index}}/{{self.num_announcements}}
Type {{self.announcement_type.name()}}

Payload

{% match &self.announcement_type { AnnouncementType::TransparentTxInfo(tx_info) => { %}
Transparent Transaction Info {% if !tx_info.inputs.is_empty() { %} {% for input in tx_info.inputs.iter() { %} {% } %}
inputs
{{input.addition_record().canonical_commitment.to_hex()}}
UTXO digest: {{Tip5::hash(&input.utxo).to_hex()}}
sender randomness: {{input.sender_randomness.to_hex()}}
receiver preimage: {{input.receiver_preimage.to_hex()}}
{{input.utxo.get_native_currency_amount().display_n_decimals(5)}} NPT
{% } %} {% if !tx_info.outputs.is_empty() { %} {% for output in tx_info.outputs.iter() { %} {% } %}
outputs
{{output.addition_record().canonical_commitment.to_hex()}}
UTXO digest: {{Tip5::hash(&output.utxo).to_hex()}}
sender randomness: {{output.sender_randomness.to_hex()}}
receiver digest: {{output.receiver_digest.to_hex()}}
{{output.utxo.get_native_currency_amount().display_n_decimals(5)}} NPT
{% } %}
{% }, AnnouncementType::Unknown(payload) => { %}
Unknown Type {% for chunk in payload.encode().chunks(4) { %}

{% for d in chunk { %} {{ format!("{:016x}", d.value()) }} {% } %}

{% } %}
{% }, } %}

Home | Genesis | Tip {% if self.index == 0 { %} | Previous Announcement {% } else { %} | Previous Announcement {% } %} {% if self.index+1 >= self.num_announcements { %} | Next Announcement {% } else { %} | Next Announcement {% } %}