Optionaloptions: ElectrumXOptionsProtectedmaxProtectednetworkProtectedretriesProtectedretryProtectedtimeoutBroadcast a signed transaction
ProtectedbtcConvert BTC to satoshis
Disconnect from ElectrumX server
ProtectedexecuteProtectedexecuteGet address transaction history
Optionaloptions: AddressHistoryOptionsGet current block height
Get current configuration
Get current active endpoint
Get failed endpoints (for debugging)
Get comprehensive fee estimates for multiple confirmation targets
Get current fee rate (sat/vB) for specific priority
Get network this provider is connected to
ProtectedgetGet normalized fee rate ensuring it's within acceptable bounds
Get all priority levels with normalized rates
ProtectedgetGet the fee source identifier for this provider Override in child classes to specify the correct source
Get server information
Check if provider is connected
ProtectedisValidate Bitcoin address format
ProtectedisValidate transaction ID format
ProtectednormalizeNormalize fee rate from provider response to consistent satsPerVB
ProtectednormalizeConvert legacy fee rate response to normalized format
Reset failed endpoints (to allow retry)
ProtectedsatoshisConvert satoshis to BTC
ProtectedsleepSleep for specified milliseconds
Test connection to all configured endpoints
ProtectedvalidateValidate that fee rate is reasonable for the current network conditions
ElectrumX provider for interacting with Bitcoin network via ElectrumX servers
Remarks
ElectrumXProvider implements a robust connection to ElectrumX servers with:
Features:
Example