bitcore icon indicating copy to clipboard operation
bitcore copied to clipboard

Bitcore serialization Error: message: 'undefined'

Open JovanMwesigwa opened this issue 3 years ago • 1 comments

const tx = new bitcore.Transaction()
    .from(inputs)
    .to(recieverAddress, satoshiToSend) // In satoshis
    .fee(bitcore.Unit.fromBTC(fee).toSatoshis() * 20) // In satoshis
    .change(address) // Return the change to the same address
    .addData() // Add metadata to the transaction
    .sign(privateKey)

  console.log(tx.verify())
  console.log(tx)
 tx.serialize()

tx.verify() is shows True and the transaction logs properly on the console.

Error comes when i try to serialize the transaction

JovanMwesigwa avatar Aug 21 '22 06:08 JovanMwesigwa

Can you please include the text of the error message?

bplunkert avatar Nov 21 '22 15:11 bplunkert