UNPKG

@bithomp/xrpl-api

Version:

A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger

24 lines (23 loc) 898 B
import { Connection, ConnectionOptions } from "./connection"; export * from "./ledger"; export declare let feeCushion: number; export declare let logger: any; export interface ClientOptions extends ConnectionOptions { feeCushion?: number; maxFeeXRP?: string; logger?: any; nativeCurrency?: "XRP" | "XAH"; loadBalancing?: boolean; } export interface ClientConnection { url: string; type?: string; timeout?: number; connectionTimeout?: number; networkID?: number; } export declare function setup(servers: ClientConnection[], options?: ClientOptions): void; export declare function connect(): Promise<void>; export declare function disconnect(): Promise<void>; export declare function getNativeCurrency(): string; export declare function findConnection(type?: string, url?: string, strongFilter?: boolean, hash?: string, networkID?: number): Connection | null;