@super-protocol/sdk-js 0.6.1 → 0.7.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,6 +20,12 @@ declare class BlockchainConnector {
20
20
  * Returns balance of blockchain platform tokens in wei
21
21
  */
22
22
  static getBalance(address: string): Promise<string>;
23
+ /**
24
+ * Returns transactions receipt
25
+ * @param txHash - transaction hash
26
+ * @returns {Promise<TransactionReceipt>} - Transaction receipt
27
+ */
28
+ static getTransactionReceipt(txHash: string): Promise<TransactionReceipt>;
23
29
  /**
24
30
  * Returns balance of blockchain platform tokens in wei
25
31
  */
@@ -148,6 +148,23 @@ var BlockchainConnector = /** @class */ (function () {
148
148
  });
149
149
  });
150
150
  };
151
+ /**
152
+ * Returns transactions receipt
153
+ * @param txHash - transaction hash
154
+ * @returns {Promise<TransactionReceipt>} - Transaction receipt
155
+ */
156
+ BlockchainConnector.getTransactionReceipt = function (txHash) {
157
+ return __awaiter(this, void 0, void 0, function () {
158
+ return __generator(this, function (_a) {
159
+ switch (_a.label) {
160
+ case 0:
161
+ (0, utils_1.checkIfInitialized)();
162
+ return [4 /*yield*/, store_1.default.web3.eth.getTransactionReceipt(txHash)];
163
+ case 1: return [2 /*return*/, _a.sent()];
164
+ }
165
+ });
166
+ });
167
+ };
151
168
  /**
152
169
  * Returns balance of blockchain platform tokens in wei
153
170
  */