Skip to main content

Integrate a wallet

Wallet integration is the minimum requirement for any dapp that needs user signatures or transactions. This guide shows a simple browser-wallet integration flow for TeQoin.

TeQoin network details

Use these values when adding the chain:

Step 1: Detect a wallet

Step 2: Request access

Step 3: Add or switch the network

Step 4: Build an ethers provider

Step 5: Listen for wallet changes

Use this flow in production:
  1. Detect the wallet on page load.
  2. Ask the user to connect only when they start an action.
  3. Verify the chain before every write transaction.
  4. Show clear errors for rejected signatures and wrong-network states.

Security notes

  • Never ask users to paste private keys into your app.
  • Never store private keys in frontend code.
  • Revalidate the selected account before sending a transaction.

Where to go next