You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Do not know how to serialize a BigInt
at JSON.stringify ()
at throwForUpdateMaker (/storage/emulated/0/abotwa/.dzkbot/node_modules/bitcoinjs-lib/node_modules/bip174/src/lib/utils.js:60:35)
at Object.updateInput (/storage/emulated/0/abotwa/.dzkbot/node_modules/bitcoinjs-lib/node_modules/bip174/src/lib/utils.js:96:13) at Object.addInputAttributes (/storage/emulated/0/abotwa/.dzkbot/node_modules/bitcoinjs-lib/node_modules/bip174/src/lib/utils.js:114:11)
at Psbt.addInput (/storage/emulated/0/abotwa/.dzkbot/node_modules/bitcoinjs-lib/node_modules/bip174/src/lib/psbt.js:99:13)
at Psbt.addInput (/storage/emulated/0/abotwa/.dzkbot/node_modules/bitcoinjs-lib/src/psbt.js:212:13)
Activity
davidkaplanbitgo commentedon Aug 11, 2025
Can you please show how you generated this error?
Nexov25 commentedon Aug 12, 2025
psbt.addInput({
hash: utxo.id,
index: utxo.vout,
witnessUtxo: {
script: sellerScript,
value: BigInt(utxo.amount),
},
redeemScript: p2sh.redeem.output
});
psbt.addOutput({
script: bitgo.address.toOutputScript(buyerAddress, this.networks),
value: BigInt(bitcoinAmount)
});