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"]
});