UNPKG

@nextrope/xrpl

Version:

A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser

41 lines 989 B
import { LedgerIndex } from '../common'; import type { Request } from '.'; export interface BaseRequest { [x: string]: unknown; id?: number | string; command: string; api_version?: number; } export interface LookupByLedgerRequest { ledger_hash?: string; ledger_index?: LedgerIndex; } export interface ResponseWarning { id: number; message: string; details?: { [key: string]: string; }; } export interface BaseResponse { id: number | string; status?: 'success' | string; type: 'response' | string; result: unknown; warning?: 'load'; warnings?: ResponseWarning[]; forwarded?: boolean; api_version?: number; } export interface ErrorResponse { id: number | string; status: 'error'; type: 'response' | string; error: string; error_code?: string; error_message?: string; error_exception?: string; request: Request; api_version?: number; } //# sourceMappingURL=baseMethod.d.ts.map