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