connect icon indicating copy to clipboard operation
connect copied to clipboard

Method to change the chain of the wallet

Open pradel opened this issue 8 months ago • 4 comments

Is your feature request related to a problem? Please describe. If you have a Stacks application on testnet / mainnet, signing a message depends on the current chain selected in the wallet. Let's say your wallet is on "mainnet" and your testnet app is requesting a message signature, the wallet (both leather and xverse) will show an error saying that the selected chain ID is not the one requested for the signature. To fix that problem, there should be a method so that the client can request to change the selected chain in the wallet (which can be subject to user approval) similar to how it's done on Ethereum.

Image

Describe the solution you'd like The SDK should have a function to request a chain ID to be changed.

pradel avatar Apr 10 '25 17:04 pradel