As a developer integrating Sats Connect with Xverse wallets
I want to have listeners for account and network changes, and a non-intrusive method for account retrieval
So that the user experience is smooth, and the application can dynamically adapt to account or network changes without frequent user confirmations.
Acceptance Criteria
Prerequisite
The application is using Sats Connect to interact with Xverse wallets.
The user has granted necessary permissions for wallet interactions.
Scenario 1: Listener for Account Change
Given the user has connected their Xverse wallet to the application
When there is a change in the user's account (like switching accounts)
Then the application should automatically detect and adapt to this change without requiring user confirmation.
Scenario 2: Listener for Network Change
Given the user has connected their Xverse wallet to the application
When there is a change in the Bitcoin network (like switching from mainnet to testnet)
Then the application should automatically detect and adapt to this network change.
Scenario 3: Non-Intrusive Account Retrieval
Given the user has already given permission for their account details to be used
When the application needs to retrieve the user’s account information
Then the application should be able to do so without triggering a wallet pop-up confirmation every time.
Story
As a developer integrating Sats Connect with Xverse wallets I want to have listeners for account and network changes, and a non-intrusive method for account retrieval So that the user experience is smooth, and the application can dynamically adapt to account or network changes without frequent user confirmations.
Acceptance Criteria
Prerequisite
Scenario
1
: Listener for Account ChangeGiven the user has connected their Xverse wallet to the application When there is a change in the user's account (like switching accounts) Then the application should automatically detect and adapt to this change without requiring user confirmation.
Scenario
2
: Listener for Network ChangeGiven the user has connected their Xverse wallet to the application When there is a change in the Bitcoin network (like switching from mainnet to testnet) Then the application should automatically detect and adapt to this network change.
Scenario
3
: Non-Intrusive Account RetrievalGiven the user has already given permission for their account details to be used When the application needs to retrieve the user’s account information Then the application should be able to do so without triggering a wallet pop-up confirmation every time.