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.

accountobjects.js 1.3KB

123456789101112131415161718192021222324252627
  1. "use strict";
  2. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  3. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  4. return new (P || (P = Promise))(function (resolve, reject) {
  5. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  6. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  7. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  8. step((generator = generator.apply(thisArg, _arguments || [])).next());
  9. });
  10. };
  11. Object.defineProperty(exports, "__esModule", { value: true });
  12. const common_1 = require("../common");
  13. function getAccountObjects(address, options = {}) {
  14. return __awaiter(this, void 0, void 0, function* () {
  15. const response = yield this.request('account_objects', common_1.removeUndefined({
  16. account: address,
  17. type: options.type,
  18. ledger_hash: options.ledgerHash,
  19. ledger_index: options.ledgerIndex,
  20. limit: options.limit,
  21. marker: options.marker
  22. }));
  23. return response;
  24. });
  25. }
  26. exports.default = getAccountObjects;
  27. //# sourceMappingURL=accountobjects.js.map