Struct breez_sdk_liquid::model::Config
source · pub struct Config {
pub liquid_electrum_url: String,
pub bitcoin_electrum_url: String,
pub mempoolspace_url: String,
pub working_dir: String,
pub network: LiquidNetwork,
pub payment_timeout_sec: u64,
pub zero_conf_min_fee_rate_msat: u32,
pub zero_conf_max_amount_sat: Option<u64>,
pub breez_api_key: Option<String>,
}
Expand description
Configuration for the Liquid SDK
Fields§
§liquid_electrum_url: String
§bitcoin_electrum_url: String
§mempoolspace_url: String
The mempool.space API URL, has to be in the format: https://mempool.space/api
working_dir: String
Directory in which all SDK files (DB, log, cache) are stored.
Prefix can be a relative or absolute path to this directory.
network: LiquidNetwork
§payment_timeout_sec: u64
Send payment timeout. See crate::sdk::LiquidSdk::send_payment
zero_conf_min_fee_rate_msat: u32
Zero-conf minimum accepted fee-rate in millisatoshis per vbyte
zero_conf_max_amount_sat: Option<u64>
Maximum amount in satoshi to accept zero-conf payments with Defaults to [crate::receive_swap::DEFAULT_ZERO_CONF_MAX_SAT]
breez_api_key: Option<String>
The Breez API key used for making requests to their mempool service
Implementations§
Trait Implementations§
impl IntoDartExceptPrimitive for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§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>
Wrap the input message
T
in a tonic::Request