@omisego/omg-js-childchain
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "@omisego/omg-js-childchain", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Module to interact with OMG ChildChain", | ||
@@ -25,3 +25,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@omisego/omg-js-util": "^1.1.0", | ||
"@omisego/omg-js-util": "^1.2.0", | ||
"debug": "^4.0.1", | ||
@@ -35,3 +35,3 @@ "json-bigint": "^0.3.0", | ||
}, | ||
"gitHead": "09e36e667d11af23eb8b449a0a54f71b428340dc" | ||
"gitHead": "5e88014b838c9d132d06bf9cef6e0b92b3f2ed3d" | ||
} |
@@ -60,2 +60,24 @@ /* | ||
/** | ||
* Get a transaction | ||
* | ||
* @method getTransaction | ||
* @param {object} id The hash of the transaction to get | ||
* @return {Array} array of transactions | ||
*/ | ||
async getTransaction (id) { | ||
return rpcApi.post(`${this.watcherUrl}/transaction.get`, { id }) | ||
} | ||
/** | ||
* Get transactions | ||
* | ||
* @method getTransactions | ||
* @param {object} filters Filter the results by `address`, `blknum` and `limit` | ||
* @return {Array} array of transactions | ||
*/ | ||
async getTransactions (filters) { | ||
return rpcApi.post(`${this.watcherUrl}/transaction.all`, filters) | ||
} | ||
/** | ||
* Get the exit data for a UTXO | ||
@@ -62,0 +84,0 @@ * |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29024
497
Updated@omisego/omg-js-util@^1.2.0