pub struct Bdk {Show 16 fields
pub fee_percent: f32,
pub reserve_fee_min: Amount,
pub network: Option<String>,
pub chain_source_type: Option<String>,
pub esplora_url: Option<String>,
pub esplora_parallel_requests: usize,
pub bitcoind_rpc_host: Option<String>,
pub bitcoind_rpc_port: Option<u16>,
pub bitcoind_rpc_user: Option<String>,
pub bitcoind_rpc_password: Option<String>,
pub mnemonic: Option<String>,
pub batch_config: BatchConfig,
pub num_confs: u32,
pub min_receive_amount_sat: u64,
pub min_send_amount_sat: u64,
pub sync_interval_secs: u64,
}Fields§
§fee_percent: f32Fee percentage (e.g., 0.02 for 2%)
reserve_fee_min: AmountMinimum reserve fee
network: Option<String>Bitcoin network (mainnet, testnet, signet, regtest)
chain_source_type: Option<String>Chain source type (“esplora” or “bitcoinrpc”; defaults to “bitcoinrpc”)
esplora_url: Option<String>Esplora URL (when chain_source_type = “esplora”)
esplora_parallel_requests: usizeNumber of parallel Esplora requests during wallet sync.
Public Esplora servers often rate-limit bursty clients, so the default is conservative. Increase only when using a private or higher-limit Esplora server.
bitcoind_rpc_host: Option<String>Bitcoin RPC host (when chain_source_type = “bitcoinrpc”)
bitcoind_rpc_port: Option<u16>Bitcoin RPC port
bitcoind_rpc_user: Option<String>Bitcoin RPC user
bitcoind_rpc_password: Option<String>Bitcoin RPC password
mnemonic: Option<String>BIP-39 mnemonic for the BDK wallet
batch_config: BatchConfigBatch processor configuration
num_confs: u32Number of confirmations required for incoming payments.
Must be >= 1. A value of 0 is rejected at startup because the confirmation check still requires the transaction to have an on-chain anchor (i.e. 0 would mean “confirmed in any block”, not “accept unconfirmed”). Use 1 for “accept any confirmation”.
min_receive_amount_sat: u64Minimum receive amount in sats
min_send_amount_sat: u64Minimum send amount in sats
sync_interval_secs: u64Wallet sync interval in seconds
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bdk
impl<'de> Deserialize<'de> for Bdk
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl OnchainBackendSetup for Bdk
impl OnchainBackendSetup for Bdk
fn setup<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
settings: &'life1 Settings,
_unit: CurrencyUnit,
_runtime: Option<Arc<Runtime>>,
work_dir: &'life2 Path,
kv_store: Option<Arc<dyn KVStore<Err = Error> + Send + Sync>>,
) -> Pin<Box<dyn Future<Output = Result<CdkBdk>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for Bdk
impl RefUnwindSafe for Bdk
impl Send for Bdk
impl Sync for Bdk
impl Unpin for Bdk
impl UnsafeUnpin for Bdk
impl UnwindSafe for Bdk
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request