mirror of
https://github.com/Permissionless-Software-Foundation/psf-bch-api.git
synced 2026-09-21 16:52:00 -07:00
Merge pull request #10 from Permissionless-Software-Foundation/ct-unstable
fix(console.logs()): Removing terminal noise
This commit is contained in:
@@ -56,7 +56,7 @@ class FulcrumUseCases {
|
|||||||
async getTransactionDetails ({ txid }) {
|
async getTransactionDetails ({ txid }) {
|
||||||
try {
|
try {
|
||||||
const response = await this.fulcrum.get(`electrumx/tx/data/${txid}`)
|
const response = await this.fulcrum.get(`electrumx/tx/data/${txid}`)
|
||||||
console.log(`getTransactionDetails() TXID ${txid}: ${JSON.stringify(response, null, 2)}`)
|
// console.log(`getTransactionDetails() TXID ${txid}: ${JSON.stringify(response, null, 2)}`)
|
||||||
return response
|
return response
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
wlogger.error('Error in FulcrumUseCases.getTransactionDetails()', err)
|
wlogger.error('Error in FulcrumUseCases.getTransactionDetails()', err)
|
||||||
|
|||||||
@@ -274,7 +274,7 @@ class SlpUseCases {
|
|||||||
// Get transaction data
|
// Get transaction data
|
||||||
console.log('Decoding OP_RETURN for TXID: ', txid)
|
console.log('Decoding OP_RETURN for TXID: ', txid)
|
||||||
const txData = await this.bchjs.Electrumx.txData(txid)
|
const txData = await this.bchjs.Electrumx.txData(txid)
|
||||||
console.log(`TXID ${txid}: ${JSON.stringify(txData, null, 2)}`)
|
// console.log(`TXID ${txid}: ${JSON.stringify(txData, null, 2)}`)
|
||||||
let data = false
|
let data = false
|
||||||
|
|
||||||
// Map the vout of the transaction in search of an OP_RETURN
|
// Map the vout of the transaction in search of an OP_RETURN
|
||||||
|
|||||||
Reference in New Issue
Block a user