Unknown error / unknown output script type #323
Unanswered
gomesalexandre
asked this question in
Help & Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
gm!
While I was trying to debug some issue with BTC sends with
signPSBT
being broken for some addresses (i.e popup shows just fine, but after clicking confirm,signPSBT
throws), I eventually ran out of luck re:-32603 unexpected error
.Digging deeper, while running Devtools in Phantom, I saw this error which wasn't exposed:
Transaction/output: unknown output script type, there is a chance that input is unspendable. Pass allowUnknownOutputs=true, if you sure
which seems to come fromscure-btc-signer
Wondering if we could bubble those errors up to consumers instead of "unexpected error" to help with future debugging?
And indeed, while running a breakpoint on the affected line of scure-btc-signer, script type was unknown.
Now, the really weird part here is
bc1qsdeav5z8pt307euz742xla97gackhgpkz27dh5
, but was not happening while testing with another,bc1qxzntwam7733myh5vryz5dptpqg79d0kn80clmt
account_index
, both are zpubs (SegWit native), and obviously both are 0thaddress_index
as that's the only one that Phantom ever uses (no next receive address with Phantom)unknown
script in theThis is what the
psbt
looked like for the affected Tx:And
inputsToSign
:FYI, this is our internal data structure that we massage to conform to Phantom:
Kind of a long shot here as we're more trying to understand the actual heuristics to repro and whether or not this is an internal Phantom issue, rather than the fix (fix in this case is to do a send through Phantom, though obviously more of a bandaid than anything else).
I noticed this comment from @adamdelphantom in the only similar issue I could find https://github.com/orgs/phantom/discussions/284#discussioncomment-10546475 - wondering if this could be a similar issue, and I assume the issue is Phantom having trouble with specific UTXO sets?
Example
No response
Steps to Reproduce
See above, not so much in terms of steps to reproduce as that's what we're actually trying to understand here!
Phantom Version
24.26.0
Is there an existing discussion for this?
Beta Was this translation helpful? Give feedback.
All reactions