Wallet Extension¶
The Wasichain wallet extension is a Chrome extension (Manifest V3) that manages keys, signs transactions, and connects dApps to the Wasichain network.
Features¶
- Account management -- create and import accounts, switch between them
- Transaction signing -- review and approve transactions from connected dApps
- Network selection -- connect to devnet, testnet, or a custom node
- Balance display -- view account balances and recent activity
Connecting from a dApp¶
dApps detect the extension via the window.wasichain provider object. A typical connection flow:
- Check if
window.wasichainis available - Call
window.wasichain.connect()to request account access - The user approves the connection in the extension popup
- The dApp receives the connected account address
Signing transactions¶
Once connected, a dApp can request transaction signatures:
- Build the transaction payload
- Call
window.wasichain.signAndSend(tx) - The extension shows a confirmation popup with transaction details
- On approval, the extension signs and submits the transaction, returning the transaction hash