mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-29 10:54:36 +01:00
feat: add lowball broadcast support with API key for all transaction types (#489)
This commit is contained in:
@@ -234,6 +234,7 @@ fun asConfig(config: ReadableMap): Config? {
|
||||
} else {
|
||||
null
|
||||
}
|
||||
val breezApiKey = if (hasNonNullKey(config, "breezApiKey")) config.getString("breezApiKey") else null
|
||||
return Config(
|
||||
liquidElectrumUrl,
|
||||
bitcoinElectrumUrl,
|
||||
@@ -243,6 +244,7 @@ fun asConfig(config: ReadableMap): Config? {
|
||||
paymentTimeoutSec,
|
||||
zeroConfMinFeeRateMsat,
|
||||
zeroConfMaxAmountSat,
|
||||
breezApiKey,
|
||||
)
|
||||
}
|
||||
|
||||
@@ -256,6 +258,7 @@ fun readableMapOf(config: Config): ReadableMap =
|
||||
"paymentTimeoutSec" to config.paymentTimeoutSec,
|
||||
"zeroConfMinFeeRateMsat" to config.zeroConfMinFeeRateMsat,
|
||||
"zeroConfMaxAmountSat" to config.zeroConfMaxAmountSat,
|
||||
"breezApiKey" to config.breezApiKey,
|
||||
)
|
||||
|
||||
fun asConfigList(arr: ReadableArray): List<Config> {
|
||||
|
||||
Reference in New Issue
Block a user