pub struct Config {
pub liquid_electrum_url: String,
pub bitcoin_electrum_url: String,
pub mempoolspace_url: String,
pub working_dir: String,
pub cache_dir: Option<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>,
pub external_input_parsers: Option<Vec<ExternalInputParser>>,
pub use_default_external_input_parsers: bool,
}
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 the DB and log files are stored.
Prefix can be a relative or absolute path to this directory.
cache_dir: Option<String>
Directory in which the Liquid wallet cache is stored. Defaults to working_dir
network: LiquidNetwork
§payment_timeout_sec: u64
Send payment timeout. See 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 DEFAULT_ZERO_CONF_MAX_SAT
breez_api_key: Option<String>
The Breez API key used for making requests to their mempool service
external_input_parsers: Option<Vec<ExternalInputParser>>
A set of external input parsers that are used by LiquidSdk::parse when the input is not recognized. See ExternalInputParser for more details on how to configure external parsing.
use_default_external_input_parsers: bool
The SDK includes some default external input parsers (DEFAULT_EXTERNAL_INPUT_PARSERS). Set this to false in order to prevent their use.
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
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)
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>
T
in a tonic::Request