You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ripplePathFind.d.ts 1.0KB

1234567891011121314151617181920212223242526272829303132333435
  1. import { Amount, LedgerIndex, Path } from '../common';
  2. import { BaseRequest, BaseResponse } from './baseMethod';
  3. interface SourceCurrencyAmount {
  4. currency: string;
  5. issuer?: string;
  6. }
  7. export interface RipplePathFindRequest extends BaseRequest {
  8. command: 'ripple_path_find';
  9. source_account: string;
  10. destination_account: string;
  11. destination_amount: Amount;
  12. send_max?: Amount;
  13. source_currencies?: SourceCurrencyAmount;
  14. ledger_hash?: string;
  15. ledger_index?: LedgerIndex;
  16. }
  17. interface PathOption {
  18. paths_computed: Path[];
  19. source_amount: Amount;
  20. }
  21. export interface RipplePathFindResponse extends BaseResponse {
  22. result: {
  23. alternatives: PathOption[];
  24. destination_account: string;
  25. destination_currencies: string[];
  26. destination_amount: Amount;
  27. full_reply?: boolean;
  28. id?: number | string;
  29. ledger_current_index?: number;
  30. source_account: string;
  31. validated: boolean;
  32. };
  33. }
  34. export {};
  35. //# sourceMappingURL=ripplePathFind.d.ts.map