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.

ledgerData.d.ts 831B

12345678910111213141516171819202122232425262728293031
  1. import { LedgerIndex } from '../common';
  2. import { LedgerEntry } from '../ledger';
  3. import { BaseRequest, BaseResponse } from './baseMethod';
  4. export interface LedgerDataRequest extends BaseRequest {
  5. command: 'ledger_data';
  6. ledger_hash?: string;
  7. ledger_index?: LedgerIndex;
  8. binary?: boolean;
  9. limit?: number;
  10. marker?: unknown;
  11. }
  12. type LabeledLedgerEntry = {
  13. ledgerEntryType: string;
  14. } & LedgerEntry;
  15. export interface BinaryLedgerEntry {
  16. data: string;
  17. }
  18. type State = {
  19. index: string;
  20. } & (BinaryLedgerEntry | LabeledLedgerEntry);
  21. export interface LedgerDataResponse extends BaseResponse {
  22. result: {
  23. ledger_index: number;
  24. ledger_hash: string;
  25. state: State[];
  26. marker?: unknown;
  27. validated?: boolean;
  28. };
  29. }
  30. export {};
  31. //# sourceMappingURL=ledgerData.d.ts.map