UNPKG

opnet

Version:

The perfect library for building Bitcoin-based applications.

7 lines (6 loc) 270 B
import { WebSocketErrorCode } from './types/WebSocketErrorCodes.js'; export declare class OPNetError extends Error { readonly code: WebSocketErrorCode; readonly data?: Uint8Array; constructor(code: WebSocketErrorCode, message?: string, data?: Uint8Array); }