utxostack / rgbpp-sdk

Utilities for Bitcoin and RGB++ asset integration
ISC License
53 stars 18 forks source link

The MISSING_PUBKEY error is not clear enough #266

Closed ShookLyngs closed 3 months ago

ShookLyngs commented 3 months ago

The MISSING_PUBKEY error is usually triggered when the generating BTC transaction contains P2TR inputs, but no relevant pubkey was provided to the TxBuilder in the first place. Without the information of pubkey, the transaction cannot be built.

The current error message is not very clear and could end up confusing users:

Missing a pubkey that pairs with the address: {address}