@cobo/cobo-waas2 1.19.0 → 1.19.1
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.
- package/README.md +4 -1
- package/dist/ApiClient.js +1 -1
- package/dist/api/TransactionsApi.js +92 -0
- package/dist/index.js +7 -0
- package/dist/model/FILBase.js +0 -1
- package/dist/model/ListTransactionApprovalDetails200Response.js +107 -0
- package/dist/model/SOLBase.js +0 -1
- package/docs/ListTransactionApprovalDetails200Response.md +9 -0
- package/docs/TransactionsApi.md +106 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](http
|
|
|
15
15
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
16
16
|
|
|
17
17
|
- API version: v2
|
|
18
|
-
- Package version: 1.19.
|
|
18
|
+
- Package version: 1.19.1
|
|
19
19
|
- Generator version: 7.6.0
|
|
20
20
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
21
21
|
For more information, please visit [https://www.cobo.com/waas](https://www.cobo.com/waas)
|
|
@@ -152,7 +152,9 @@ Class | Method | HTTP request | Description
|
|
|
152
152
|
*CoboWaas2.TransactionsApi* | [**createTransferTransaction**](docs/TransactionsApi.md#createTransferTransaction) | **POST** /transactions/transfer | Transfer token
|
|
153
153
|
*CoboWaas2.TransactionsApi* | [**dropTransactionById**](docs/TransactionsApi.md#dropTransactionById) | **POST** /transactions/{transaction_id}/drop | Drop transaction
|
|
154
154
|
*CoboWaas2.TransactionsApi* | [**estimateFee**](docs/TransactionsApi.md#estimateFee) | **POST** /transactions/estimate_fee | Estimate transaction fee
|
|
155
|
+
*CoboWaas2.TransactionsApi* | [**getTransactionApprovalDetail**](docs/TransactionsApi.md#getTransactionApprovalDetail) | **GET** /transactions/{transaction_id}/approval_detail | Get transaction approval details
|
|
155
156
|
*CoboWaas2.TransactionsApi* | [**getTransactionById**](docs/TransactionsApi.md#getTransactionById) | **GET** /transactions/{transaction_id} | Get transaction information
|
|
157
|
+
*CoboWaas2.TransactionsApi* | [**listTransactionApprovalDetails**](docs/TransactionsApi.md#listTransactionApprovalDetails) | **GET** /transactions/approval_details | List transaction approval details
|
|
156
158
|
*CoboWaas2.TransactionsApi* | [**listTransactions**](docs/TransactionsApi.md#listTransactions) | **GET** /transactions | List all transactions
|
|
157
159
|
*CoboWaas2.TransactionsApi* | [**resendTransactionById**](docs/TransactionsApi.md#resendTransactionById) | **POST** /transactions/{transaction_id}/resend | Resend transaction
|
|
158
160
|
*CoboWaas2.TransactionsApi* | [**signAndBroadcastTransactionById**](docs/TransactionsApi.md#signAndBroadcastTransactionById) | **POST** /transactions/{transaction_id}/sign_and_broadcast | Sign and broadcast transaction
|
|
@@ -467,6 +469,7 @@ Class | Method | HTTP request | Description
|
|
|
467
469
|
- [CoboWaas2.ListTokenListingRequests200Response](docs/ListTokenListingRequests200Response.md)
|
|
468
470
|
- [CoboWaas2.ListTopUpPayers200Response](docs/ListTopUpPayers200Response.md)
|
|
469
471
|
- [CoboWaas2.ListTopUpPayers200ResponseDataInner](docs/ListTopUpPayers200ResponseDataInner.md)
|
|
472
|
+
- [CoboWaas2.ListTransactionApprovalDetails200Response](docs/ListTransactionApprovalDetails200Response.md)
|
|
470
473
|
- [CoboWaas2.ListTransactions200Response](docs/ListTransactions200Response.md)
|
|
471
474
|
- [CoboWaas2.ListTssRequests200Response](docs/ListTssRequests200Response.md)
|
|
472
475
|
- [CoboWaas2.ListUtxos200Response](docs/ListUtxos200Response.md)
|
package/dist/ApiClient.js
CHANGED
|
@@ -13,8 +13,10 @@ var _CreateTransferTransaction201Response = _interopRequireDefault(require("../m
|
|
|
13
13
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
14
14
|
var _EstimateFeeParams = _interopRequireDefault(require("../model/EstimateFeeParams"));
|
|
15
15
|
var _EstimatedFee = _interopRequireDefault(require("../model/EstimatedFee"));
|
|
16
|
+
var _ListTransactionApprovalDetails200Response = _interopRequireDefault(require("../model/ListTransactionApprovalDetails200Response"));
|
|
16
17
|
var _ListTransactions200Response = _interopRequireDefault(require("../model/ListTransactions200Response"));
|
|
17
18
|
var _MessageSignParams = _interopRequireDefault(require("../model/MessageSignParams"));
|
|
19
|
+
var _TransactionApprovalDetail = _interopRequireDefault(require("../model/TransactionApprovalDetail"));
|
|
18
20
|
var _TransactionDetail = _interopRequireDefault(require("../model/TransactionDetail"));
|
|
19
21
|
var _TransactionRbf = _interopRequireDefault(require("../model/TransactionRbf"));
|
|
20
22
|
var _TransactionResend = _interopRequireDefault(require("../model/TransactionResend"));
|
|
@@ -410,6 +412,50 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
410
412
|
});
|
|
411
413
|
}
|
|
412
414
|
|
|
415
|
+
/**
|
|
416
|
+
* Get transaction approval details
|
|
417
|
+
* This operation retrieves detailed approval information about a specified transaction.
|
|
418
|
+
* @param {String} transaction_id The transaction ID.
|
|
419
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TransactionApprovalDetail} and HTTP response
|
|
420
|
+
*/
|
|
421
|
+
}, {
|
|
422
|
+
key: "getTransactionApprovalDetailWithHttpInfo",
|
|
423
|
+
value: function getTransactionApprovalDetailWithHttpInfo(transaction_id) {
|
|
424
|
+
var postBody = null;
|
|
425
|
+
if (postBody && postBody.toJSON) {
|
|
426
|
+
postBody = postBody.toJSON();
|
|
427
|
+
}
|
|
428
|
+
// verify the required parameter 'transaction_id' is set
|
|
429
|
+
if (transaction_id === undefined || transaction_id === null) {
|
|
430
|
+
throw new Error("Missing the required parameter 'transaction_id' when calling getTransactionApprovalDetail");
|
|
431
|
+
}
|
|
432
|
+
var pathParams = {
|
|
433
|
+
'transaction_id': transaction_id
|
|
434
|
+
};
|
|
435
|
+
var queryParams = {};
|
|
436
|
+
var headerParams = {};
|
|
437
|
+
var formParams = {};
|
|
438
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
439
|
+
var contentTypes = [];
|
|
440
|
+
var accepts = ['application/json'];
|
|
441
|
+
var returnType = _TransactionApprovalDetail["default"];
|
|
442
|
+
return this.apiClient.callApi('/transactions/{transaction_id}/approval_detail', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Get transaction approval details
|
|
447
|
+
* This operation retrieves detailed approval information about a specified transaction.
|
|
448
|
+
* @param {String} transaction_id The transaction ID.
|
|
449
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TransactionApprovalDetail}
|
|
450
|
+
*/
|
|
451
|
+
}, {
|
|
452
|
+
key: "getTransactionApprovalDetail",
|
|
453
|
+
value: function getTransactionApprovalDetail(transaction_id) {
|
|
454
|
+
return this.getTransactionApprovalDetailWithHttpInfo(transaction_id).then(function (response_and_data) {
|
|
455
|
+
return response_and_data.data;
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
|
|
413
459
|
/**
|
|
414
460
|
* Get transaction information
|
|
415
461
|
* This operation retrieves detailed information about a specified transaction, such as the transaction status, source address, destination address, and timestamp.
|
|
@@ -454,6 +500,52 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
454
500
|
});
|
|
455
501
|
}
|
|
456
502
|
|
|
503
|
+
/**
|
|
504
|
+
* List transaction approval details
|
|
505
|
+
* This operation retrieves detailed approval information for all transactions.
|
|
506
|
+
* @param {Object} opts Optional parameters
|
|
507
|
+
* @param {String} [transaction_ids] A list of transaction IDs, separated by comma.
|
|
508
|
+
* @param {String} [cobo_ids] A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
|
|
509
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTransactionApprovalDetails200Response} and HTTP response
|
|
510
|
+
*/
|
|
511
|
+
}, {
|
|
512
|
+
key: "listTransactionApprovalDetailsWithHttpInfo",
|
|
513
|
+
value: function listTransactionApprovalDetailsWithHttpInfo(opts) {
|
|
514
|
+
opts = opts || {};
|
|
515
|
+
var postBody = null;
|
|
516
|
+
if (postBody && postBody.toJSON) {
|
|
517
|
+
postBody = postBody.toJSON();
|
|
518
|
+
}
|
|
519
|
+
var pathParams = {};
|
|
520
|
+
var queryParams = {
|
|
521
|
+
'transaction_ids': opts['transaction_ids'],
|
|
522
|
+
'cobo_ids': opts['cobo_ids']
|
|
523
|
+
};
|
|
524
|
+
var headerParams = {};
|
|
525
|
+
var formParams = {};
|
|
526
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
527
|
+
var contentTypes = [];
|
|
528
|
+
var accepts = ['application/json'];
|
|
529
|
+
var returnType = _ListTransactionApprovalDetails200Response["default"];
|
|
530
|
+
return this.apiClient.callApi('/transactions/approval_details', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* List transaction approval details
|
|
535
|
+
* This operation retrieves detailed approval information for all transactions.
|
|
536
|
+
* @param {Object} opts Optional parameters
|
|
537
|
+
* @param {String} opts.transaction_ids A list of transaction IDs, separated by comma.
|
|
538
|
+
* @param {String} opts.cobo_ids A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
|
|
539
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTransactionApprovalDetails200Response}
|
|
540
|
+
*/
|
|
541
|
+
}, {
|
|
542
|
+
key: "listTransactionApprovalDetails",
|
|
543
|
+
value: function listTransactionApprovalDetails(opts) {
|
|
544
|
+
return this.listTransactionApprovalDetailsWithHttpInfo(opts).then(function (response_and_data) {
|
|
545
|
+
return response_and_data.data;
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
|
|
457
549
|
/**
|
|
458
550
|
* List all transactions
|
|
459
551
|
* This operation retrieves all the transactions under your organization. You can filter the results by request ID, Cobo ID, transaction ID, transaction hash, type, status, and timestamps. You can also paginate and sort your query results.
|
package/dist/index.js
CHANGED
|
@@ -1539,6 +1539,12 @@ Object.defineProperty(exports, "ListTopUpPayers200ResponseDataInner", {
|
|
|
1539
1539
|
return _ListTopUpPayers200ResponseDataInner["default"];
|
|
1540
1540
|
}
|
|
1541
1541
|
});
|
|
1542
|
+
Object.defineProperty(exports, "ListTransactionApprovalDetails200Response", {
|
|
1543
|
+
enumerable: true,
|
|
1544
|
+
get: function get() {
|
|
1545
|
+
return _ListTransactionApprovalDetails200Response["default"];
|
|
1546
|
+
}
|
|
1547
|
+
});
|
|
1542
1548
|
Object.defineProperty(exports, "ListTransactions200Response", {
|
|
1543
1549
|
enumerable: true,
|
|
1544
1550
|
get: function get() {
|
|
@@ -4065,6 +4071,7 @@ var _ListTokenBalancesForFeeStation200ResponseDataInner = _interopRequireDefault
|
|
|
4065
4071
|
var _ListTokenListingRequests200Response = _interopRequireDefault(require("./model/ListTokenListingRequests200Response"));
|
|
4066
4072
|
var _ListTopUpPayers200Response = _interopRequireDefault(require("./model/ListTopUpPayers200Response"));
|
|
4067
4073
|
var _ListTopUpPayers200ResponseDataInner = _interopRequireDefault(require("./model/ListTopUpPayers200ResponseDataInner"));
|
|
4074
|
+
var _ListTransactionApprovalDetails200Response = _interopRequireDefault(require("./model/ListTransactionApprovalDetails200Response"));
|
|
4068
4075
|
var _ListTransactions200Response = _interopRequireDefault(require("./model/ListTransactions200Response"));
|
|
4069
4076
|
var _ListTssRequests200Response = _interopRequireDefault(require("./model/ListTssRequests200Response"));
|
|
4070
4077
|
var _ListUtxos200Response = _interopRequireDefault(require("./model/ListUtxos200Response"));
|
package/dist/model/FILBase.js
CHANGED
|
@@ -28,7 +28,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
var FILBase = /*#__PURE__*/function () {
|
|
29
29
|
/**
|
|
30
30
|
* Constructs a new <code>FILBase</code>.
|
|
31
|
-
* The transaction gas base based on the FIL fee model.
|
|
32
31
|
* @alias module:model/FILBase
|
|
33
32
|
*/
|
|
34
33
|
function FILBase() {
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _TransactionApprovalDetail = _interopRequireDefault(require("./TransactionApprovalDetail"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* Cobo Wallet as a Service 2.0
|
|
20
|
+
*
|
|
21
|
+
* Contact: help@cobo.com
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The ListTransactionApprovalDetails200Response model module.
|
|
30
|
+
* @module model/ListTransactionApprovalDetails200Response
|
|
31
|
+
*/
|
|
32
|
+
var ListTransactionApprovalDetails200Response = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>ListTransactionApprovalDetails200Response</code>.
|
|
35
|
+
* @alias module:model/ListTransactionApprovalDetails200Response
|
|
36
|
+
*/
|
|
37
|
+
function ListTransactionApprovalDetails200Response() {
|
|
38
|
+
_classCallCheck(this, ListTransactionApprovalDetails200Response);
|
|
39
|
+
ListTransactionApprovalDetails200Response.initialize(this);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Initializes the fields of this object.
|
|
44
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
45
|
+
* Only for internal use.
|
|
46
|
+
*/
|
|
47
|
+
return _createClass(ListTransactionApprovalDetails200Response, null, [{
|
|
48
|
+
key: "initialize",
|
|
49
|
+
value: function initialize(obj) {}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Constructs a <code>ListTransactionApprovalDetails200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
53
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
54
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
55
|
+
* @param {module:model/ListTransactionApprovalDetails200Response} obj Optional instance to populate.
|
|
56
|
+
* @return {module:model/ListTransactionApprovalDetails200Response} The populated <code>ListTransactionApprovalDetails200Response</code> instance.
|
|
57
|
+
*/
|
|
58
|
+
}, {
|
|
59
|
+
key: "constructFromObject",
|
|
60
|
+
value: function constructFromObject(data, obj) {
|
|
61
|
+
if (data) {
|
|
62
|
+
obj = obj || new ListTransactionApprovalDetails200Response();
|
|
63
|
+
if (data.hasOwnProperty('data')) {
|
|
64
|
+
obj['data'] = _ApiClient["default"].convertToType(data['data'], [_TransactionApprovalDetail["default"]]);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return obj;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Validates the JSON data with respect to <code>ListTransactionApprovalDetails200Response</code>.
|
|
72
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
73
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListTransactionApprovalDetails200Response</code>.
|
|
74
|
+
*/
|
|
75
|
+
}, {
|
|
76
|
+
key: "validateJSON",
|
|
77
|
+
value: function validateJSON(data) {
|
|
78
|
+
if (data['data']) {
|
|
79
|
+
// data not null
|
|
80
|
+
// ensure the json data is an array
|
|
81
|
+
if (!Array.isArray(data['data'])) {
|
|
82
|
+
throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
|
|
83
|
+
}
|
|
84
|
+
// validate the optional field `data` (array)
|
|
85
|
+
var _iterator = _createForOfIteratorHelper(data['data']),
|
|
86
|
+
_step;
|
|
87
|
+
try {
|
|
88
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
89
|
+
var item = _step.value;
|
|
90
|
+
_TransactionApprovalDetail["default"].validateJSON(item);
|
|
91
|
+
}
|
|
92
|
+
} catch (err) {
|
|
93
|
+
_iterator.e(err);
|
|
94
|
+
} finally {
|
|
95
|
+
_iterator.f();
|
|
96
|
+
}
|
|
97
|
+
;
|
|
98
|
+
}
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
}]);
|
|
102
|
+
}();
|
|
103
|
+
/**
|
|
104
|
+
* @member {Array.<module:model/TransactionApprovalDetail>} data
|
|
105
|
+
*/
|
|
106
|
+
ListTransactionApprovalDetails200Response.prototype['data'] = undefined;
|
|
107
|
+
var _default = exports["default"] = ListTransactionApprovalDetails200Response;
|
package/dist/model/SOLBase.js
CHANGED
|
@@ -28,7 +28,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
var SOLBase = /*#__PURE__*/function () {
|
|
29
29
|
/**
|
|
30
30
|
* Constructs a new <code>SOLBase</code>.
|
|
31
|
-
* The transaction base fee based on the SOL fee model.
|
|
32
31
|
* @alias module:model/SOLBase
|
|
33
32
|
*/
|
|
34
33
|
function SOLBase() {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CoboWaas2.ListTransactionApprovalDetails200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**data** | [**[TransactionApprovalDetail]**](TransactionApprovalDetail.md) | | [optional]
|
|
8
|
+
|
|
9
|
+
|
package/docs/TransactionsApi.md
CHANGED
|
@@ -12,7 +12,9 @@ Method | HTTP request | Description
|
|
|
12
12
|
[**createTransferTransaction**](TransactionsApi.md#createTransferTransaction) | **POST** /transactions/transfer | Transfer token
|
|
13
13
|
[**dropTransactionById**](TransactionsApi.md#dropTransactionById) | **POST** /transactions/{transaction_id}/drop | Drop transaction
|
|
14
14
|
[**estimateFee**](TransactionsApi.md#estimateFee) | **POST** /transactions/estimate_fee | Estimate transaction fee
|
|
15
|
+
[**getTransactionApprovalDetail**](TransactionsApi.md#getTransactionApprovalDetail) | **GET** /transactions/{transaction_id}/approval_detail | Get transaction approval details
|
|
15
16
|
[**getTransactionById**](TransactionsApi.md#getTransactionById) | **GET** /transactions/{transaction_id} | Get transaction information
|
|
17
|
+
[**listTransactionApprovalDetails**](TransactionsApi.md#listTransactionApprovalDetails) | **GET** /transactions/approval_details | List transaction approval details
|
|
16
18
|
[**listTransactions**](TransactionsApi.md#listTransactions) | **GET** /transactions | List all transactions
|
|
17
19
|
[**resendTransactionById**](TransactionsApi.md#resendTransactionById) | **POST** /transactions/{transaction_id}/resend | Resend transaction
|
|
18
20
|
[**signAndBroadcastTransactionById**](TransactionsApi.md#signAndBroadcastTransactionById) | **POST** /transactions/{transaction_id}/sign_and_broadcast | Sign and broadcast transaction
|
|
@@ -438,6 +440,56 @@ Name | Type | Description | Notes
|
|
|
438
440
|
- **Accept**: application/json
|
|
439
441
|
|
|
440
442
|
|
|
443
|
+
## getTransactionApprovalDetail
|
|
444
|
+
|
|
445
|
+
> TransactionApprovalDetail getTransactionApprovalDetail(transaction_id)
|
|
446
|
+
|
|
447
|
+
Get transaction approval details
|
|
448
|
+
|
|
449
|
+
This operation retrieves detailed approval information about a specified transaction.
|
|
450
|
+
|
|
451
|
+
### Example
|
|
452
|
+
|
|
453
|
+
```javascript
|
|
454
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
455
|
+
// Initialize the API client
|
|
456
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
457
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
458
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
459
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
460
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
461
|
+
// Call the API
|
|
462
|
+
const apiInstance = new CoboWaas2.TransactionsApi();
|
|
463
|
+
const transaction_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
|
|
464
|
+
apiInstance.getTransactionApprovalDetail(transaction_id).then((data) => {
|
|
465
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
466
|
+
}, (error) => {
|
|
467
|
+
console.error(error);
|
|
468
|
+
});
|
|
469
|
+
|
|
470
|
+
```
|
|
471
|
+
|
|
472
|
+
### Parameters
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
Name | Type | Description | Notes
|
|
476
|
+
------------- | ------------- | ------------- | -------------
|
|
477
|
+
**transaction_id** | **String**| The transaction ID. |
|
|
478
|
+
|
|
479
|
+
### Return type
|
|
480
|
+
|
|
481
|
+
[**TransactionApprovalDetail**](TransactionApprovalDetail.md)
|
|
482
|
+
|
|
483
|
+
### Authorization
|
|
484
|
+
|
|
485
|
+
[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
|
|
486
|
+
|
|
487
|
+
### HTTP request headers
|
|
488
|
+
|
|
489
|
+
- **Content-Type**: Not defined
|
|
490
|
+
- **Accept**: application/json
|
|
491
|
+
|
|
492
|
+
|
|
441
493
|
## getTransactionById
|
|
442
494
|
|
|
443
495
|
> TransactionDetail getTransactionById(transaction_id)
|
|
@@ -488,6 +540,60 @@ Name | Type | Description | Notes
|
|
|
488
540
|
- **Accept**: application/json
|
|
489
541
|
|
|
490
542
|
|
|
543
|
+
## listTransactionApprovalDetails
|
|
544
|
+
|
|
545
|
+
> ListTransactionApprovalDetails200Response listTransactionApprovalDetails(opts)
|
|
546
|
+
|
|
547
|
+
List transaction approval details
|
|
548
|
+
|
|
549
|
+
This operation retrieves detailed approval information for all transactions.
|
|
550
|
+
|
|
551
|
+
### Example
|
|
552
|
+
|
|
553
|
+
```javascript
|
|
554
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
555
|
+
// Initialize the API client
|
|
556
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
557
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
558
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
559
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
560
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
561
|
+
// Call the API
|
|
562
|
+
const apiInstance = new CoboWaas2.TransactionsApi();
|
|
563
|
+
const opts = {
|
|
564
|
+
'transaction_ids': "f47ac10b-58cc-4372-a567-0e02b2c3d479,557918d2-632a-4fe1-932f-315711f05fe3",
|
|
565
|
+
'cobo_ids': "20231213122855000000000000000000,20231213122955000000000000000000"
|
|
566
|
+
};
|
|
567
|
+
apiInstance.listTransactionApprovalDetails(opts).then((data) => {
|
|
568
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
569
|
+
}, (error) => {
|
|
570
|
+
console.error(error);
|
|
571
|
+
});
|
|
572
|
+
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
### Parameters
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
Name | Type | Description | Notes
|
|
579
|
+
------------- | ------------- | ------------- | -------------
|
|
580
|
+
**transaction_ids** | **String**| A list of transaction IDs, separated by comma. | [optional]
|
|
581
|
+
**cobo_ids** | **String**| A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction. | [optional]
|
|
582
|
+
|
|
583
|
+
### Return type
|
|
584
|
+
|
|
585
|
+
[**ListTransactionApprovalDetails200Response**](ListTransactionApprovalDetails200Response.md)
|
|
586
|
+
|
|
587
|
+
### Authorization
|
|
588
|
+
|
|
589
|
+
[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
|
|
590
|
+
|
|
591
|
+
### HTTP request headers
|
|
592
|
+
|
|
593
|
+
- **Content-Type**: Not defined
|
|
594
|
+
- **Accept**: application/json
|
|
595
|
+
|
|
596
|
+
|
|
491
597
|
## listTransactions
|
|
492
598
|
|
|
493
599
|
> ListTransactions200Response listTransactions(opts)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobo/cobo-waas2",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.1",
|
|
4
4
|
"description": "The Cobo Wallet-as-a-Service (WaaS) 2.0 API is the latest version of Cobo's WaaS API offering. It enables you to access Cobo's full suite of crypto wallet technologies with powerful and flexible access controls. By encapsulating complex security protocols and streamlining blockchain interactions, this API allows you to concentrate on your core business activities without worrying about the safety of your assets. The WaaS 2.0 API presents the following key features: - A unified API for Cobo's [all four wallet types](https://manuals.cobo.com/en/portal/introduction#an-all-in-one-wallet-platform) - Support for 80+ chains and 3000+ tokens - A comprehensive selection of webhook events - Flexible usage models for MPC Wallets, including [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/introduction) and [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ucw/introduction) - Programmatic control of smart contract wallets such as Safe{Wallet} with fine-grained access controls - Seamlessly transfer funds across multiple exchanges, including Binance, OKX, Bybit, Deribit, and more For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](https://www.cobo.com/developers/v2/guides/overview/introduction). ",
|
|
5
5
|
"license": "GPL 2.0",
|
|
6
6
|
"main": "dist/index.js",
|