UNPKG

@bithomp/xrpl-api

Version:

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

55 lines (54 loc) 1.48 kB
interface FaucetNetworkInterface { url: string; format?: string; } interface AxiosFaucetOptionsDataInterface { destination: string; } interface AxiosFaucetOptionsInterface { method: string; url: string; data?: AxiosFaucetOptionsDataInterface; } interface XrplLabsSuccessResponseInterface { address: string; secret: string; xrp: number; hash: string; code: string; } interface XrplSuccessResponseAccountInterface { xAddress: string; secret?: string; classicAddress: string; address: string; } interface XrplSuccessResponseInterface { account: XrplSuccessResponseAccountInterface; amount: number; balance: number; hash?: string; } export declare const FaucetNetworks: { test: { url: string; format: string; }; dev: { url: string; format: string; }; "xahau-test": { url: string; format: string; }; "xahau-jshooks": { url: string; format: string; }; }; export declare function getFaucetNetwork(network: string): FaucetNetworkInterface | undefined; export declare function foundWallet(network: string | FaucetNetworkInterface, account?: string): Promise<any>; export declare function getAxiosFaucetOptions(network: FaucetNetworkInterface, account?: string): AxiosFaucetOptionsInterface; export declare function xrplLabsToXrplResponse(data: XrplLabsSuccessResponseInterface): XrplSuccessResponseInterface; export {};