Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: signPsbt lacks options #6104

Open
SteveYuOWO opened this issue Oct 30, 2024 · 2 comments
Open

[BUG]: signPsbt lacks options #6104

SteveYuOWO opened this issue Oct 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@SteveYuOWO
Copy link

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 SteveYuOWO added the bug Something isn't working label Oct 30, 2024
@Jmanu254
Copy link

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

@SteveYuOWO
Copy link
Author

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,
    },
  ],
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants