app-monorepo icon indicating copy to clipboard operation
app-monorepo copied to clipboard

[BUG]: signPsbt lacks options

Open SteveYuOWO opened this issue 1 year ago • 2 comments

https://docs.unisat.io/dev/unisat-developer-center/unisat-wallet#signpsbt

In the unisat document, options include toSignInputs array, including 'index', 'address', 'publicKey', 'sighashTypes'.

Onekey wallet separately supports these parameters for babylon, can ordinary users call with these options params?

https://github.com/OneKeyHQ/app-monorepo/blob/x/packages/core/src/chains/btc/sdkBtc/index.ts#L216-L220

SteveYuOWO avatar Oct 30 '24 12:10 SteveYuOWO

We are working on your case and you will recieve a response soon

Jmanu254 avatar Nov 10 '24 23:11 Jmanu254

We are working on your case and you will recieve a response soon

More specific cases.

window.$onekey.btc.signPsbt(psbt, {
  autoFinalized: false,
  toSignInputs: [
    {
      index,
      publicKey,
    },
  ],
})

SteveYuOWO avatar Nov 13 '24 02:11 SteveYuOWO