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! ![]()