The request method in @stacks/connect adds a layer of auto-compatibility for different wallet providers. This helps unify the interface where wallet providers may implement methods and results differently.
Method
Status
Notes
getAddresses
π΅
Maps to wallet_connect for Xverse-like wallets
sendTransfer
π΅
Converts amount to number for Xverse, string for Leather
signPsbt
π‘
Transforms PSBT format for Leather (base64 to hex) with lossy restructure of signInputs
stx_getAddresses
π΅
Maps to wallet_connect for Xverse-like wallets
stx_callContract
π΅
Transforms Clarity values to hex-encoded format for compatibility
stx_deployContract
π΅
Transforms Clarity values to hex-encoded format for compatibility
stx_signTransaction
π΅
Transforms Clarity values to hex-encoded format for compatibility
stx_signMessage
π΅
Transforms Clarity values to hex-encoded format for compatibility
stx_signStructuredMessage
π΅
Transforms Clarity values to hex-encoded format for compatibility
π’ No overrides needed for any wallet
π΅ Has compatibility overrides that maintain functionality
π‘ Has breaking overrides that may lose some information