UNPKG

xrpl

Version:

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

62 lines (51 loc) 1.32 kB
import { BaseRequest, BaseResponse } from './baseMethod' /** * The `server_definitions` method retrieves information about the definition * enums available in this rippled node. Expects a response in the form of a * {@link ServerDefinitionsResponse}. * * @category Requests */ export interface ServerDefinitionsRequest extends BaseRequest { command: 'server_definitions' /** * The hash of a `server_definitions` response. */ hash?: string } /** * Response expected from an {@link ServerDefinitionsRequest}. * * @category Responses */ export interface ServerDefinitionsResponse extends BaseResponse { result: { hash: string } & ( | { FIELDS: Array< [ string, { nth: number isVLEncoded: boolean isSerialized: boolean isSigningField: boolean type: string }, ] > LEDGER_ENTRY_TYPES: Record<string, number> TRANSACTION_RESULTS: Record<string, number> TRANSACTION_TYPES: Record<string, number> TYPES: Record<string, number> } | { FIELDS?: never LEDGER_ENTRY_TYPES?: never TRANSACTION_RESULTS?: never TRANSACTION_TYPES?: never TYPES?: never } ) }