Best practices for integrating Brave Wallet with energy trading dApp

We’re developing a decentralized energy trading platform at AEGIS CORE that allows users to buy/sell renewable energy credits using blockchain. We want to integrate Brave Wallet for seamless transactions.

Current Setup:

  • React + Web3.js

  • Ethereum-based smart contracts

  • IPFS for data storage

Question:

What’s the recommended approach for detecting Brave Wallet and handling wallet_switchEthereumChain requests? We noticed some inconsistencies compared to MetaMask.

**What we’ve tried:
**
if (window.ethereum && window.ethereum.isBrave) {
// Brave-specific logic
}

Any guidance or documentation would be appreciated! :folded_hands:

Hello, here’s some documentation which may help.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.