Crate breez_sdk_spark

Crate breez_sdk_spark 

Source

Modules§

payment_observer
sync_storage

Structs§

AesSuccessActionData
Payload of the AES success action, as received from the LNURL endpoint
AesSuccessActionDataDecrypted
Wrapper for the decrypted AesSuccessActionData payload
Bip21Details
Bip21Extra
BitcoinAddressDetails
Bolt11Invoice
Bolt11InvoiceDetails
Bolt11RouteHint
Bolt11RouteHintHop
Bolt12Invoice
Bolt12InvoiceDetails
Bolt12InvoiceRequestDetails
Bolt12Offer
Bolt12OfferBlindedPath
Bolt12OfferDetails
BreezSdk
BreezSDK is a wrapper around SparkSDK that provides a more structured API with request/response objects and comprehensive error handling.
BurnIssuerTokenRequest
CheckLightningAddressRequest
CheckMessageRequest
CheckMessageResponse
ClaimDepositRequest
ClaimDepositResponse
Config
ConnectRequest
CreateIssuerTokenRequest
Credentials
CurrencyInfo
Details about a supported currency in the fiat rate feed
DepositInfo
EventEmitter
Event publisher that manages event listeners
ExternalInputParser
Configuration for an external input parser
FiatCurrency
Wrapper around the CurrencyInfo of a fiat currency
FreezeIssuerTokenRequest
FreezeIssuerTokenResponse
GetInfoRequest
Request to get the balance of the wallet
GetInfoResponse
Response containing the balance of the wallet
GetPaymentRequest
GetPaymentResponse
GetTokensMetadataRequest
GetTokensMetadataResponse
LightningAddressDetails
LightningAddressInfo
ListFiatCurrenciesResponse
Response from listing fiat currencies
ListFiatRatesResponse
Response from listing fiat rates
ListPaymentsRequest
Request to list payments with optional filters and pagination
ListPaymentsResponse
Response from listing payments
ListUnclaimedDepositsRequest
ListUnclaimedDepositsResponse
LnurlAuthRequestDetails
Wrapped in a [LnurlAuth], this is the result of [parse] when given a LNURL-auth endpoint.
LnurlPayInfo
Represents the payment LNURL info
LnurlPayRequest
LnurlPayRequestDetails
LnurlPayResponse
LnurlWithdrawInfo
Represents the withdraw LNURL info
LnurlWithdrawRequest
LnurlWithdrawRequestDetails
LnurlWithdrawResponse
LocaleOverrides
Locale-specific settings for the representation of a currency
LocalizedName
Localized name of a currency
LogEntry
MessageSuccessActionData
MintIssuerTokenRequest
Payment
Represents a payment (sent or received)
PaymentMetadata
Metadata associated with a payment that cannot be extracted from the Spark operator.
PaymentRequestSource
PrepareLnurlPayRequest
PrepareLnurlPayResponse
PrepareSendPaymentRequest
PrepareSendPaymentResponse
ProvisionalPayment
Rate
Denominator in an exchange rate
ReceivePaymentRequest
ReceivePaymentResponse
RefundDepositRequest
RefundDepositResponse
RegisterLightningAddressRequest
RestClientChainService
RestResponse
SdkBuilder
Builder for creating BreezSdk instances with customizable components.
SendOnchainFeeQuote
SendOnchainSpeedFeeQuote
SendPaymentRequest
SendPaymentResponse
SignMessageRequest
SignMessageResponse
SilentPaymentAddressDetails
SparkAddressDetails
SparkInvoiceDetails
SparkInvoicePaymentDetails
SqliteStorage
SQLite-based storage implementation
Symbol
Settings for the symbol representation of a currency
SyncWalletRequest
Request to sync the wallet with the Spark network
SyncWalletResponse
Response from synchronizing the wallet
TokenBalance
TokenIssuer
TokenMetadata
TxStatus
UnfreezeIssuerTokenRequest
UnfreezeIssuerTokenResponse
UpdateUserSettingsRequest
UrlSuccessActionData
UserSettings
Utxo
WaitForPaymentRequest
WaitForPaymentResponse

Enums§

AesSuccessActionDataResult
Result of decryption of AesSuccessActionData payload
Amount
AssetFilter
A field of ListPaymentsRequest when listing payments filtered by asset
Bip21Error
BitcoinNetwork
ChainServiceError
DepositClaimError
Fee
InputType
KeySetType
LnurlError
Network
OnchainConfirmationSpeed
ParseError
PaymentDetails
PaymentMethod
PaymentObserverError
PaymentStatus
The status of a payment
PaymentType
The type of payment
ProvisionalPaymentDetails
ReceivePaymentMethod
SdkError
Error type for the BreezSdk
SdkEvent
Events emitted by the SDK
Seed
Represents the seed for wallet generation, either as a mnemonic phrase with an optional passphrase or as raw entropy bytes.
SendPaymentMethod
SendPaymentOptions
ServiceConnectivityError
StorageError
Errors that can occur during storage operations
SuccessAction
Supported success action types
SuccessActionProcessed
SuccessAction where contents are ready to be consumed by the caller
UpdateDepositPayload
WaitForPaymentIdentifier

Constants§

DEFAULT_EXTERNAL_INPUT_PARSERS
A list of external input parsers that are used by default. To opt-out, set use_default_external_input_parsers in Config to false.

Traits§

BitcoinChainService
EventListener
Trait for event listeners
FiatService
Trait covering fiat-related functionality
Logger
PaymentObserver
This interface is used to observe outgoing payments before Lightning, Spark and onchain Bitcoin payments. If the implementation returns an error, the payment is cancelled.
RestClient
Storage
Trait for persistent storage

Functions§

connect
Connects to the Spark network using the provided configuration and mnemonic.
default_config
default_storage_path
init_logging
parse_input