UNPKG

@bigmi/core

Version:

TypeScript library for Bitcoin apps.

6 lines (5 loc) 397 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; export declare function shouldRetry(error: Error): boolean;