mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 09:12:05 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88d3dd12a1 | ||
|
|
cb8b4a5586 | ||
|
|
ec0ef24508 |
Generated
+7
-7
@@ -8,7 +8,7 @@
|
||||
"version": "1.16.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@psf/bch-js": "^4.10.1",
|
||||
"@psf/bch-js": "^4.11.1",
|
||||
"apidoc": "^0.26.0",
|
||||
"axios": "^0.21.1",
|
||||
"bitcore-lib-cash": "^8.23.1",
|
||||
@@ -458,9 +458,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@psf/bch-js": {
|
||||
"version": "4.10.1",
|
||||
"resolved": "https://registry.npmjs.org/@psf/bch-js/-/bch-js-4.10.1.tgz",
|
||||
"integrity": "sha512-f0gHLiBfYVXnobqtpFom/n8U5FEM5XauSki3H4r+QzOPKljxu+JKm5+9Oa51wxoLAPHKQ1Nmhd+1+Pf6i1RvWw==",
|
||||
"version": "4.11.1",
|
||||
"resolved": "https://registry.npmjs.org/@psf/bch-js/-/bch-js-4.11.1.tgz",
|
||||
"integrity": "sha512-IV/jQERtu1stQ+XibEQclpUv1WDf7eZWdu4IqAgET8Oa/g56f2LINcACMLmRcMPYEcl9z1QmtEilQqG+ejBecw==",
|
||||
"dependencies": {
|
||||
"@psf/bip21": "^2.0.1",
|
||||
"@psf/bip32-utils": "^0.13.1",
|
||||
@@ -19090,9 +19090,9 @@
|
||||
}
|
||||
},
|
||||
"@psf/bch-js": {
|
||||
"version": "4.10.1",
|
||||
"resolved": "https://registry.npmjs.org/@psf/bch-js/-/bch-js-4.10.1.tgz",
|
||||
"integrity": "sha512-f0gHLiBfYVXnobqtpFom/n8U5FEM5XauSki3H4r+QzOPKljxu+JKm5+9Oa51wxoLAPHKQ1Nmhd+1+Pf6i1RvWw==",
|
||||
"version": "4.11.1",
|
||||
"resolved": "https://registry.npmjs.org/@psf/bch-js/-/bch-js-4.11.1.tgz",
|
||||
"integrity": "sha512-IV/jQERtu1stQ+XibEQclpUv1WDf7eZWdu4IqAgET8Oa/g56f2LINcACMLmRcMPYEcl9z1QmtEilQqG+ejBecw==",
|
||||
"requires": {
|
||||
"@psf/bip21": "^2.0.1",
|
||||
"@psf/bip32-utils": "^0.13.1",
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
"node": ">=10.15.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@psf/bch-js": "^4.10.1",
|
||||
"@psf/bch-js": "^4.11.1",
|
||||
"apidoc": "^0.26.0",
|
||||
"axios": "^0.21.1",
|
||||
"bitcore-lib-cash": "^8.23.1",
|
||||
|
||||
@@ -17,6 +17,7 @@ const wlogger = require('../../util/winston-logging')
|
||||
const LOCAL_RESTURL = process.env.LOCAL_RESTURL
|
||||
? process.env.LOCAL_RESTURL
|
||||
: 'https://api.fullstack.cash/v4/'
|
||||
|
||||
const BCHJS = require('@psf/bch-js')
|
||||
// const BCHJS = require('../../../../bch-js')
|
||||
const bchjs = new BCHJS({ restURL: LOCAL_RESTURL })
|
||||
@@ -1307,6 +1308,7 @@ class Slp {
|
||||
async validate3Single (req, res, next) {
|
||||
try {
|
||||
const txid = req.params.txid
|
||||
// console.log('validate3Single txid: ', txid)
|
||||
|
||||
// Validate input
|
||||
if (!txid || txid === '') {
|
||||
@@ -1388,6 +1390,7 @@ class Slp {
|
||||
async validate3Bulk (req, res, next) {
|
||||
try {
|
||||
const txids = req.body.txids
|
||||
// console.log(`validate3Bulk txids: `, txids)
|
||||
|
||||
// Reject if txids is not an array.
|
||||
if (!Array.isArray(txids)) {
|
||||
@@ -1987,7 +1990,7 @@ class Slp {
|
||||
|
||||
// Get SLP token details.
|
||||
const details = await _this.bchjs.SLP.Utils.tokenUtxoDetails(theseUtxos)
|
||||
// console.log('details : ', details)
|
||||
// console.log('details: ', details)
|
||||
|
||||
// Replace the original UTXO data with the hydrated data.
|
||||
utxos[i].utxos = details
|
||||
|
||||
Reference in New Issue
Block a user