Struct bitcoinwallet_library::WalletImpl
source · pub struct WalletImpl { /* private fields */ }
Implementations§
source§impl WalletImpl
impl WalletImpl
pub fn new(context: &mut WalletContext, wallet: &Arc<Wallet>) -> Self
Trait Implementations§
source§impl AbandonTransaction for WalletImpl
impl AbandonTransaction for WalletImpl
fn abandon_transaction(&mut self, txid: &u256) -> bool
source§impl AbortRescan for WalletImpl
impl AbortRescan for WalletImpl
fn abort_rescan(&mut self)
source§impl BackupWallet for WalletImpl
impl BackupWallet for WalletImpl
fn backup_wallet(&self, filename: &String) -> bool
source§impl CanGetAddresses for WalletImpl
impl CanGetAddresses for WalletImpl
source§impl ChangeWalletPassphrase for WalletImpl
impl ChangeWalletPassphrase for WalletImpl
fn change_wallet_passphrase( &mut self, old_wallet_passphrase: &SecureString, new_wallet_passphrase: &SecureString ) -> bool
source§impl CommitBumpTransaction for WalletImpl
impl CommitBumpTransaction for WalletImpl
fn commit_bump_transaction( &mut self, txid: &u256, mtx: MutableTransaction, errors: &mut Vec<BilingualStr>, bumped_txid: &mut u256 ) -> bool
source§impl CommitTransaction for WalletImpl
impl CommitTransaction for WalletImpl
fn commit_transaction( &mut self, tx: TransactionRef, value_map: WalletValueMap, order_form: WalletOrderForm )
source§impl CreateBumpTransaction for WalletImpl
impl CreateBumpTransaction for WalletImpl
fn create_bump_transaction( &mut self, txid: &u256, coin_control: &CoinControl, errors: &mut Vec<BilingualStr>, old_fee: &mut Amount, new_fee: &mut Amount, mtx: &mut MutableTransaction ) -> bool
source§impl CreateTransaction for WalletImpl
impl CreateTransaction for WalletImpl
fn create_transaction( &mut self, recipients: &Vec<Recipient>, coin_control: &CoinControl, sign: bool, change_pos: &mut i32, fee: &mut Amount, fail_reason: &mut BilingualStr ) -> TransactionRef
source§impl DelAddressBook for WalletImpl
impl DelAddressBook for WalletImpl
source§fn del_address_book(&mut self, dest: &TxDestination) -> bool
fn del_address_book(&mut self, dest: &TxDestination) -> bool
| Remove address.
|
source§impl DisplayAddress for WalletImpl
impl DisplayAddress for WalletImpl
source§fn display_address(&mut self, dest: &TxDestination) -> bool
fn display_address(&mut self, dest: &TxDestination) -> bool
| Display address on external signer
|
source§impl EncryptWallet for WalletImpl
impl EncryptWallet for WalletImpl
fn encrypt_wallet(&mut self, wallet_passphrase: &SecureString) -> bool
source§impl GetAddress for WalletImpl
impl GetAddress for WalletImpl
source§fn get_address(
&mut self,
dest: &TxDestination,
name: *mut String,
is_mine: *mut IsMineType,
purpose: *mut String
) -> bool
fn get_address( &mut self, dest: &TxDestination, name: *mut String, is_mine: *mut IsMineType, purpose: *mut String ) -> bool
| Look up address in wallet, return whether
| exists.
|
source§impl GetAddressReceiveRequests for WalletImpl
impl GetAddressReceiveRequests for WalletImpl
source§fn get_address_receive_requests(&self) -> Vec<String>
fn get_address_receive_requests(&self) -> Vec<String>
| Get receive requests.
|
source§impl GetAddresses for WalletImpl
impl GetAddresses for WalletImpl
source§fn get_addresses(&mut self) -> Vec<WalletAddress>
fn get_addresses(&mut self) -> Vec<WalletAddress>
| Get wallet address list.
|
source§impl GetAvailableBalance for WalletImpl
impl GetAvailableBalance for WalletImpl
fn get_available_balance(&mut self, coin_control: &CoinControl) -> Amount
source§impl GetBalance for WalletImpl
impl GetBalance for WalletImpl
fn get_balance(&mut self) -> Amount
source§impl GetBalances for WalletImpl
impl GetBalances for WalletImpl
fn get_balances(&mut self) -> WalletBalances
source§impl GetCoins for WalletImpl
impl GetCoins for WalletImpl
source§impl GetConfirmTarget for WalletImpl
impl GetConfirmTarget for WalletImpl
source§fn get_confirm_target(&mut self) -> u32
fn get_confirm_target(&mut self) -> u32
| Get tx confirm target.
|
source§impl GetCredit for WalletImpl
impl GetCredit for WalletImpl
source§fn get_credit(&mut self, txout: &TxOut, filter: IsMineFilter) -> Amount
fn get_credit(&mut self, txout: &TxOut, filter: IsMineFilter) -> Amount
| Return credit amount if transaction
| input belongs to wallet.
|
source§impl GetDebit for WalletImpl
impl GetDebit for WalletImpl
source§impl GetDefaultAddressType for WalletImpl
impl GetDefaultAddressType for WalletImpl
source§fn get_default_address_type(&mut self) -> OutputType
fn get_default_address_type(&mut self) -> OutputType
| Get default address type.
|
source§impl GetDefaultMaxTxFee for WalletImpl
impl GetDefaultMaxTxFee for WalletImpl
source§fn get_default_max_tx_fee(&mut self) -> Amount
fn get_default_max_tx_fee(&mut self) -> Amount
| Get max tx fee.
|
source§impl GetMinimumFee for WalletImpl
impl GetMinimumFee for WalletImpl
fn get_minimum_fee( &mut self, tx_bytes: u32, coin_control: &CoinControl, returned_target: *mut i32, reason: *mut FeeReason ) -> Amount
source§impl GetRequiredFee for WalletImpl
impl GetRequiredFee for WalletImpl
fn get_required_fee(&mut self, tx_bytes: u32) -> Amount
source§impl GetTx for WalletImpl
impl GetTx for WalletImpl
source§fn get_tx(&mut self, txid: &u256) -> TransactionRef
fn get_tx(&mut self, txid: &u256) -> TransactionRef
| Get a transaction.
|
source§impl GetWallet for WalletImpl
impl GetWallet for WalletImpl
source§impl GetWalletName for WalletImpl
impl GetWalletName for WalletImpl
fn get_wallet_name(&mut self) -> String
source§impl GetWalletTx for WalletImpl
impl GetWalletTx for WalletImpl
source§fn get_wallet_tx(&self, txid: &u256) -> WalletTx
fn get_wallet_tx(&self, txid: &u256) -> WalletTx
| Get transaction information.
|
source§impl GetWalletTxDetails for WalletImpl
impl GetWalletTxDetails for WalletImpl
source§fn get_wallet_tx_details(
&mut self,
txid: &u256,
tx_status: &mut WalletTxStatus,
order_form: &mut WalletOrderForm,
in_mempool: &mut bool,
num_blocks: &mut i32
) -> WalletTx
fn get_wallet_tx_details( &mut self, txid: &u256, tx_status: &mut WalletTxStatus, order_form: &mut WalletOrderForm, in_mempool: &mut bool, num_blocks: &mut i32 ) -> WalletTx
| Get transaction details.
|
source§impl GetWalletTxs for WalletImpl
impl GetWalletTxs for WalletImpl
source§fn get_wallet_txs(&mut self) -> Vec<WalletTx>
fn get_wallet_txs(&mut self) -> Vec<WalletTx>
| Get list of all wallet transactions.
|
source§impl HandleAddressBookChanged for WalletImpl
impl HandleAddressBookChanged for WalletImpl
source§fn handle_address_book_changed(
&mut self,
fn_: WalletAddressBookChangedFn
) -> Box<dyn Handler>
fn handle_address_book_changed( &mut self, fn_: WalletAddressBookChangedFn ) -> Box<dyn Handler>
| Register handler for address book changed
| messages.
|
source§impl HandleCanGetAddressesChanged for WalletImpl
impl HandleCanGetAddressesChanged for WalletImpl
source§fn handle_can_get_addresses_changed(
&mut self,
fn_: WalletCanGetAddressesChangedFn
) -> Box<dyn Handler>
fn handle_can_get_addresses_changed( &mut self, fn_: WalletCanGetAddressesChangedFn ) -> Box<dyn Handler>
| Register handler for keypool changed
| messages.
|
source§impl HandleShowProgress for WalletImpl
impl HandleShowProgress for WalletImpl
source§impl HandleStatusChanged for WalletImpl
impl HandleStatusChanged for WalletImpl
source§fn handle_status_changed(
&mut self,
fn_: WalletStatusChangedFn
) -> Box<dyn Handler>
fn handle_status_changed( &mut self, fn_: WalletStatusChangedFn ) -> Box<dyn Handler>
| Register handler for status changed
| messages.
|
source§impl HandleTransactionChanged for WalletImpl
impl HandleTransactionChanged for WalletImpl
source§fn handle_transaction_changed(
&mut self,
fn_: WalletTransactionChangedFn
) -> Box<dyn Handler>
fn handle_transaction_changed( &mut self, fn_: WalletTransactionChangedFn ) -> Box<dyn Handler>
| Register handler for transaction changed
| messages.
|
source§impl HandleUnload for WalletImpl
impl HandleUnload for WalletImpl
source§fn handle_unload(&mut self, fn_: WalletUnloadFn) -> Box<dyn Handler>
fn handle_unload(&mut self, fn_: WalletUnloadFn) -> Box<dyn Handler>
| Register handler for unload message.
|
source§impl HandleWatchOnlyChanged for WalletImpl
impl HandleWatchOnlyChanged for WalletImpl
source§fn handle_watch_only_changed(
&mut self,
fn_: WalletWatchOnlyChangedFn
) -> Box<dyn Handler>
fn handle_watch_only_changed( &mut self, fn_: WalletWatchOnlyChangedFn ) -> Box<dyn Handler>
| Register handler for watchonly changed
| messages.
|
source§impl HasExternalSigner for WalletImpl
impl HasExternalSigner for WalletImpl
source§fn has_external_signer(&mut self) -> bool
fn has_external_signer(&mut self) -> bool
| Return whether wallet uses an external
| signer.
|
source§impl HaveWatchOnly for WalletImpl
impl HaveWatchOnly for WalletImpl
source§fn have_watch_only(&mut self) -> bool
fn have_watch_only(&mut self) -> bool
| Return whether wallet has watch only
| keys.
|
source§impl HdEnabled for WalletImpl
impl HdEnabled for WalletImpl
source§fn hd_enabled(&mut self) -> bool
fn hd_enabled(&mut self) -> bool
| Return whether HD enabled.
|
source§impl IsCrypted for WalletImpl
impl IsCrypted for WalletImpl
source§fn is_crypted(&self) -> bool
fn is_crypted(&self) -> bool
| Return whether wallet is encrypted.
|
source§impl IsLegacy for WalletImpl
impl IsLegacy for WalletImpl
source§impl IsLocked for WalletImpl
impl IsLocked for WalletImpl
source§impl IsLockedCoin for WalletImpl
impl IsLockedCoin for WalletImpl
source§fn is_locked_coin(&mut self, output: &OutPoint) -> bool
fn is_locked_coin(&mut self, output: &OutPoint) -> bool
| Return whether coin is locked.
|
source§impl IsSpendable for WalletImpl
impl IsSpendable for WalletImpl
source§fn is_spendable(&mut self, dest: &TxDestination) -> bool
fn is_spendable(&mut self, dest: &TxDestination) -> bool
| Return whether wallet has private key.
|
source§impl ListCoins for WalletImpl
impl ListCoins for WalletImpl
source§fn list_coins(&mut self) -> CoinsList
fn list_coins(&mut self) -> CoinsList
| Return AvailableCoins + LockedCoins
| grouped by wallet address. (put change
| in one group with wallet address)
|
source§impl ListLockedCoins for WalletImpl
impl ListLockedCoins for WalletImpl
fn list_locked_coins(&self, outputs: &mut Vec<OutPoint>)
source§impl LockCoin for WalletImpl
impl LockCoin for WalletImpl
source§impl PrivateKeysDisabled for WalletImpl
impl PrivateKeysDisabled for WalletImpl
source§fn private_keys_disabled(&mut self) -> bool
fn private_keys_disabled(&mut self) -> bool
| Return whether private keys enabled.
|
source§impl SetAddressBook for WalletImpl
impl SetAddressBook for WalletImpl
source§fn set_address_book(
&mut self,
dest: &TxDestination,
name: &String,
purpose: &String
) -> bool
fn set_address_book( &mut self, dest: &TxDestination, name: &String, purpose: &String ) -> bool
| Add or update address.
|
source§impl SetAddressReceiveRequest for WalletImpl
impl SetAddressReceiveRequest for WalletImpl
source§fn set_address_receive_request(
&mut self,
dest: &TxDestination,
id: &String,
value: &String
) -> bool
fn set_address_receive_request( &mut self, dest: &TxDestination, id: &String, value: &String ) -> bool
| Save or remove receive request.
|
source§impl SignBumpTransaction for WalletImpl
impl SignBumpTransaction for WalletImpl
fn sign_bump_transaction(&mut self, mtx: &mut MutableTransaction) -> bool
source§impl SignMessage for WalletImpl
impl SignMessage for WalletImpl
source§fn sign_message(
&self,
message: &String,
pkhash: &PKHash,
str_sig: &mut String
) -> SigningResult
fn sign_message( &self, message: &String, pkhash: &PKHash, str_sig: &mut String ) -> SigningResult
| Sign a message with the given script
|
source§impl TransactionCanBeAbandoned for WalletImpl
impl TransactionCanBeAbandoned for WalletImpl
source§fn transaction_can_be_abandoned(&self, txid: &u256) -> bool
fn transaction_can_be_abandoned(&self, txid: &u256) -> bool
| Return whether transaction can be abandoned.
|
source§impl TransactionCanBeBumped for WalletImpl
impl TransactionCanBeBumped for WalletImpl
source§fn transaction_can_be_bumped(&self, txid: &u256) -> bool
fn transaction_can_be_bumped(&self, txid: &u256) -> bool
| Return whether transaction can be bumped.
|
source§impl TryGetBalances for WalletImpl
impl TryGetBalances for WalletImpl
source§fn try_get_balances(
&mut self,
balances: &mut WalletBalances,
block_hash: &mut u256
) -> bool
fn try_get_balances( &mut self, balances: &mut WalletBalances, block_hash: &mut u256 ) -> bool
| Get balances if possible without blocking.
|
source§impl TryGetTxStatus for WalletImpl
impl TryGetTxStatus for WalletImpl
source§fn try_get_tx_status(
&mut self,
txid: &u256,
tx_status: &mut WalletTxStatus,
num_blocks: &mut i32,
block_time: &mut i64
) -> bool
fn try_get_tx_status( &mut self, txid: &u256, tx_status: &mut WalletTxStatus, num_blocks: &mut i32, block_time: &mut i64 ) -> bool
| Try to get updated status for a particular
| transaction, if possible without blocking.
|
source§impl TxinIsMine for WalletImpl
impl TxinIsMine for WalletImpl
source§fn txin_is_mine(&mut self, txin: &TxIn) -> IsMineType
fn txin_is_mine(&mut self, txin: &TxIn) -> IsMineType
| Return whether transaction input belongs
| to wallet.
|
source§impl TxoutIsMine for WalletImpl
impl TxoutIsMine for WalletImpl
source§fn txout_is_mine(&mut self, txout: &TxOut) -> IsMineType
fn txout_is_mine(&mut self, txout: &TxOut) -> IsMineType
| Return whether transaction output
| belongs to wallet.
|
source§impl Unlock for WalletImpl
impl Unlock for WalletImpl
source§impl UnlockCoin for WalletImpl
impl UnlockCoin for WalletImpl
fn unlock_coin(&mut self, output: &OutPoint) -> bool
source§impl WalletFillPSBT for WalletImpl
impl WalletFillPSBT for WalletImpl
source§impl WalletGetNewDestination for WalletImpl
impl WalletGetNewDestination for WalletImpl
source§fn get_new_destination(
&mut self,
ty: OutputType,
label: String,
dest: &mut TxDestination,
_error: &mut BilingualStr
) -> bool
fn get_new_destination( &mut self, ty: OutputType, label: String, dest: &mut TxDestination, _error: &mut BilingualStr ) -> bool
| Get a new address.
|
impl WalletInterface for WalletImpl
Auto Trait Implementations§
impl !RefUnwindSafe for WalletImpl
impl !Send for WalletImpl
impl !Sync for WalletImpl
impl Unpin for WalletImpl
impl !UnwindSafe for WalletImpl
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more