UNPKG

@imikailoby/sats

Version:

Tiny non-custodial Bitcoin SDK (TS) — keys, addresses, PSBT, provider chain

10 lines (9 loc) 332 B
import type { Provider } from "../types"; /** * Create a provider that tries the given providers in order with simple backoff and timeout. * Backoff schedule: 0ms, 250ms, 500ms. */ export declare function createProviderChain(...providersOrOptions: (Provider | { timeoutMs?: number; backoffMs?: number[]; })[]): Provider;