@nextrope/xrpl
Version:
A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser
33 lines • 1.07 kB
TypeScript
import { Amount, Path } from '../common';
import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod';
export interface SourceCurrencyAmount {
currency: string;
issuer?: string;
}
export interface RipplePathFindRequest extends BaseRequest, LookupByLedgerRequest {
command: 'ripple_path_find';
source_account: string;
destination_account: string;
destination_amount: Amount;
send_max?: Amount;
source_currencies?: SourceCurrencyAmount[];
domain?: string;
}
export interface RipplePathFindPathOption {
paths_computed: Path[];
source_amount: Amount;
}
export interface RipplePathFindResponse extends BaseResponse {
result: {
alternatives: RipplePathFindPathOption[];
destination_account: string;
destination_currencies: string[];
destination_amount: Amount;
full_reply?: boolean;
id?: number | string;
ledger_current_index?: number;
source_account: string;
validated: boolean;
};
}
//# sourceMappingURL=ripplePathFind.d.ts.map