.output .into_iter() .nth(satpoint.outpoint.vout.try_into().unwrap()) .expect("current transaction output"), })) } else { Err(anyhow!(format!("parent {parent_id} does not exist"))) } } else { Ok(None) } } } #[cfg(test)] mod tests { use { self::batch::BatchEntry, super::*, serde_yaml::{Mapping, Value}, }; #[test] fn reveal_transaction_pays_fee() { let utxos = vec![(outpoint(1), Amount::from_sat(20000))]; let inscription = inscription("text/plain", "ord"); let commit_address = change(0); let reveal_address = recipient(); let change = [commit_address, change(1)]; let (commit_tx, reveal_tx, _private_key, _) = Batch { satpoint: Some(satpoint(1, 0)), parent_info: None, inscriptions: vec![inscription], destinations: vec![reveal_address], commit_fee_rate: FeeRate::try_from(1.0).unwrap(), reveal_fee_rate: FeeRate::try_from(1.0).unwrap(), no_limit: false,

Inscription #44965913

ID

3b3adcd9da...9495b1efi0

magiceden

0.0002

$ 12.12

Detail

History

Action
Price
Marketplace
From
To
Time

INSCRIBED

-

-

-qpsv

9 months

Sign Up for our Newsletter

And be the first to know about any updates!

OrdinalHub logo

All Rights Reserved OrdinalHub.com 2024

Support

Follow Us