@radzor/wallet-connect
Connect to Ethereum wallets (MetaMask, WalletConnect) for Web3 dApps. Client-side only.
Web3 & Blockchainv0.1.0typescriptBrowserwalletethereumweb3metamaskcryptoblockchainby Radzor
Install
View source on GitHub →$npx radzor@latest add wallet-connect
⚠ Constraints: Browser-only — requires window.ethereum injected by MetaMask or similar. Not available in Node.js or SSR. Always handle the case where no wallet is installed.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| chainId | number | — | Target chain ID (default: 1 for Ethereum mainnet). |
| rpcUrl | string | — | Fallback JSON-RPC endpoint URL. |
chainIdnumber
Target chain ID (default: 1 for Ethereum mainnet).
rpcUrlstring
Fallback JSON-RPC endpoint URL.
Outputs
| Name | Type | Description |
|---|---|---|
| walletInfo | { address: string; chainId: number; balance: string } | Connected wallet address, current chain, and ETH balance. |