@bigmi/core
Version:
TypeScript library for Bitcoin apps.
6 lines (5 loc) • 433 B
TypeScript
import type { Transport, TransportConfig } from '../types/transport.js';
/**
* @description Creates an transport intended to be used with a client.
*/
export declare function createTransport<type extends string, rpcAttributes extends Record<string, any>>({ key, methods, name, request, retryCount, retryDelay, timeout, type, }: TransportConfig<type>, value?: rpcAttributes | undefined): ReturnType<Transport<type, rpcAttributes>>;