Skip to content

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:

  1. Check if window.wasichain is available
  2. Call window.wasichain.connect() to request account access
  3. The user approves the connection in the extension popup
  4. The dApp receives the connected account address

Signing transactions

Once connected, a dApp can request transaction signatures:

  1. Build the transaction payload
  2. Call window.wasichain.signAndSend(tx)
  3. The extension shows a confirmation popup with transaction details
  4. On approval, the extension signs and submits the transaction, returning the transaction hash