@btc-stamps/tx-builder - v0.1.7
    Preparing search index...

    Class BaseProviderAbstract

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    maxRetryDelay: number
    network: Network
    retries: number
    retryDelay: number
    timeout: number

    Methods

    • Execute request with retry logic

      Type Parameters

      • T

      Parameters

      • fn: () => Promise<T>
      • retries: number = ...

      Returns Promise<T>

    • Execute request with timeout

      Type Parameters

      • T

      Parameters

      • fn: () => Promise<T>
      • timeout: number = ...

      Returns Promise<T>

    • Get address transaction history

      Parameters

      • address: string
      • Optionaloptions: AddressHistoryOptions

      Returns Promise<AddressHistory[]>

    • Get normalized fee rate ensuring it's within acceptable bounds

      Parameters

      • priority: "low" | "medium" | "high" = 'medium'

      Returns Promise<NormalizedFeeRate>

    • Get all priority levels with normalized rates

      Returns Promise<
          {
              high: NormalizedFeeRate;
              low: NormalizedFeeRate;
              medium: NormalizedFeeRate;
              urgent?: NormalizedFeeRate;
          },
      >

    • Get the fee source identifier for this provider Override in child classes to specify the correct source

      Returns FeeSource

    • Validate Bitcoin address format

      Parameters

      • address: string

      Returns boolean

    • Normalize fee rate from provider response to consistent satsPerVB

      Parameters

      • rate: any
      • source: FeeSource

      Returns null | NormalizedFeeRate

    • Convert legacy fee rate response to normalized format

      Parameters

      • feeResponse: any
      • source: FeeSource

      Returns null | NormalizedFeeRate

    • Validate that fee rate is reasonable for the current network conditions

      Parameters

      • satsPerVB: number

      Returns boolean