script_pub_key: ScriptBuf::new(), amount, confirmations: 0, spendable: true, solvable: true, descriptor: None, safe: true, }) .collect(), ) } fn list_lock_unspent(&self) -> Result<Vec<JsonOutPoint>, jsonrpc_core::Error> { Ok( self .state() .locked .iter() .map(|outpoint| (*outpoint).into()) .collect(), ) } fn get_raw_change_address( &self, _address_type: Option<bitcoincore_rpc::json::AddressType>, ) -> Result<Address, jsonrpc_core::Error> { let secp256k1 = Secp256k1::new(); let key_pair = KeyPair::new(&secp256k1, &mut rand::thread_rng()); let (public_key, _parity) = XOnlyPublicKey::from_keypair(&key_pair); let address = Address::p2tr(&secp256k1, public_key, None, self.network); self.state().change_addresses.push(address.clone()); Ok(address) } fn get_descriptor_info( &self, desc: String, ) -> Result<GetDescriptorInfoResult, jsonrpc_core::Error> {
Inscription number 44,984,157
Genesis block 819,061
File type text
File size 1.04 KB
Creation date