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.

check-cancel.js 811B

123456789101112131415161718192021222324
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const utils_1 = require("./utils");
  4. const common_1 = require("../common");
  5. function createCheckCancelTransaction(account, cancel) {
  6. const txJSON = {
  7. Account: account,
  8. TransactionType: 'CheckCancel',
  9. CheckID: cancel.checkID
  10. };
  11. return txJSON;
  12. }
  13. function prepareCheckCancel(address, checkCancel, instructions = {}) {
  14. try {
  15. common_1.validate.prepareCheckCancel({ address, checkCancel, instructions });
  16. const txJSON = createCheckCancelTransaction(address, checkCancel);
  17. return utils_1.prepareTransaction(txJSON, this, instructions);
  18. }
  19. catch (e) {
  20. return Promise.reject(e);
  21. }
  22. }
  23. exports.default = prepareCheckCancel;
  24. //# sourceMappingURL=check-cancel.js.map