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