Skip to content

Method to change the chain of the wallet #450

@pradel

Description

@pradel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions