fix(getPublicKey): Switching from GET to POST calls, to pass usrObj

This commit is contained in:
Chris Troutner
2021-03-08 18:36:27 -08:00
parent cf86e390fb
commit 137cacd1da
3 changed files with 80 additions and 69 deletions
+2 -4
View File
@@ -135,16 +135,14 @@ class Encryption {
for (let i = 0; i < txids.length; i++) {
const thisTx = txids[i]
// CT 2/24/21: I might want to convert this to the POST call, to take
// advantage of the usrObj. It does not get passed in a GET call.
const txDetails = await _this.bchjs.RawTransactions.getRawTransaction(
thisTx,
[thisTx],
true,
usrObj
)
// console.log(`txDetails: ${JSON.stringify(txDetails, null, 2)}`)
const vin = txDetails.vin
const vin = txDetails[0].vin
// Loop through each input.
for (let j = 0; j < vin.length; j++) {