2

How to properly call createPaymentTransactionNew using @ledgerhq/hw-app-bt to spend utxos from a bech32 transaction?

This is the code I'm using to call it, having previously defined inputs and purpose, coinPath, accountNumber:

tx = await appBtc.createPaymentTransactionNew({
                    inputs: inputs,
                    associatedKeysets: `${purpose}'/${coinPath}'/${accountNumber}'/0/0`,
                    outputScriptHex: outputScriptHex,
                    segwit:true,
                    additionals: ["bech32"]
                });

1 Answer 1

0
 tx = await app.createPaymentTransactionNew(
      inputs,
      paths,
      derivationPath,
      serializedOutputs, // app.serializeTransactionOutputs({ outputs }).toString('hex')
      undefined,
      undefined,
      true,
      undefined,
      ['bech32']
    )

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.