@defichain/jellyfish-api-core
Advanced tools
Comparing version 0.0.24 to 0.1.0
@@ -71,2 +71,9 @@ import BigNumber from 'bignumber.js'; | ||
/** | ||
* Return information about all known tips in the block tree | ||
* including the main chain as well as orphaned branches. | ||
* | ||
* @return {Promise<ChainTip[]>} | ||
*/ | ||
getChainTips(): Promise<ChainTip[]>; | ||
/** | ||
* Get details of unspent transaction output (UTXO). | ||
@@ -202,2 +209,8 @@ * | ||
} | ||
export interface ChainTip { | ||
height: number; | ||
hash: string; | ||
branchlen: number; | ||
status: string; | ||
} | ||
export interface MempoolTx { | ||
@@ -204,0 +217,0 @@ [key: string]: { |
@@ -68,2 +68,13 @@ "use strict"; | ||
/** | ||
* Return information about all known tips in the block tree | ||
* including the main chain as well as orphaned branches. | ||
* | ||
* @return {Promise<ChainTip[]>} | ||
*/ | ||
getChainTips() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield this.client.call('getchaintips', [], 'number'); | ||
}); | ||
} | ||
/** | ||
* Get details of unspent transaction output (UTXO). | ||
@@ -70,0 +81,0 @@ * |
{ | ||
"private": false, | ||
"name": "@defichain/jellyfish-api-core", | ||
"version": "0.0.24", | ||
"version": "0.1.0", | ||
"description": "A collection of TypeScript + JavaScript tools and libraries for DeFi Blockchain developers to build decentralized finance on Bitcoin", | ||
@@ -38,7 +38,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@defichain/jellyfish-json": "^0.0.24" | ||
"@defichain/jellyfish-json": "^0.1.0" | ||
}, | ||
"devDependencies": { | ||
"@defichain/testcontainers": "^0.0.24" | ||
"@defichain/testcontainers": "^0.1.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
84639
2148
+ Added@defichain/jellyfish-json@0.1.0(transitive)
- Removed@defichain/jellyfish-json@0.0.24(transitive)