UNPKG

@bigmi/core

Version:

TypeScript library for Bitcoin apps.

7 lines (6 loc) 414 B
import type { ErrorType } from '../errors/utils.js'; import type { BtcRpcRequestFn, BtcRpcRequestOptions, RpcSchema } from '../types/request.js'; export type RequestErrorType = ErrorType; export declare function buildRequest<request extends BtcRpcRequestFn<RpcSchema>>(request: request, options?: BtcRpcRequestOptions): BtcRpcRequestFn; /** @internal */ export declare function shouldRetry(error: Error): boolean;