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.

pathFind.d.ts 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { Amount, Path } from '../common';
  2. import { BaseRequest, BaseResponse } from './baseMethod';
  3. interface BasePathFindRequest extends BaseRequest {
  4. command: 'path_find';
  5. subcommand: string;
  6. }
  7. export interface PathFindCreateRequest extends BasePathFindRequest {
  8. subcommand: 'create';
  9. source_account: string;
  10. destination_account: string;
  11. destination_amount: Amount;
  12. send_max?: Amount;
  13. paths?: Path[];
  14. }
  15. export interface PathFindCloseRequest extends BasePathFindRequest {
  16. subcommand: 'close';
  17. }
  18. export interface PathFindStatusRequest extends BasePathFindRequest {
  19. subcommand: 'status';
  20. }
  21. export type PathFindRequest = PathFindCreateRequest | PathFindCloseRequest | PathFindStatusRequest;
  22. interface PathOption {
  23. paths_computed: Path[];
  24. source_amount: Amount;
  25. }
  26. export interface PathFindResponse extends BaseResponse {
  27. result: {
  28. alternatives: PathOption[];
  29. destination_account: string;
  30. destination_amount: Amount;
  31. source_account: string;
  32. full_reply: boolean;
  33. id?: number | string;
  34. closed?: true;
  35. status?: true;
  36. };
  37. }
  38. export {};
  39. //# sourceMappingURL=pathFind.d.ts.map