Closed amarcu closed 2 months ago
https://docs.unisat.io/dev/unisat-developer-center/unisat-wallet#signpsbt Please read the docs here.
You should sign like this
try {
let res = await window.unisat.signPsbt(
"70736274ff01007d....",
{
autoFinalized:false,
toSignInputs:[
{
index: 0,
address: "tb1q8h8....mjxzny",
},
{
index: 1,
publicKey: "tb1q8h8....mjxzny",
sighashTypes: [1]
},
{
index: 2,
publicKey: "02062...8779693f",
}
]
}
);
console.log(res)
} catch (e) {
console.log(e);
}
unisat.signPsbt("xxxxxxxx",{toSignInputs:[{index:0,publicKey:"xxxxxx",disableTweakSigner:true}],autoFinalized:false})
@amarcu
Thanks for the help.
I want to sign a psbt for a rune burn transaction. This is how I generate the psbt for signing:
This psbt can be signed with other wallets(like xverse), for unisat i get back the error mentioned in the title.
This is the generated psbt:
My call to the unisat wallet, also tested with inputsToSign: