bitcoin_data_dir: Some(bitcoin_data_dir), data_dir: Some(tmpdir.path().into()), rpc_url: Some(format!("127.0.0.1:{rpc_port}")), index_sats: true, ..Options::default() }; for attempt in 0.. { if options.bitcoin_rpc_client().is_ok() { break; } if attempt == 100 { panic!("Bitcoin Core RPC did not respond"); } thread::sleep(Duration::from_millis(50)); } super::wallet::Wallet::Create(super::wallet::create::Create { passphrase: "".into(), }) .run(options.clone())?; let rpc_client = options.bitcoin_rpc_client_for_wallet_command(false)?; let address = rpc_client .get_new_address(None, Some(bitcoincore_rpc::json::AddressType::Bech32m))? .require_network(Network::Regtest)?; rpc_client.generate_to_address(101, &address)?; for file in self.inscriptions { Arguments { options: options.clone(), subcommand: Subcommand::Wallet(super::wallet::Wallet::Inscribe( super::wallet::inscribe::Inscribe {
Inscription number 44,982,713
Genesis block 819,059
File type text
File size 1.04 KB
Creation date Feb 29,2024 4:2 am