[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-metamask-setup-evm-react-app":3,"mdc-kljhob-key":38,"related-org-metamask-setup-evm-react-app":7051,"related-repo-metamask-setup-evm-react-app":7208},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":28,"repoUrl":29,"updatedAt":30,"license":31,"forks":28,"topics":32,"repo":33,"sourceUrl":36,"mdContent":37},"setup-evm-react-app","scaffold React apps with MetaMask integration","Scaffold a React app with MetaMask EVM integration using createEVMClient, useState\u002FuseEffect\u002FuseRef patterns, provider.request calls, chain switching, and error handling",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},"metamask","MetaMask","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fmetamask.png",[12,16,19,22,25],{"name":13,"slug":14,"type":15},"React","react","tag",{"name":17,"slug":18,"type":15},"Web3","web3",{"name":20,"slug":21,"type":15},"API Development","api-development",{"name":23,"slug":24,"type":15},"Ethereum","ethereum",{"name":26,"slug":27,"type":15},"Frontend","frontend",2,"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fmetamask-connect-cursor-plugin","2026-07-13T06:11:52.764143",null,[],{"repoUrl":29,"stars":28,"forks":28,"topics":34,"description":35},[],"Cursor plugin for building dApps with the MetaMask Connect SDK — skills, rules, and agents for EVM, Solana, and multichain integrations","https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fmetamask-connect-cursor-plugin\u002Ftree\u002FHEAD\u002Fskills\u002Fsetup-evm-react-app","---\nname: setup-evm-react-app\ndescription: Scaffold a React app with MetaMask EVM integration using createEVMClient, useState\u002FuseEffect\u002FuseRef patterns, provider.request calls, chain switching, and error handling\n---\n# Setup EVM React App with MetaMask Connect\n\n## When to use\n\nUse this skill when:\n- Creating a new React app that connects to MetaMask via `@metamask\u002Fconnect-evm`\n- Adding wallet connect, sign, or send functionality to an existing React app\n- Setting up `createEVMClient` with Infura RPC URLs and event handlers\n- Building a React component that tracks accounts, chain, and balance state\n\n## Workflow\n\n### Step 1: Install dependencies\n\n```bash\nnpm install @metamask\u002Fconnect-evm @metamask\u002Fconnect-multichain\n```\n\n`@metamask\u002Fconnect-multichain` is a regular dependency of `@metamask\u002Fconnect-evm` and is installed transitively. (Only the 2.0.0 release briefly made it a peer dependency; 2.1.0 reverted that.) Installing it explicitly is harmless but not required. The SDK warns at runtime if duplicate or mismatched copies are resolved.\n\n### Step 2: Create the EVM client\n\nCreate a module that initializes the client once and exports a ready promise:\n\n```typescript\n\u002F\u002F src\u002Fmetamask.ts\nimport { createEVMClient, getInfuraRpcUrls } from '@metamask\u002Fconnect-evm';\nimport type { MetamaskConnectEVM } from '@metamask\u002Fconnect-evm';\n\nlet clientPromise: Promise\u003CMetamaskConnectEVM> | null = null;\n\nexport function getClient(): Promise\u003CMetamaskConnectEVM> {\n  if (!clientPromise) {\n    clientPromise = createEVMClient({\n      dapp: {\n        name: 'My React DApp',\n        url: window.location.href,\n      },\n      api: {\n        supportedNetworks: {\n          ...getInfuraRpcUrls({ infuraApiKey: 'YOUR_INFURA_KEY', chainIds: ['0x1', '0x89', '0xaa36a7'] }),\n          '0xa4b1': 'https:\u002F\u002Farb1.arbitrum.io\u002Frpc',\n        },\n      },\n      ui: {\n        headless: false,\n        preferExtension: true,\n        showInstallModal: true,\n      },\n      eventHandlers: {\n        displayUri: (uri: string) => {\n          console.log('QR URI:', uri);\n        },\n      },\n      debug: false,\n    });\n  }\n  return clientPromise;\n}\n```\n\n`getInfuraRpcUrls({ infuraApiKey, chainIds? })` returns a `Record\u003CHex, string>` mapping hex chain IDs to Infura RPC URLs for all Infura-supported EVM chains. Pass an optional `chainIds` array (hex strings, e.g. `['0x1', '0x89']`) to limit the output to specific chains. Spread it into `supportedNetworks` and add custom RPCs for any additional chains.\n\n### Step 3: Build the wallet component\n\nUse `useRef` to hold the client instance and `useState` for reactive UI state:\n\n```tsx\n\u002F\u002F src\u002FWalletConnect.tsx\nimport { useEffect, useRef, useState, useCallback } from 'react';\nimport { getClient } from '.\u002Fmetamask';\nimport type { MetamaskConnectEVM } from '@metamask\u002Fconnect-evm';\nimport type { Hex, Address } from '@metamask\u002Fconnect-evm';\n\nexport function WalletConnect() {\n  const clientRef = useRef\u003CMetamaskConnectEVM | null>(null);\n  const [accounts, setAccounts] = useState\u003CAddress[]>([]);\n  const [chainId, setChainId] = useState\u003CHex | null>(null);\n  const [balance, setBalance] = useState\u003Cstring>('');\n  const [connecting, setConnecting] = useState(false);\n  const [error, setError] = useState\u003Cstring | null>(null);\n\n  useEffect(() => {\n    let mounted = true;\n\n    async function init() {\n      const client = await getClient();\n      if (!mounted) return;\n      clientRef.current = client;\n\n      const provider = client.getProvider();\n\n      provider.on('accountsChanged', (accs: Address[]) => {\n        if (mounted) setAccounts(accs);\n      });\n\n      provider.on('chainChanged', (id: Hex) => {\n        if (mounted) setChainId(id);\n      });\n\n      provider.on('disconnect', () => {\n        if (mounted) {\n          setAccounts([]);\n          setChainId(null);\n          setBalance('');\n        }\n      });\n    }\n\n    init();\n    return () => { mounted = false; };\n  }, []);\n\n  const handleConnect = useCallback(async () => {\n    const client = clientRef.current;\n    if (!client) return;\n\n    setConnecting(true);\n    setError(null);\n\n    try {\n      const result = await client.connect({ chainIds: ['0x1'] });\n      setAccounts(result.accounts as Address[]);\n      setChainId(result.chainId as Hex);\n    } catch (err: any) {\n      if (err.code === 4001) {\n        setError('Connection rejected. Please try again.');\n        return;\n      }\n      if (err.code === -32002) {\n        setError('A connection request is already pending. Check MetaMask.');\n        return;\n      }\n      setError(err.message ?? 'Connection failed');\n    } finally {\n      setConnecting(false);\n    }\n  }, []);\n\n  const handleDisconnect = useCallback(async () => {\n    const client = clientRef.current;\n    if (!client) return;\n    await client.disconnect();\n    setAccounts([]);\n    setChainId(null);\n    setBalance('');\n  }, []);\n\n  const fetchBalance = useCallback(async () => {\n    const client = clientRef.current;\n    if (!client || accounts.length === 0) return;\n\n    const provider = client.getProvider();\n    const wei = await provider.request({\n      method: 'eth_getBalance',\n      params: [accounts[0], 'latest'],\n    }) as Hex;\n\n    const ethBalance = parseInt(wei, 16) \u002F 1e18;\n    setBalance(ethBalance.toFixed(6));\n  }, [accounts]);\n\n  \u002F\u002F chainConfiguration must match the target chain (and include its chainId) —\n  \u002F\u002F the wallet receives it verbatim as wallet_addEthereumChain params\n  const handleSwitchToPolygon = useCallback(async () => {\n    const client = clientRef.current;\n    if (!client) return;\n\n    try {\n      await client.switchChain({\n        chainId: '0x89',\n        chainConfiguration: {\n          chainId: '0x89',\n          chainName: 'Polygon',\n          nativeCurrency: { name: 'MATIC', symbol: 'MATIC', decimals: 18 },\n          rpcUrls: ['https:\u002F\u002Fpolygon-rpc.com'],\n          blockExplorerUrls: ['https:\u002F\u002Fpolygonscan.com'],\n        },\n      });\n    } catch (err: any) {\n      if (err.code === 4001) {\n        setError('Chain switch rejected by user.');\n      }\n    }\n  }, []);\n\n  const isConnected = accounts.length > 0;\n\n  if (!isConnected) {\n    return (\n      \u003Cdiv>\n        \u003Cbutton onClick={handleConnect} disabled={connecting}>\n          {connecting ? 'Connecting...' : 'Connect MetaMask'}\n        \u003C\u002Fbutton>\n        {error && \u003Cp style={{ color: 'red' }}>{error}\u003C\u002Fp>}\n      \u003C\u002Fdiv>\n    );\n  }\n\n  return (\n    \u003Cdiv>\n      \u003Cp>Account: {accounts[0]}\u003C\u002Fp>\n      \u003Cp>Chain ID: {chainId}\u003C\u002Fp>\n      \u003Cp>Balance: {balance || '—'} ETH\u003C\u002Fp>\n      \u003Cbutton onClick={fetchBalance}>Refresh Balance\u003C\u002Fbutton>\n      \u003Cbutton onClick={handleSwitchToPolygon}>Switch to Polygon\u003C\u002Fbutton>\n      \u003Cbutton onClick={handleDisconnect}>Disconnect\u003C\u002Fbutton>\n      {error && \u003Cp style={{ color: 'red' }}>{error}\u003C\u002Fp>}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Step 4: Use provider.request for RPC calls\n\nOnce connected, use the EIP-1193 provider for any Ethereum JSON-RPC method:\n\n```typescript\nconst provider = client.getProvider();\n\n\u002F\u002F Get current block number\nconst blockNumber = await provider.request({ method: 'eth_blockNumber' });\n\n\u002F\u002F Get chain ID\nconst chainId = await provider.request({ method: 'eth_chainId' });\n\n\u002F\u002F Get accounts\nconst accounts = await provider.request({ method: 'eth_accounts' });\n\n\u002F\u002F Get balance\nconst balance = await provider.request({\n  method: 'eth_getBalance',\n  params: [accounts[0], 'latest'],\n});\n\n\u002F\u002F Get transaction count (nonce)\nconst nonce = await provider.request({\n  method: 'eth_getTransactionCount',\n  params: [accounts[0], 'latest'],\n});\n```\n\n### Step 5: Switch chains\n\nUse `client.switchChain` to request a network change. The `chainConfiguration` fallback triggers `wallet_addEthereumChain` if the chain is not already in the user's wallet:\n\n```typescript\nawait client.switchChain({\n  chainId: '0xaa36a7', \u002F\u002F Sepolia\n});\n\n\u002F\u002F With fallback configuration for unknown chains\nawait client.switchChain({\n  chainId: '0xa4b1', \u002F\u002F Arbitrum One\n  chainConfiguration: {\n    chainId: '0xa4b1', \u002F\u002F optional in the type, but set it to the target chain — if omitted it falls back to the currently selected chain (likely the wrong chain to add)\n    chainName: 'Arbitrum One',\n    nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },\n    rpcUrls: ['https:\u002F\u002Farb1.arbitrum.io\u002Frpc'],\n    blockExplorerUrls: ['https:\u002F\u002Farbiscan.io'],\n  },\n});\n```\n\n### Step 6: Handle errors\n\nAlways catch and handle known error codes:\n\n```typescript\ntry {\n  await client.connect({ chainIds: ['0x1'] });\n} catch (err: any) {\n  switch (err.code) {\n    case 4001:\n      \u002F\u002F User rejected the request — show retry UI\n      break;\n    case -32002:\n      \u002F\u002F Request already pending — tell user to check MetaMask\n      break;\n    default:\n      console.error('Unexpected error:', err);\n  }\n}\n```\n\n## Important Notes\n\n- **Call `createEVMClient` once at app startup** — store the promise and reuse it; never call it per render. Each call returns a *new* EVM client wrapper, but they all share one underlying multichain core (the core is the singleton, and its options are merged across calls).\n- **Chain IDs are always hex strings** — use `'0x1'` (Ethereum), `'0x89'` (Polygon), `'0xaa36a7'` (Sepolia). Never use decimal numbers.\n- **`0x1` (Ethereum mainnet) is always auto-included** in `connect()` regardless of the `chainIds` you pass.\n- **The provider exists before connection** — `client.getProvider()` never returns `undefined`. But node-routed reads (`eth_blockNumber`, `eth_getBalance`, `eth_call`, …) require a **selected chain** and throw `No chain ID selected` until one is set (after `connect()` or a restored session). Only the intercepted methods `eth_chainId` and `eth_accounts` (served from cached state) are safe before connecting.\n- **Register event listeners early** — set up `accountsChanged`, `chainChanged`, and `disconnect` listeners in `useEffect` before the user connects.\n- **Error code 4001 is not an application error** — it means the user deliberately rejected. Handle it gracefully with a retry option.\n- **Error code -32002 means a request is pending** — do not fire another `connect()` call. Wait for the user to act in MetaMask.\n",{"data":39,"body":40},{"name":4,"description":6},{"type":41,"children":42},"root",[43,52,59,65,105,111,118,157,175,181,186,1106,1149,1155,1176,5422,5428,5433,6035,6041,6069,6482,6488,6493,6798,6804,7045],{"type":44,"tag":45,"props":46,"children":48},"element","h1",{"id":47},"setup-evm-react-app-with-metamask-connect",[49],{"type":50,"value":51},"text","Setup EVM React App with MetaMask Connect",{"type":44,"tag":53,"props":54,"children":56},"h2",{"id":55},"when-to-use",[57],{"type":50,"value":58},"When to use",{"type":44,"tag":60,"props":61,"children":62},"p",{},[63],{"type":50,"value":64},"Use this skill when:",{"type":44,"tag":66,"props":67,"children":68},"ul",{},[69,82,87,100],{"type":44,"tag":70,"props":71,"children":72},"li",{},[73,75],{"type":50,"value":74},"Creating a new React app that connects to MetaMask via ",{"type":44,"tag":76,"props":77,"children":79},"code",{"className":78},[],[80],{"type":50,"value":81},"@metamask\u002Fconnect-evm",{"type":44,"tag":70,"props":83,"children":84},{},[85],{"type":50,"value":86},"Adding wallet connect, sign, or send functionality to an existing React app",{"type":44,"tag":70,"props":88,"children":89},{},[90,92,98],{"type":50,"value":91},"Setting up ",{"type":44,"tag":76,"props":93,"children":95},{"className":94},[],[96],{"type":50,"value":97},"createEVMClient",{"type":50,"value":99}," with Infura RPC URLs and event handlers",{"type":44,"tag":70,"props":101,"children":102},{},[103],{"type":50,"value":104},"Building a React component that tracks accounts, chain, and balance state",{"type":44,"tag":53,"props":106,"children":108},{"id":107},"workflow",[109],{"type":50,"value":110},"Workflow",{"type":44,"tag":112,"props":113,"children":115},"h3",{"id":114},"step-1-install-dependencies",[116],{"type":50,"value":117},"Step 1: Install dependencies",{"type":44,"tag":119,"props":120,"children":125},"pre",{"className":121,"code":122,"language":123,"meta":124,"style":124},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install @metamask\u002Fconnect-evm @metamask\u002Fconnect-multichain\n","bash","",[126],{"type":44,"tag":76,"props":127,"children":128},{"__ignoreMap":124},[129],{"type":44,"tag":130,"props":131,"children":134},"span",{"class":132,"line":133},"line",1,[135,141,147,152],{"type":44,"tag":130,"props":136,"children":138},{"style":137},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[139],{"type":50,"value":140},"npm",{"type":44,"tag":130,"props":142,"children":144},{"style":143},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[145],{"type":50,"value":146}," install",{"type":44,"tag":130,"props":148,"children":149},{"style":143},[150],{"type":50,"value":151}," @metamask\u002Fconnect-evm",{"type":44,"tag":130,"props":153,"children":154},{"style":143},[155],{"type":50,"value":156}," @metamask\u002Fconnect-multichain\n",{"type":44,"tag":60,"props":158,"children":159},{},[160,166,168,173],{"type":44,"tag":76,"props":161,"children":163},{"className":162},[],[164],{"type":50,"value":165},"@metamask\u002Fconnect-multichain",{"type":50,"value":167}," is a regular dependency of ",{"type":44,"tag":76,"props":169,"children":171},{"className":170},[],[172],{"type":50,"value":81},{"type":50,"value":174}," and is installed transitively. (Only the 2.0.0 release briefly made it a peer dependency; 2.1.0 reverted that.) Installing it explicitly is harmless but not required. The SDK warns at runtime if duplicate or mismatched copies are resolved.",{"type":44,"tag":112,"props":176,"children":178},{"id":177},"step-2-create-the-evm-client",[179],{"type":50,"value":180},"Step 2: Create the EVM client",{"type":44,"tag":60,"props":182,"children":183},{},[184],{"type":50,"value":185},"Create a module that initializes the client once and exports a ready promise:",{"type":44,"tag":119,"props":187,"children":191},{"className":188,"code":189,"language":190,"meta":124,"style":124},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F src\u002Fmetamask.ts\nimport { createEVMClient, getInfuraRpcUrls } from '@metamask\u002Fconnect-evm';\nimport type { MetamaskConnectEVM } from '@metamask\u002Fconnect-evm';\n\nlet clientPromise: Promise\u003CMetamaskConnectEVM> | null = null;\n\nexport function getClient(): Promise\u003CMetamaskConnectEVM> {\n  if (!clientPromise) {\n    clientPromise = createEVMClient({\n      dapp: {\n        name: 'My React DApp',\n        url: window.location.href,\n      },\n      api: {\n        supportedNetworks: {\n          ...getInfuraRpcUrls({ infuraApiKey: 'YOUR_INFURA_KEY', chainIds: ['0x1', '0x89', '0xaa36a7'] }),\n          '0xa4b1': 'https:\u002F\u002Farb1.arbitrum.io\u002Frpc',\n        },\n      },\n      ui: {\n        headless: false,\n        preferExtension: true,\n        showInstallModal: true,\n      },\n      eventHandlers: {\n        displayUri: (uri: string) => {\n          console.log('QR URI:', uri);\n        },\n      },\n      debug: false,\n    });\n  }\n  return clientPromise;\n}\n","typescript",[192],{"type":44,"tag":76,"props":193,"children":194},{"__ignoreMap":124},[195,204,264,310,320,380,388,434,469,495,512,543,584,593,610,627,756,795,804,812,829,852,874,895,903,920,965,1017,1025,1033,1054,1071,1080,1097],{"type":44,"tag":130,"props":196,"children":197},{"class":132,"line":133},[198],{"type":44,"tag":130,"props":199,"children":201},{"style":200},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[202],{"type":50,"value":203},"\u002F\u002F src\u002Fmetamask.ts\n",{"type":44,"tag":130,"props":205,"children":206},{"class":132,"line":28},[207,213,219,225,230,235,240,245,250,254,259],{"type":44,"tag":130,"props":208,"children":210},{"style":209},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[211],{"type":50,"value":212},"import",{"type":44,"tag":130,"props":214,"children":216},{"style":215},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[217],{"type":50,"value":218}," {",{"type":44,"tag":130,"props":220,"children":222},{"style":221},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[223],{"type":50,"value":224}," createEVMClient",{"type":44,"tag":130,"props":226,"children":227},{"style":215},[228],{"type":50,"value":229},",",{"type":44,"tag":130,"props":231,"children":232},{"style":221},[233],{"type":50,"value":234}," getInfuraRpcUrls",{"type":44,"tag":130,"props":236,"children":237},{"style":215},[238],{"type":50,"value":239}," }",{"type":44,"tag":130,"props":241,"children":242},{"style":209},[243],{"type":50,"value":244}," from",{"type":44,"tag":130,"props":246,"children":247},{"style":215},[248],{"type":50,"value":249}," '",{"type":44,"tag":130,"props":251,"children":252},{"style":143},[253],{"type":50,"value":81},{"type":44,"tag":130,"props":255,"children":256},{"style":215},[257],{"type":50,"value":258},"'",{"type":44,"tag":130,"props":260,"children":261},{"style":215},[262],{"type":50,"value":263},";\n",{"type":44,"tag":130,"props":265,"children":267},{"class":132,"line":266},3,[268,272,277,281,286,290,294,298,302,306],{"type":44,"tag":130,"props":269,"children":270},{"style":209},[271],{"type":50,"value":212},{"type":44,"tag":130,"props":273,"children":274},{"style":209},[275],{"type":50,"value":276}," type",{"type":44,"tag":130,"props":278,"children":279},{"style":215},[280],{"type":50,"value":218},{"type":44,"tag":130,"props":282,"children":283},{"style":221},[284],{"type":50,"value":285}," MetamaskConnectEVM",{"type":44,"tag":130,"props":287,"children":288},{"style":215},[289],{"type":50,"value":239},{"type":44,"tag":130,"props":291,"children":292},{"style":209},[293],{"type":50,"value":244},{"type":44,"tag":130,"props":295,"children":296},{"style":215},[297],{"type":50,"value":249},{"type":44,"tag":130,"props":299,"children":300},{"style":143},[301],{"type":50,"value":81},{"type":44,"tag":130,"props":303,"children":304},{"style":215},[305],{"type":50,"value":258},{"type":44,"tag":130,"props":307,"children":308},{"style":215},[309],{"type":50,"value":263},{"type":44,"tag":130,"props":311,"children":313},{"class":132,"line":312},4,[314],{"type":44,"tag":130,"props":315,"children":317},{"emptyLinePlaceholder":316},true,[318],{"type":50,"value":319},"\n",{"type":44,"tag":130,"props":321,"children":323},{"class":132,"line":322},5,[324,330,335,340,345,350,355,360,365,370,375],{"type":44,"tag":130,"props":325,"children":327},{"style":326},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[328],{"type":50,"value":329},"let",{"type":44,"tag":130,"props":331,"children":332},{"style":221},[333],{"type":50,"value":334}," clientPromise",{"type":44,"tag":130,"props":336,"children":337},{"style":215},[338],{"type":50,"value":339},":",{"type":44,"tag":130,"props":341,"children":342},{"style":137},[343],{"type":50,"value":344}," Promise",{"type":44,"tag":130,"props":346,"children":347},{"style":215},[348],{"type":50,"value":349},"\u003C",{"type":44,"tag":130,"props":351,"children":352},{"style":137},[353],{"type":50,"value":354},"MetamaskConnectEVM",{"type":44,"tag":130,"props":356,"children":357},{"style":215},[358],{"type":50,"value":359},">",{"type":44,"tag":130,"props":361,"children":362},{"style":215},[363],{"type":50,"value":364}," |",{"type":44,"tag":130,"props":366,"children":367},{"style":137},[368],{"type":50,"value":369}," null",{"type":44,"tag":130,"props":371,"children":372},{"style":215},[373],{"type":50,"value":374}," =",{"type":44,"tag":130,"props":376,"children":377},{"style":215},[378],{"type":50,"value":379}," null;\n",{"type":44,"tag":130,"props":381,"children":383},{"class":132,"line":382},6,[384],{"type":44,"tag":130,"props":385,"children":386},{"emptyLinePlaceholder":316},[387],{"type":50,"value":319},{"type":44,"tag":130,"props":389,"children":391},{"class":132,"line":390},7,[392,397,402,408,413,417,421,425,429],{"type":44,"tag":130,"props":393,"children":394},{"style":209},[395],{"type":50,"value":396},"export",{"type":44,"tag":130,"props":398,"children":399},{"style":326},[400],{"type":50,"value":401}," function",{"type":44,"tag":130,"props":403,"children":405},{"style":404},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[406],{"type":50,"value":407}," getClient",{"type":44,"tag":130,"props":409,"children":410},{"style":215},[411],{"type":50,"value":412},"():",{"type":44,"tag":130,"props":414,"children":415},{"style":137},[416],{"type":50,"value":344},{"type":44,"tag":130,"props":418,"children":419},{"style":215},[420],{"type":50,"value":349},{"type":44,"tag":130,"props":422,"children":423},{"style":137},[424],{"type":50,"value":354},{"type":44,"tag":130,"props":426,"children":427},{"style":215},[428],{"type":50,"value":359},{"type":44,"tag":130,"props":430,"children":431},{"style":215},[432],{"type":50,"value":433}," {\n",{"type":44,"tag":130,"props":435,"children":437},{"class":132,"line":436},8,[438,443,449,454,459,464],{"type":44,"tag":130,"props":439,"children":440},{"style":209},[441],{"type":50,"value":442},"  if",{"type":44,"tag":130,"props":444,"children":446},{"style":445},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[447],{"type":50,"value":448}," (",{"type":44,"tag":130,"props":450,"children":451},{"style":215},[452],{"type":50,"value":453},"!",{"type":44,"tag":130,"props":455,"children":456},{"style":221},[457],{"type":50,"value":458},"clientPromise",{"type":44,"tag":130,"props":460,"children":461},{"style":445},[462],{"type":50,"value":463},") ",{"type":44,"tag":130,"props":465,"children":466},{"style":215},[467],{"type":50,"value":468},"{\n",{"type":44,"tag":130,"props":470,"children":472},{"class":132,"line":471},9,[473,478,482,486,491],{"type":44,"tag":130,"props":474,"children":475},{"style":221},[476],{"type":50,"value":477},"    clientPromise",{"type":44,"tag":130,"props":479,"children":480},{"style":215},[481],{"type":50,"value":374},{"type":44,"tag":130,"props":483,"children":484},{"style":404},[485],{"type":50,"value":224},{"type":44,"tag":130,"props":487,"children":488},{"style":445},[489],{"type":50,"value":490},"(",{"type":44,"tag":130,"props":492,"children":493},{"style":215},[494],{"type":50,"value":468},{"type":44,"tag":130,"props":496,"children":498},{"class":132,"line":497},10,[499,504,508],{"type":44,"tag":130,"props":500,"children":501},{"style":445},[502],{"type":50,"value":503},"      dapp",{"type":44,"tag":130,"props":505,"children":506},{"style":215},[507],{"type":50,"value":339},{"type":44,"tag":130,"props":509,"children":510},{"style":215},[511],{"type":50,"value":433},{"type":44,"tag":130,"props":513,"children":515},{"class":132,"line":514},11,[516,521,525,529,534,538],{"type":44,"tag":130,"props":517,"children":518},{"style":445},[519],{"type":50,"value":520},"        name",{"type":44,"tag":130,"props":522,"children":523},{"style":215},[524],{"type":50,"value":339},{"type":44,"tag":130,"props":526,"children":527},{"style":215},[528],{"type":50,"value":249},{"type":44,"tag":130,"props":530,"children":531},{"style":143},[532],{"type":50,"value":533},"My React DApp",{"type":44,"tag":130,"props":535,"children":536},{"style":215},[537],{"type":50,"value":258},{"type":44,"tag":130,"props":539,"children":540},{"style":215},[541],{"type":50,"value":542},",\n",{"type":44,"tag":130,"props":544,"children":546},{"class":132,"line":545},12,[547,552,556,561,566,571,575,580],{"type":44,"tag":130,"props":548,"children":549},{"style":445},[550],{"type":50,"value":551},"        url",{"type":44,"tag":130,"props":553,"children":554},{"style":215},[555],{"type":50,"value":339},{"type":44,"tag":130,"props":557,"children":558},{"style":221},[559],{"type":50,"value":560}," window",{"type":44,"tag":130,"props":562,"children":563},{"style":215},[564],{"type":50,"value":565},".",{"type":44,"tag":130,"props":567,"children":568},{"style":221},[569],{"type":50,"value":570},"location",{"type":44,"tag":130,"props":572,"children":573},{"style":215},[574],{"type":50,"value":565},{"type":44,"tag":130,"props":576,"children":577},{"style":221},[578],{"type":50,"value":579},"href",{"type":44,"tag":130,"props":581,"children":582},{"style":215},[583],{"type":50,"value":542},{"type":44,"tag":130,"props":585,"children":587},{"class":132,"line":586},13,[588],{"type":44,"tag":130,"props":589,"children":590},{"style":215},[591],{"type":50,"value":592},"      },\n",{"type":44,"tag":130,"props":594,"children":596},{"class":132,"line":595},14,[597,602,606],{"type":44,"tag":130,"props":598,"children":599},{"style":445},[600],{"type":50,"value":601},"      api",{"type":44,"tag":130,"props":603,"children":604},{"style":215},[605],{"type":50,"value":339},{"type":44,"tag":130,"props":607,"children":608},{"style":215},[609],{"type":50,"value":433},{"type":44,"tag":130,"props":611,"children":613},{"class":132,"line":612},15,[614,619,623],{"type":44,"tag":130,"props":615,"children":616},{"style":445},[617],{"type":50,"value":618},"        supportedNetworks",{"type":44,"tag":130,"props":620,"children":621},{"style":215},[622],{"type":50,"value":339},{"type":44,"tag":130,"props":624,"children":625},{"style":215},[626],{"type":50,"value":433},{"type":44,"tag":130,"props":628,"children":630},{"class":132,"line":629},16,[631,636,641,645,650,655,659,663,668,672,676,681,685,690,694,699,703,707,711,716,720,724,728,733,737,742,747,752],{"type":44,"tag":130,"props":632,"children":633},{"style":215},[634],{"type":50,"value":635},"          ...",{"type":44,"tag":130,"props":637,"children":638},{"style":404},[639],{"type":50,"value":640},"getInfuraRpcUrls",{"type":44,"tag":130,"props":642,"children":643},{"style":445},[644],{"type":50,"value":490},{"type":44,"tag":130,"props":646,"children":647},{"style":215},[648],{"type":50,"value":649},"{",{"type":44,"tag":130,"props":651,"children":652},{"style":445},[653],{"type":50,"value":654}," infuraApiKey",{"type":44,"tag":130,"props":656,"children":657},{"style":215},[658],{"type":50,"value":339},{"type":44,"tag":130,"props":660,"children":661},{"style":215},[662],{"type":50,"value":249},{"type":44,"tag":130,"props":664,"children":665},{"style":143},[666],{"type":50,"value":667},"YOUR_INFURA_KEY",{"type":44,"tag":130,"props":669,"children":670},{"style":215},[671],{"type":50,"value":258},{"type":44,"tag":130,"props":673,"children":674},{"style":215},[675],{"type":50,"value":229},{"type":44,"tag":130,"props":677,"children":678},{"style":445},[679],{"type":50,"value":680}," chainIds",{"type":44,"tag":130,"props":682,"children":683},{"style":215},[684],{"type":50,"value":339},{"type":44,"tag":130,"props":686,"children":687},{"style":445},[688],{"type":50,"value":689}," [",{"type":44,"tag":130,"props":691,"children":692},{"style":215},[693],{"type":50,"value":258},{"type":44,"tag":130,"props":695,"children":696},{"style":143},[697],{"type":50,"value":698},"0x1",{"type":44,"tag":130,"props":700,"children":701},{"style":215},[702],{"type":50,"value":258},{"type":44,"tag":130,"props":704,"children":705},{"style":215},[706],{"type":50,"value":229},{"type":44,"tag":130,"props":708,"children":709},{"style":215},[710],{"type":50,"value":249},{"type":44,"tag":130,"props":712,"children":713},{"style":143},[714],{"type":50,"value":715},"0x89",{"type":44,"tag":130,"props":717,"children":718},{"style":215},[719],{"type":50,"value":258},{"type":44,"tag":130,"props":721,"children":722},{"style":215},[723],{"type":50,"value":229},{"type":44,"tag":130,"props":725,"children":726},{"style":215},[727],{"type":50,"value":249},{"type":44,"tag":130,"props":729,"children":730},{"style":143},[731],{"type":50,"value":732},"0xaa36a7",{"type":44,"tag":130,"props":734,"children":735},{"style":215},[736],{"type":50,"value":258},{"type":44,"tag":130,"props":738,"children":739},{"style":445},[740],{"type":50,"value":741},"] ",{"type":44,"tag":130,"props":743,"children":744},{"style":215},[745],{"type":50,"value":746},"}",{"type":44,"tag":130,"props":748,"children":749},{"style":445},[750],{"type":50,"value":751},")",{"type":44,"tag":130,"props":753,"children":754},{"style":215},[755],{"type":50,"value":542},{"type":44,"tag":130,"props":757,"children":759},{"class":132,"line":758},17,[760,765,770,774,778,782,787,791],{"type":44,"tag":130,"props":761,"children":762},{"style":215},[763],{"type":50,"value":764},"          '",{"type":44,"tag":130,"props":766,"children":767},{"style":445},[768],{"type":50,"value":769},"0xa4b1",{"type":44,"tag":130,"props":771,"children":772},{"style":215},[773],{"type":50,"value":258},{"type":44,"tag":130,"props":775,"children":776},{"style":215},[777],{"type":50,"value":339},{"type":44,"tag":130,"props":779,"children":780},{"style":215},[781],{"type":50,"value":249},{"type":44,"tag":130,"props":783,"children":784},{"style":143},[785],{"type":50,"value":786},"https:\u002F\u002Farb1.arbitrum.io\u002Frpc",{"type":44,"tag":130,"props":788,"children":789},{"style":215},[790],{"type":50,"value":258},{"type":44,"tag":130,"props":792,"children":793},{"style":215},[794],{"type":50,"value":542},{"type":44,"tag":130,"props":796,"children":798},{"class":132,"line":797},18,[799],{"type":44,"tag":130,"props":800,"children":801},{"style":215},[802],{"type":50,"value":803},"        },\n",{"type":44,"tag":130,"props":805,"children":807},{"class":132,"line":806},19,[808],{"type":44,"tag":130,"props":809,"children":810},{"style":215},[811],{"type":50,"value":592},{"type":44,"tag":130,"props":813,"children":815},{"class":132,"line":814},20,[816,821,825],{"type":44,"tag":130,"props":817,"children":818},{"style":445},[819],{"type":50,"value":820},"      ui",{"type":44,"tag":130,"props":822,"children":823},{"style":215},[824],{"type":50,"value":339},{"type":44,"tag":130,"props":826,"children":827},{"style":215},[828],{"type":50,"value":433},{"type":44,"tag":130,"props":830,"children":832},{"class":132,"line":831},21,[833,838,842,848],{"type":44,"tag":130,"props":834,"children":835},{"style":445},[836],{"type":50,"value":837},"        headless",{"type":44,"tag":130,"props":839,"children":840},{"style":215},[841],{"type":50,"value":339},{"type":44,"tag":130,"props":843,"children":845},{"style":844},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[846],{"type":50,"value":847}," false",{"type":44,"tag":130,"props":849,"children":850},{"style":215},[851],{"type":50,"value":542},{"type":44,"tag":130,"props":853,"children":855},{"class":132,"line":854},22,[856,861,865,870],{"type":44,"tag":130,"props":857,"children":858},{"style":445},[859],{"type":50,"value":860},"        preferExtension",{"type":44,"tag":130,"props":862,"children":863},{"style":215},[864],{"type":50,"value":339},{"type":44,"tag":130,"props":866,"children":867},{"style":844},[868],{"type":50,"value":869}," true",{"type":44,"tag":130,"props":871,"children":872},{"style":215},[873],{"type":50,"value":542},{"type":44,"tag":130,"props":875,"children":877},{"class":132,"line":876},23,[878,883,887,891],{"type":44,"tag":130,"props":879,"children":880},{"style":445},[881],{"type":50,"value":882},"        showInstallModal",{"type":44,"tag":130,"props":884,"children":885},{"style":215},[886],{"type":50,"value":339},{"type":44,"tag":130,"props":888,"children":889},{"style":844},[890],{"type":50,"value":869},{"type":44,"tag":130,"props":892,"children":893},{"style":215},[894],{"type":50,"value":542},{"type":44,"tag":130,"props":896,"children":898},{"class":132,"line":897},24,[899],{"type":44,"tag":130,"props":900,"children":901},{"style":215},[902],{"type":50,"value":592},{"type":44,"tag":130,"props":904,"children":906},{"class":132,"line":905},25,[907,912,916],{"type":44,"tag":130,"props":908,"children":909},{"style":445},[910],{"type":50,"value":911},"      eventHandlers",{"type":44,"tag":130,"props":913,"children":914},{"style":215},[915],{"type":50,"value":339},{"type":44,"tag":130,"props":917,"children":918},{"style":215},[919],{"type":50,"value":433},{"type":44,"tag":130,"props":921,"children":923},{"class":132,"line":922},26,[924,929,933,937,943,947,952,956,961],{"type":44,"tag":130,"props":925,"children":926},{"style":404},[927],{"type":50,"value":928},"        displayUri",{"type":44,"tag":130,"props":930,"children":931},{"style":215},[932],{"type":50,"value":339},{"type":44,"tag":130,"props":934,"children":935},{"style":215},[936],{"type":50,"value":448},{"type":44,"tag":130,"props":938,"children":940},{"style":939},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[941],{"type":50,"value":942},"uri",{"type":44,"tag":130,"props":944,"children":945},{"style":215},[946],{"type":50,"value":339},{"type":44,"tag":130,"props":948,"children":949},{"style":137},[950],{"type":50,"value":951}," string",{"type":44,"tag":130,"props":953,"children":954},{"style":215},[955],{"type":50,"value":751},{"type":44,"tag":130,"props":957,"children":958},{"style":326},[959],{"type":50,"value":960}," =>",{"type":44,"tag":130,"props":962,"children":963},{"style":215},[964],{"type":50,"value":433},{"type":44,"tag":130,"props":966,"children":968},{"class":132,"line":967},27,[969,974,978,983,987,991,996,1000,1004,1009,1013],{"type":44,"tag":130,"props":970,"children":971},{"style":221},[972],{"type":50,"value":973},"          console",{"type":44,"tag":130,"props":975,"children":976},{"style":215},[977],{"type":50,"value":565},{"type":44,"tag":130,"props":979,"children":980},{"style":404},[981],{"type":50,"value":982},"log",{"type":44,"tag":130,"props":984,"children":985},{"style":445},[986],{"type":50,"value":490},{"type":44,"tag":130,"props":988,"children":989},{"style":215},[990],{"type":50,"value":258},{"type":44,"tag":130,"props":992,"children":993},{"style":143},[994],{"type":50,"value":995},"QR URI:",{"type":44,"tag":130,"props":997,"children":998},{"style":215},[999],{"type":50,"value":258},{"type":44,"tag":130,"props":1001,"children":1002},{"style":215},[1003],{"type":50,"value":229},{"type":44,"tag":130,"props":1005,"children":1006},{"style":221},[1007],{"type":50,"value":1008}," uri",{"type":44,"tag":130,"props":1010,"children":1011},{"style":445},[1012],{"type":50,"value":751},{"type":44,"tag":130,"props":1014,"children":1015},{"style":215},[1016],{"type":50,"value":263},{"type":44,"tag":130,"props":1018,"children":1020},{"class":132,"line":1019},28,[1021],{"type":44,"tag":130,"props":1022,"children":1023},{"style":215},[1024],{"type":50,"value":803},{"type":44,"tag":130,"props":1026,"children":1028},{"class":132,"line":1027},29,[1029],{"type":44,"tag":130,"props":1030,"children":1031},{"style":215},[1032],{"type":50,"value":592},{"type":44,"tag":130,"props":1034,"children":1036},{"class":132,"line":1035},30,[1037,1042,1046,1050],{"type":44,"tag":130,"props":1038,"children":1039},{"style":445},[1040],{"type":50,"value":1041},"      debug",{"type":44,"tag":130,"props":1043,"children":1044},{"style":215},[1045],{"type":50,"value":339},{"type":44,"tag":130,"props":1047,"children":1048},{"style":844},[1049],{"type":50,"value":847},{"type":44,"tag":130,"props":1051,"children":1052},{"style":215},[1053],{"type":50,"value":542},{"type":44,"tag":130,"props":1055,"children":1057},{"class":132,"line":1056},31,[1058,1063,1067],{"type":44,"tag":130,"props":1059,"children":1060},{"style":215},[1061],{"type":50,"value":1062},"    }",{"type":44,"tag":130,"props":1064,"children":1065},{"style":445},[1066],{"type":50,"value":751},{"type":44,"tag":130,"props":1068,"children":1069},{"style":215},[1070],{"type":50,"value":263},{"type":44,"tag":130,"props":1072,"children":1074},{"class":132,"line":1073},32,[1075],{"type":44,"tag":130,"props":1076,"children":1077},{"style":215},[1078],{"type":50,"value":1079},"  }\n",{"type":44,"tag":130,"props":1081,"children":1083},{"class":132,"line":1082},33,[1084,1089,1093],{"type":44,"tag":130,"props":1085,"children":1086},{"style":209},[1087],{"type":50,"value":1088},"  return",{"type":44,"tag":130,"props":1090,"children":1091},{"style":221},[1092],{"type":50,"value":334},{"type":44,"tag":130,"props":1094,"children":1095},{"style":215},[1096],{"type":50,"value":263},{"type":44,"tag":130,"props":1098,"children":1100},{"class":132,"line":1099},34,[1101],{"type":44,"tag":130,"props":1102,"children":1103},{"style":215},[1104],{"type":50,"value":1105},"}\n",{"type":44,"tag":60,"props":1107,"children":1108},{},[1109,1115,1117,1123,1125,1131,1133,1139,1141,1147],{"type":44,"tag":76,"props":1110,"children":1112},{"className":1111},[],[1113],{"type":50,"value":1114},"getInfuraRpcUrls({ infuraApiKey, chainIds? })",{"type":50,"value":1116}," returns a ",{"type":44,"tag":76,"props":1118,"children":1120},{"className":1119},[],[1121],{"type":50,"value":1122},"Record\u003CHex, string>",{"type":50,"value":1124}," mapping hex chain IDs to Infura RPC URLs for all Infura-supported EVM chains. Pass an optional ",{"type":44,"tag":76,"props":1126,"children":1128},{"className":1127},[],[1129],{"type":50,"value":1130},"chainIds",{"type":50,"value":1132}," array (hex strings, e.g. ",{"type":44,"tag":76,"props":1134,"children":1136},{"className":1135},[],[1137],{"type":50,"value":1138},"['0x1', '0x89']",{"type":50,"value":1140},") to limit the output to specific chains. Spread it into ",{"type":44,"tag":76,"props":1142,"children":1144},{"className":1143},[],[1145],{"type":50,"value":1146},"supportedNetworks",{"type":50,"value":1148}," and add custom RPCs for any additional chains.",{"type":44,"tag":112,"props":1150,"children":1152},{"id":1151},"step-3-build-the-wallet-component",[1153],{"type":50,"value":1154},"Step 3: Build the wallet component",{"type":44,"tag":60,"props":1156,"children":1157},{},[1158,1160,1166,1168,1174],{"type":50,"value":1159},"Use ",{"type":44,"tag":76,"props":1161,"children":1163},{"className":1162},[],[1164],{"type":50,"value":1165},"useRef",{"type":50,"value":1167}," to hold the client instance and ",{"type":44,"tag":76,"props":1169,"children":1171},{"className":1170},[],[1172],{"type":50,"value":1173},"useState",{"type":50,"value":1175}," for reactive UI state:",{"type":44,"tag":119,"props":1177,"children":1181},{"className":1178,"code":1179,"language":1180,"meta":124,"style":124},"language-tsx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F src\u002FWalletConnect.tsx\nimport { useEffect, useRef, useState, useCallback } from 'react';\nimport { getClient } from '.\u002Fmetamask';\nimport type { MetamaskConnectEVM } from '@metamask\u002Fconnect-evm';\nimport type { Hex, Address } from '@metamask\u002Fconnect-evm';\n\nexport function WalletConnect() {\n  const clientRef = useRef\u003CMetamaskConnectEVM | null>(null);\n  const [accounts, setAccounts] = useState\u003CAddress[]>([]);\n  const [chainId, setChainId] = useState\u003CHex | null>(null);\n  const [balance, setBalance] = useState\u003Cstring>('');\n  const [connecting, setConnecting] = useState(false);\n  const [error, setError] = useState\u003Cstring | null>(null);\n\n  useEffect(() => {\n    let mounted = true;\n\n    async function init() {\n      const client = await getClient();\n      if (!mounted) return;\n      clientRef.current = client;\n\n      const provider = client.getProvider();\n\n      provider.on('accountsChanged', (accs: Address[]) => {\n        if (mounted) setAccounts(accs);\n      });\n\n      provider.on('chainChanged', (id: Hex) => {\n        if (mounted) setChainId(id);\n      });\n\n      provider.on('disconnect', () => {\n        if (mounted) {\n          setAccounts([]);\n          setChainId(null);\n          setBalance('');\n        }\n      });\n    }\n\n    init();\n    return () => { mounted = false; };\n  }, []);\n\n  const handleConnect = useCallback(async () => {\n    const client = clientRef.current;\n    if (!client) return;\n\n    setConnecting(true);\n    setError(null);\n\n    try {\n      const result = await client.connect({ chainIds: ['0x1'] });\n      setAccounts(result.accounts as Address[]);\n      setChainId(result.chainId as Hex);\n    } catch (err: any) {\n      if (err.code === 4001) {\n        setError('Connection rejected. Please try again.');\n        return;\n      }\n      if (err.code === -32002) {\n        setError('A connection request is already pending. Check MetaMask.');\n        return;\n      }\n      setError(err.message ?? 'Connection failed');\n    } finally {\n      setConnecting(false);\n    }\n  }, []);\n\n  const handleDisconnect = useCallback(async () => {\n    const client = clientRef.current;\n    if (!client) return;\n    await client.disconnect();\n    setAccounts([]);\n    setChainId(null);\n    setBalance('');\n  }, []);\n\n  const fetchBalance = useCallback(async () => {\n    const client = clientRef.current;\n    if (!client || accounts.length === 0) return;\n\n    const provider = client.getProvider();\n    const wei = await provider.request({\n      method: 'eth_getBalance',\n      params: [accounts[0], 'latest'],\n    }) as Hex;\n\n    const ethBalance = parseInt(wei, 16) \u002F 1e18;\n    setBalance(ethBalance.toFixed(6));\n  }, [accounts]);\n\n  \u002F\u002F chainConfiguration must match the target chain (and include its chainId) —\n  \u002F\u002F the wallet receives it verbatim as wallet_addEthereumChain params\n  const handleSwitchToPolygon = useCallback(async () => {\n    const client = clientRef.current;\n    if (!client) return;\n\n    try {\n      await client.switchChain({\n        chainId: '0x89',\n        chainConfiguration: {\n          chainId: '0x89',\n          chainName: 'Polygon',\n          nativeCurrency: { name: 'MATIC', symbol: 'MATIC', decimals: 18 },\n          rpcUrls: ['https:\u002F\u002Fpolygon-rpc.com'],\n          blockExplorerUrls: ['https:\u002F\u002Fpolygonscan.com'],\n        },\n      });\n    } catch (err: any) {\n      if (err.code === 4001) {\n        setError('Chain switch rejected by user.');\n      }\n    }\n  }, []);\n\n  const isConnected = accounts.length > 0;\n\n  if (!isConnected) {\n    return (\n      \u003Cdiv>\n        \u003Cbutton onClick={handleConnect} disabled={connecting}>\n          {connecting ? 'Connecting...' : 'Connect MetaMask'}\n        \u003C\u002Fbutton>\n        {error && \u003Cp style={{ color: 'red' }}>{error}\u003C\u002Fp>}\n      \u003C\u002Fdiv>\n    );\n  }\n\n  return (\n    \u003Cdiv>\n      \u003Cp>Account: {accounts[0]}\u003C\u002Fp>\n      \u003Cp>Chain ID: {chainId}\u003C\u002Fp>\n      \u003Cp>Balance: {balance || '—'} ETH\u003C\u002Fp>\n      \u003Cbutton onClick={fetchBalance}>Refresh Balance\u003C\u002Fbutton>\n      \u003Cbutton onClick={handleSwitchToPolygon}>Switch to Polygon\u003C\u002Fbutton>\n      \u003Cbutton onClick={handleDisconnect}>Disconnect\u003C\u002Fbutton>\n      {error && \u003Cp style={{ color: 'red' }}>{error}\u003C\u002Fp>}\n    \u003C\u002Fdiv>\n  );\n}\n","tsx",[1182],{"type":44,"tag":76,"props":1183,"children":1184},{"__ignoreMap":124},[1185,1193,1260,1300,1343,1396,1403,1428,1486,1551,1625,1692,1746,1819,1826,1850,1875,1882,1907,1941,1975,2004,2011,2048,2055,2126,2167,2183,2190,2255,2295,2310,2317,2366,2389,2406,2431,2456,2465,2481,2490,2498,2515,2558,2576,2584,2626,2659,2693,2701,2727,2752,2760,2773,2855,2899,2940,2979,3022,3056,3069,3078,3124,3157,3169,3177,3229,3246,3271,3279,3295,3303,3344,3376,3408,3437,3454,3479,3504,3520,3528,3569,3601,3661,3669,3705,3747,3777,3837,3862,3870,3928,3972,3997,4005,4014,4023,4064,4096,4128,4136,4148,4178,4207,4224,4253,4283,4370,4408,4446,4454,4470,4506,4546,4579,4587,4595,4611,4619,4661,4669,4698,4711,4730,4782,4836,4853,4936,4953,4966,4974,4982,4994,5011,5061,5102,5172,5219,5265,5311,5384,5401,5414],{"type":44,"tag":130,"props":1186,"children":1187},{"class":132,"line":133},[1188],{"type":44,"tag":130,"props":1189,"children":1190},{"style":200},[1191],{"type":50,"value":1192},"\u002F\u002F src\u002FWalletConnect.tsx\n",{"type":44,"tag":130,"props":1194,"children":1195},{"class":132,"line":28},[1196,1200,1204,1209,1213,1218,1222,1227,1231,1236,1240,1244,1248,1252,1256],{"type":44,"tag":130,"props":1197,"children":1198},{"style":209},[1199],{"type":50,"value":212},{"type":44,"tag":130,"props":1201,"children":1202},{"style":215},[1203],{"type":50,"value":218},{"type":44,"tag":130,"props":1205,"children":1206},{"style":221},[1207],{"type":50,"value":1208}," useEffect",{"type":44,"tag":130,"props":1210,"children":1211},{"style":215},[1212],{"type":50,"value":229},{"type":44,"tag":130,"props":1214,"children":1215},{"style":221},[1216],{"type":50,"value":1217}," useRef",{"type":44,"tag":130,"props":1219,"children":1220},{"style":215},[1221],{"type":50,"value":229},{"type":44,"tag":130,"props":1223,"children":1224},{"style":221},[1225],{"type":50,"value":1226}," useState",{"type":44,"tag":130,"props":1228,"children":1229},{"style":215},[1230],{"type":50,"value":229},{"type":44,"tag":130,"props":1232,"children":1233},{"style":221},[1234],{"type":50,"value":1235}," useCallback",{"type":44,"tag":130,"props":1237,"children":1238},{"style":215},[1239],{"type":50,"value":239},{"type":44,"tag":130,"props":1241,"children":1242},{"style":209},[1243],{"type":50,"value":244},{"type":44,"tag":130,"props":1245,"children":1246},{"style":215},[1247],{"type":50,"value":249},{"type":44,"tag":130,"props":1249,"children":1250},{"style":143},[1251],{"type":50,"value":14},{"type":44,"tag":130,"props":1253,"children":1254},{"style":215},[1255],{"type":50,"value":258},{"type":44,"tag":130,"props":1257,"children":1258},{"style":215},[1259],{"type":50,"value":263},{"type":44,"tag":130,"props":1261,"children":1262},{"class":132,"line":266},[1263,1267,1271,1275,1279,1283,1287,1292,1296],{"type":44,"tag":130,"props":1264,"children":1265},{"style":209},[1266],{"type":50,"value":212},{"type":44,"tag":130,"props":1268,"children":1269},{"style":215},[1270],{"type":50,"value":218},{"type":44,"tag":130,"props":1272,"children":1273},{"style":221},[1274],{"type":50,"value":407},{"type":44,"tag":130,"props":1276,"children":1277},{"style":215},[1278],{"type":50,"value":239},{"type":44,"tag":130,"props":1280,"children":1281},{"style":209},[1282],{"type":50,"value":244},{"type":44,"tag":130,"props":1284,"children":1285},{"style":215},[1286],{"type":50,"value":249},{"type":44,"tag":130,"props":1288,"children":1289},{"style":143},[1290],{"type":50,"value":1291},".\u002Fmetamask",{"type":44,"tag":130,"props":1293,"children":1294},{"style":215},[1295],{"type":50,"value":258},{"type":44,"tag":130,"props":1297,"children":1298},{"style":215},[1299],{"type":50,"value":263},{"type":44,"tag":130,"props":1301,"children":1302},{"class":132,"line":312},[1303,1307,1311,1315,1319,1323,1327,1331,1335,1339],{"type":44,"tag":130,"props":1304,"children":1305},{"style":209},[1306],{"type":50,"value":212},{"type":44,"tag":130,"props":1308,"children":1309},{"style":209},[1310],{"type":50,"value":276},{"type":44,"tag":130,"props":1312,"children":1313},{"style":215},[1314],{"type":50,"value":218},{"type":44,"tag":130,"props":1316,"children":1317},{"style":221},[1318],{"type":50,"value":285},{"type":44,"tag":130,"props":1320,"children":1321},{"style":215},[1322],{"type":50,"value":239},{"type":44,"tag":130,"props":1324,"children":1325},{"style":209},[1326],{"type":50,"value":244},{"type":44,"tag":130,"props":1328,"children":1329},{"style":215},[1330],{"type":50,"value":249},{"type":44,"tag":130,"props":1332,"children":1333},{"style":143},[1334],{"type":50,"value":81},{"type":44,"tag":130,"props":1336,"children":1337},{"style":215},[1338],{"type":50,"value":258},{"type":44,"tag":130,"props":1340,"children":1341},{"style":215},[1342],{"type":50,"value":263},{"type":44,"tag":130,"props":1344,"children":1345},{"class":132,"line":322},[1346,1350,1354,1358,1363,1367,1372,1376,1380,1384,1388,1392],{"type":44,"tag":130,"props":1347,"children":1348},{"style":209},[1349],{"type":50,"value":212},{"type":44,"tag":130,"props":1351,"children":1352},{"style":209},[1353],{"type":50,"value":276},{"type":44,"tag":130,"props":1355,"children":1356},{"style":215},[1357],{"type":50,"value":218},{"type":44,"tag":130,"props":1359,"children":1360},{"style":221},[1361],{"type":50,"value":1362}," Hex",{"type":44,"tag":130,"props":1364,"children":1365},{"style":215},[1366],{"type":50,"value":229},{"type":44,"tag":130,"props":1368,"children":1369},{"style":221},[1370],{"type":50,"value":1371}," Address",{"type":44,"tag":130,"props":1373,"children":1374},{"style":215},[1375],{"type":50,"value":239},{"type":44,"tag":130,"props":1377,"children":1378},{"style":209},[1379],{"type":50,"value":244},{"type":44,"tag":130,"props":1381,"children":1382},{"style":215},[1383],{"type":50,"value":249},{"type":44,"tag":130,"props":1385,"children":1386},{"style":143},[1387],{"type":50,"value":81},{"type":44,"tag":130,"props":1389,"children":1390},{"style":215},[1391],{"type":50,"value":258},{"type":44,"tag":130,"props":1393,"children":1394},{"style":215},[1395],{"type":50,"value":263},{"type":44,"tag":130,"props":1397,"children":1398},{"class":132,"line":382},[1399],{"type":44,"tag":130,"props":1400,"children":1401},{"emptyLinePlaceholder":316},[1402],{"type":50,"value":319},{"type":44,"tag":130,"props":1404,"children":1405},{"class":132,"line":390},[1406,1410,1414,1419,1424],{"type":44,"tag":130,"props":1407,"children":1408},{"style":209},[1409],{"type":50,"value":396},{"type":44,"tag":130,"props":1411,"children":1412},{"style":326},[1413],{"type":50,"value":401},{"type":44,"tag":130,"props":1415,"children":1416},{"style":404},[1417],{"type":50,"value":1418}," WalletConnect",{"type":44,"tag":130,"props":1420,"children":1421},{"style":215},[1422],{"type":50,"value":1423},"()",{"type":44,"tag":130,"props":1425,"children":1426},{"style":215},[1427],{"type":50,"value":433},{"type":44,"tag":130,"props":1429,"children":1430},{"class":132,"line":436},[1431,1436,1441,1445,1449,1453,1457,1461,1465,1469,1473,1478,1482],{"type":44,"tag":130,"props":1432,"children":1433},{"style":326},[1434],{"type":50,"value":1435},"  const",{"type":44,"tag":130,"props":1437,"children":1438},{"style":221},[1439],{"type":50,"value":1440}," clientRef",{"type":44,"tag":130,"props":1442,"children":1443},{"style":215},[1444],{"type":50,"value":374},{"type":44,"tag":130,"props":1446,"children":1447},{"style":404},[1448],{"type":50,"value":1217},{"type":44,"tag":130,"props":1450,"children":1451},{"style":215},[1452],{"type":50,"value":349},{"type":44,"tag":130,"props":1454,"children":1455},{"style":137},[1456],{"type":50,"value":354},{"type":44,"tag":130,"props":1458,"children":1459},{"style":215},[1460],{"type":50,"value":364},{"type":44,"tag":130,"props":1462,"children":1463},{"style":137},[1464],{"type":50,"value":369},{"type":44,"tag":130,"props":1466,"children":1467},{"style":215},[1468],{"type":50,"value":359},{"type":44,"tag":130,"props":1470,"children":1471},{"style":445},[1472],{"type":50,"value":490},{"type":44,"tag":130,"props":1474,"children":1475},{"style":215},[1476],{"type":50,"value":1477},"null",{"type":44,"tag":130,"props":1479,"children":1480},{"style":445},[1481],{"type":50,"value":751},{"type":44,"tag":130,"props":1483,"children":1484},{"style":215},[1485],{"type":50,"value":263},{"type":44,"tag":130,"props":1487,"children":1488},{"class":132,"line":471},[1489,1493,1497,1502,1506,1511,1516,1520,1524,1528,1533,1538,1542,1547],{"type":44,"tag":130,"props":1490,"children":1491},{"style":326},[1492],{"type":50,"value":1435},{"type":44,"tag":130,"props":1494,"children":1495},{"style":215},[1496],{"type":50,"value":689},{"type":44,"tag":130,"props":1498,"children":1499},{"style":221},[1500],{"type":50,"value":1501},"accounts",{"type":44,"tag":130,"props":1503,"children":1504},{"style":215},[1505],{"type":50,"value":229},{"type":44,"tag":130,"props":1507,"children":1508},{"style":221},[1509],{"type":50,"value":1510}," setAccounts",{"type":44,"tag":130,"props":1512,"children":1513},{"style":215},[1514],{"type":50,"value":1515},"]",{"type":44,"tag":130,"props":1517,"children":1518},{"style":215},[1519],{"type":50,"value":374},{"type":44,"tag":130,"props":1521,"children":1522},{"style":404},[1523],{"type":50,"value":1226},{"type":44,"tag":130,"props":1525,"children":1526},{"style":215},[1527],{"type":50,"value":349},{"type":44,"tag":130,"props":1529,"children":1530},{"style":137},[1531],{"type":50,"value":1532},"Address",{"type":44,"tag":130,"props":1534,"children":1535},{"style":445},[1536],{"type":50,"value":1537},"[]",{"type":44,"tag":130,"props":1539,"children":1540},{"style":215},[1541],{"type":50,"value":359},{"type":44,"tag":130,"props":1543,"children":1544},{"style":445},[1545],{"type":50,"value":1546},"([])",{"type":44,"tag":130,"props":1548,"children":1549},{"style":215},[1550],{"type":50,"value":263},{"type":44,"tag":130,"props":1552,"children":1553},{"class":132,"line":497},[1554,1558,1562,1567,1571,1576,1580,1584,1588,1592,1597,1601,1605,1609,1613,1617,1621],{"type":44,"tag":130,"props":1555,"children":1556},{"style":326},[1557],{"type":50,"value":1435},{"type":44,"tag":130,"props":1559,"children":1560},{"style":215},[1561],{"type":50,"value":689},{"type":44,"tag":130,"props":1563,"children":1564},{"style":221},[1565],{"type":50,"value":1566},"chainId",{"type":44,"tag":130,"props":1568,"children":1569},{"style":215},[1570],{"type":50,"value":229},{"type":44,"tag":130,"props":1572,"children":1573},{"style":221},[1574],{"type":50,"value":1575}," setChainId",{"type":44,"tag":130,"props":1577,"children":1578},{"style":215},[1579],{"type":50,"value":1515},{"type":44,"tag":130,"props":1581,"children":1582},{"style":215},[1583],{"type":50,"value":374},{"type":44,"tag":130,"props":1585,"children":1586},{"style":404},[1587],{"type":50,"value":1226},{"type":44,"tag":130,"props":1589,"children":1590},{"style":215},[1591],{"type":50,"value":349},{"type":44,"tag":130,"props":1593,"children":1594},{"style":137},[1595],{"type":50,"value":1596},"Hex",{"type":44,"tag":130,"props":1598,"children":1599},{"style":215},[1600],{"type":50,"value":364},{"type":44,"tag":130,"props":1602,"children":1603},{"style":137},[1604],{"type":50,"value":369},{"type":44,"tag":130,"props":1606,"children":1607},{"style":215},[1608],{"type":50,"value":359},{"type":44,"tag":130,"props":1610,"children":1611},{"style":445},[1612],{"type":50,"value":490},{"type":44,"tag":130,"props":1614,"children":1615},{"style":215},[1616],{"type":50,"value":1477},{"type":44,"tag":130,"props":1618,"children":1619},{"style":445},[1620],{"type":50,"value":751},{"type":44,"tag":130,"props":1622,"children":1623},{"style":215},[1624],{"type":50,"value":263},{"type":44,"tag":130,"props":1626,"children":1627},{"class":132,"line":514},[1628,1632,1636,1641,1645,1650,1654,1658,1662,1666,1671,1675,1679,1684,1688],{"type":44,"tag":130,"props":1629,"children":1630},{"style":326},[1631],{"type":50,"value":1435},{"type":44,"tag":130,"props":1633,"children":1634},{"style":215},[1635],{"type":50,"value":689},{"type":44,"tag":130,"props":1637,"children":1638},{"style":221},[1639],{"type":50,"value":1640},"balance",{"type":44,"tag":130,"props":1642,"children":1643},{"style":215},[1644],{"type":50,"value":229},{"type":44,"tag":130,"props":1646,"children":1647},{"style":221},[1648],{"type":50,"value":1649}," setBalance",{"type":44,"tag":130,"props":1651,"children":1652},{"style":215},[1653],{"type":50,"value":1515},{"type":44,"tag":130,"props":1655,"children":1656},{"style":215},[1657],{"type":50,"value":374},{"type":44,"tag":130,"props":1659,"children":1660},{"style":404},[1661],{"type":50,"value":1226},{"type":44,"tag":130,"props":1663,"children":1664},{"style":215},[1665],{"type":50,"value":349},{"type":44,"tag":130,"props":1667,"children":1668},{"style":137},[1669],{"type":50,"value":1670},"string",{"type":44,"tag":130,"props":1672,"children":1673},{"style":215},[1674],{"type":50,"value":359},{"type":44,"tag":130,"props":1676,"children":1677},{"style":445},[1678],{"type":50,"value":490},{"type":44,"tag":130,"props":1680,"children":1681},{"style":215},[1682],{"type":50,"value":1683},"''",{"type":44,"tag":130,"props":1685,"children":1686},{"style":445},[1687],{"type":50,"value":751},{"type":44,"tag":130,"props":1689,"children":1690},{"style":215},[1691],{"type":50,"value":263},{"type":44,"tag":130,"props":1693,"children":1694},{"class":132,"line":545},[1695,1699,1703,1708,1712,1717,1721,1725,1729,1733,1738,1742],{"type":44,"tag":130,"props":1696,"children":1697},{"style":326},[1698],{"type":50,"value":1435},{"type":44,"tag":130,"props":1700,"children":1701},{"style":215},[1702],{"type":50,"value":689},{"type":44,"tag":130,"props":1704,"children":1705},{"style":221},[1706],{"type":50,"value":1707},"connecting",{"type":44,"tag":130,"props":1709,"children":1710},{"style":215},[1711],{"type":50,"value":229},{"type":44,"tag":130,"props":1713,"children":1714},{"style":221},[1715],{"type":50,"value":1716}," setConnecting",{"type":44,"tag":130,"props":1718,"children":1719},{"style":215},[1720],{"type":50,"value":1515},{"type":44,"tag":130,"props":1722,"children":1723},{"style":215},[1724],{"type":50,"value":374},{"type":44,"tag":130,"props":1726,"children":1727},{"style":404},[1728],{"type":50,"value":1226},{"type":44,"tag":130,"props":1730,"children":1731},{"style":445},[1732],{"type":50,"value":490},{"type":44,"tag":130,"props":1734,"children":1735},{"style":844},[1736],{"type":50,"value":1737},"false",{"type":44,"tag":130,"props":1739,"children":1740},{"style":445},[1741],{"type":50,"value":751},{"type":44,"tag":130,"props":1743,"children":1744},{"style":215},[1745],{"type":50,"value":263},{"type":44,"tag":130,"props":1747,"children":1748},{"class":132,"line":586},[1749,1753,1757,1762,1766,1771,1775,1779,1783,1787,1791,1795,1799,1803,1807,1811,1815],{"type":44,"tag":130,"props":1750,"children":1751},{"style":326},[1752],{"type":50,"value":1435},{"type":44,"tag":130,"props":1754,"children":1755},{"style":215},[1756],{"type":50,"value":689},{"type":44,"tag":130,"props":1758,"children":1759},{"style":221},[1760],{"type":50,"value":1761},"error",{"type":44,"tag":130,"props":1763,"children":1764},{"style":215},[1765],{"type":50,"value":229},{"type":44,"tag":130,"props":1767,"children":1768},{"style":221},[1769],{"type":50,"value":1770}," setError",{"type":44,"tag":130,"props":1772,"children":1773},{"style":215},[1774],{"type":50,"value":1515},{"type":44,"tag":130,"props":1776,"children":1777},{"style":215},[1778],{"type":50,"value":374},{"type":44,"tag":130,"props":1780,"children":1781},{"style":404},[1782],{"type":50,"value":1226},{"type":44,"tag":130,"props":1784,"children":1785},{"style":215},[1786],{"type":50,"value":349},{"type":44,"tag":130,"props":1788,"children":1789},{"style":137},[1790],{"type":50,"value":1670},{"type":44,"tag":130,"props":1792,"children":1793},{"style":215},[1794],{"type":50,"value":364},{"type":44,"tag":130,"props":1796,"children":1797},{"style":137},[1798],{"type":50,"value":369},{"type":44,"tag":130,"props":1800,"children":1801},{"style":215},[1802],{"type":50,"value":359},{"type":44,"tag":130,"props":1804,"children":1805},{"style":445},[1806],{"type":50,"value":490},{"type":44,"tag":130,"props":1808,"children":1809},{"style":215},[1810],{"type":50,"value":1477},{"type":44,"tag":130,"props":1812,"children":1813},{"style":445},[1814],{"type":50,"value":751},{"type":44,"tag":130,"props":1816,"children":1817},{"style":215},[1818],{"type":50,"value":263},{"type":44,"tag":130,"props":1820,"children":1821},{"class":132,"line":595},[1822],{"type":44,"tag":130,"props":1823,"children":1824},{"emptyLinePlaceholder":316},[1825],{"type":50,"value":319},{"type":44,"tag":130,"props":1827,"children":1828},{"class":132,"line":612},[1829,1834,1838,1842,1846],{"type":44,"tag":130,"props":1830,"children":1831},{"style":404},[1832],{"type":50,"value":1833},"  useEffect",{"type":44,"tag":130,"props":1835,"children":1836},{"style":445},[1837],{"type":50,"value":490},{"type":44,"tag":130,"props":1839,"children":1840},{"style":215},[1841],{"type":50,"value":1423},{"type":44,"tag":130,"props":1843,"children":1844},{"style":326},[1845],{"type":50,"value":960},{"type":44,"tag":130,"props":1847,"children":1848},{"style":215},[1849],{"type":50,"value":433},{"type":44,"tag":130,"props":1851,"children":1852},{"class":132,"line":629},[1853,1858,1863,1867,1871],{"type":44,"tag":130,"props":1854,"children":1855},{"style":326},[1856],{"type":50,"value":1857},"    let",{"type":44,"tag":130,"props":1859,"children":1860},{"style":221},[1861],{"type":50,"value":1862}," mounted",{"type":44,"tag":130,"props":1864,"children":1865},{"style":215},[1866],{"type":50,"value":374},{"type":44,"tag":130,"props":1868,"children":1869},{"style":844},[1870],{"type":50,"value":869},{"type":44,"tag":130,"props":1872,"children":1873},{"style":215},[1874],{"type":50,"value":263},{"type":44,"tag":130,"props":1876,"children":1877},{"class":132,"line":758},[1878],{"type":44,"tag":130,"props":1879,"children":1880},{"emptyLinePlaceholder":316},[1881],{"type":50,"value":319},{"type":44,"tag":130,"props":1883,"children":1884},{"class":132,"line":797},[1885,1890,1894,1899,1903],{"type":44,"tag":130,"props":1886,"children":1887},{"style":326},[1888],{"type":50,"value":1889},"    async",{"type":44,"tag":130,"props":1891,"children":1892},{"style":326},[1893],{"type":50,"value":401},{"type":44,"tag":130,"props":1895,"children":1896},{"style":404},[1897],{"type":50,"value":1898}," init",{"type":44,"tag":130,"props":1900,"children":1901},{"style":215},[1902],{"type":50,"value":1423},{"type":44,"tag":130,"props":1904,"children":1905},{"style":215},[1906],{"type":50,"value":433},{"type":44,"tag":130,"props":1908,"children":1909},{"class":132,"line":806},[1910,1915,1920,1924,1929,1933,1937],{"type":44,"tag":130,"props":1911,"children":1912},{"style":326},[1913],{"type":50,"value":1914},"      const",{"type":44,"tag":130,"props":1916,"children":1917},{"style":221},[1918],{"type":50,"value":1919}," client",{"type":44,"tag":130,"props":1921,"children":1922},{"style":215},[1923],{"type":50,"value":374},{"type":44,"tag":130,"props":1925,"children":1926},{"style":209},[1927],{"type":50,"value":1928}," await",{"type":44,"tag":130,"props":1930,"children":1931},{"style":404},[1932],{"type":50,"value":407},{"type":44,"tag":130,"props":1934,"children":1935},{"style":445},[1936],{"type":50,"value":1423},{"type":44,"tag":130,"props":1938,"children":1939},{"style":215},[1940],{"type":50,"value":263},{"type":44,"tag":130,"props":1942,"children":1943},{"class":132,"line":814},[1944,1949,1953,1957,1962,1966,1971],{"type":44,"tag":130,"props":1945,"children":1946},{"style":209},[1947],{"type":50,"value":1948},"      if",{"type":44,"tag":130,"props":1950,"children":1951},{"style":445},[1952],{"type":50,"value":448},{"type":44,"tag":130,"props":1954,"children":1955},{"style":215},[1956],{"type":50,"value":453},{"type":44,"tag":130,"props":1958,"children":1959},{"style":221},[1960],{"type":50,"value":1961},"mounted",{"type":44,"tag":130,"props":1963,"children":1964},{"style":445},[1965],{"type":50,"value":463},{"type":44,"tag":130,"props":1967,"children":1968},{"style":209},[1969],{"type":50,"value":1970},"return",{"type":44,"tag":130,"props":1972,"children":1973},{"style":215},[1974],{"type":50,"value":263},{"type":44,"tag":130,"props":1976,"children":1977},{"class":132,"line":831},[1978,1983,1987,1992,1996,2000],{"type":44,"tag":130,"props":1979,"children":1980},{"style":221},[1981],{"type":50,"value":1982},"      clientRef",{"type":44,"tag":130,"props":1984,"children":1985},{"style":215},[1986],{"type":50,"value":565},{"type":44,"tag":130,"props":1988,"children":1989},{"style":221},[1990],{"type":50,"value":1991},"current",{"type":44,"tag":130,"props":1993,"children":1994},{"style":215},[1995],{"type":50,"value":374},{"type":44,"tag":130,"props":1997,"children":1998},{"style":221},[1999],{"type":50,"value":1919},{"type":44,"tag":130,"props":2001,"children":2002},{"style":215},[2003],{"type":50,"value":263},{"type":44,"tag":130,"props":2005,"children":2006},{"class":132,"line":854},[2007],{"type":44,"tag":130,"props":2008,"children":2009},{"emptyLinePlaceholder":316},[2010],{"type":50,"value":319},{"type":44,"tag":130,"props":2012,"children":2013},{"class":132,"line":876},[2014,2018,2023,2027,2031,2035,2040,2044],{"type":44,"tag":130,"props":2015,"children":2016},{"style":326},[2017],{"type":50,"value":1914},{"type":44,"tag":130,"props":2019,"children":2020},{"style":221},[2021],{"type":50,"value":2022}," provider",{"type":44,"tag":130,"props":2024,"children":2025},{"style":215},[2026],{"type":50,"value":374},{"type":44,"tag":130,"props":2028,"children":2029},{"style":221},[2030],{"type":50,"value":1919},{"type":44,"tag":130,"props":2032,"children":2033},{"style":215},[2034],{"type":50,"value":565},{"type":44,"tag":130,"props":2036,"children":2037},{"style":404},[2038],{"type":50,"value":2039},"getProvider",{"type":44,"tag":130,"props":2041,"children":2042},{"style":445},[2043],{"type":50,"value":1423},{"type":44,"tag":130,"props":2045,"children":2046},{"style":215},[2047],{"type":50,"value":263},{"type":44,"tag":130,"props":2049,"children":2050},{"class":132,"line":897},[2051],{"type":44,"tag":130,"props":2052,"children":2053},{"emptyLinePlaceholder":316},[2054],{"type":50,"value":319},{"type":44,"tag":130,"props":2056,"children":2057},{"class":132,"line":905},[2058,2063,2067,2072,2076,2080,2085,2089,2093,2097,2102,2106,2110,2114,2118,2122],{"type":44,"tag":130,"props":2059,"children":2060},{"style":221},[2061],{"type":50,"value":2062},"      provider",{"type":44,"tag":130,"props":2064,"children":2065},{"style":215},[2066],{"type":50,"value":565},{"type":44,"tag":130,"props":2068,"children":2069},{"style":404},[2070],{"type":50,"value":2071},"on",{"type":44,"tag":130,"props":2073,"children":2074},{"style":445},[2075],{"type":50,"value":490},{"type":44,"tag":130,"props":2077,"children":2078},{"style":215},[2079],{"type":50,"value":258},{"type":44,"tag":130,"props":2081,"children":2082},{"style":143},[2083],{"type":50,"value":2084},"accountsChanged",{"type":44,"tag":130,"props":2086,"children":2087},{"style":215},[2088],{"type":50,"value":258},{"type":44,"tag":130,"props":2090,"children":2091},{"style":215},[2092],{"type":50,"value":229},{"type":44,"tag":130,"props":2094,"children":2095},{"style":215},[2096],{"type":50,"value":448},{"type":44,"tag":130,"props":2098,"children":2099},{"style":939},[2100],{"type":50,"value":2101},"accs",{"type":44,"tag":130,"props":2103,"children":2104},{"style":215},[2105],{"type":50,"value":339},{"type":44,"tag":130,"props":2107,"children":2108},{"style":137},[2109],{"type":50,"value":1371},{"type":44,"tag":130,"props":2111,"children":2112},{"style":445},[2113],{"type":50,"value":1537},{"type":44,"tag":130,"props":2115,"children":2116},{"style":215},[2117],{"type":50,"value":751},{"type":44,"tag":130,"props":2119,"children":2120},{"style":326},[2121],{"type":50,"value":960},{"type":44,"tag":130,"props":2123,"children":2124},{"style":215},[2125],{"type":50,"value":433},{"type":44,"tag":130,"props":2127,"children":2128},{"class":132,"line":922},[2129,2134,2138,2142,2146,2151,2155,2159,2163],{"type":44,"tag":130,"props":2130,"children":2131},{"style":209},[2132],{"type":50,"value":2133},"        if",{"type":44,"tag":130,"props":2135,"children":2136},{"style":445},[2137],{"type":50,"value":448},{"type":44,"tag":130,"props":2139,"children":2140},{"style":221},[2141],{"type":50,"value":1961},{"type":44,"tag":130,"props":2143,"children":2144},{"style":445},[2145],{"type":50,"value":463},{"type":44,"tag":130,"props":2147,"children":2148},{"style":404},[2149],{"type":50,"value":2150},"setAccounts",{"type":44,"tag":130,"props":2152,"children":2153},{"style":445},[2154],{"type":50,"value":490},{"type":44,"tag":130,"props":2156,"children":2157},{"style":221},[2158],{"type":50,"value":2101},{"type":44,"tag":130,"props":2160,"children":2161},{"style":445},[2162],{"type":50,"value":751},{"type":44,"tag":130,"props":2164,"children":2165},{"style":215},[2166],{"type":50,"value":263},{"type":44,"tag":130,"props":2168,"children":2169},{"class":132,"line":967},[2170,2175,2179],{"type":44,"tag":130,"props":2171,"children":2172},{"style":215},[2173],{"type":50,"value":2174},"      }",{"type":44,"tag":130,"props":2176,"children":2177},{"style":445},[2178],{"type":50,"value":751},{"type":44,"tag":130,"props":2180,"children":2181},{"style":215},[2182],{"type":50,"value":263},{"type":44,"tag":130,"props":2184,"children":2185},{"class":132,"line":1019},[2186],{"type":44,"tag":130,"props":2187,"children":2188},{"emptyLinePlaceholder":316},[2189],{"type":50,"value":319},{"type":44,"tag":130,"props":2191,"children":2192},{"class":132,"line":1027},[2193,2197,2201,2205,2209,2213,2218,2222,2226,2230,2235,2239,2243,2247,2251],{"type":44,"tag":130,"props":2194,"children":2195},{"style":221},[2196],{"type":50,"value":2062},{"type":44,"tag":130,"props":2198,"children":2199},{"style":215},[2200],{"type":50,"value":565},{"type":44,"tag":130,"props":2202,"children":2203},{"style":404},[2204],{"type":50,"value":2071},{"type":44,"tag":130,"props":2206,"children":2207},{"style":445},[2208],{"type":50,"value":490},{"type":44,"tag":130,"props":2210,"children":2211},{"style":215},[2212],{"type":50,"value":258},{"type":44,"tag":130,"props":2214,"children":2215},{"style":143},[2216],{"type":50,"value":2217},"chainChanged",{"type":44,"tag":130,"props":2219,"children":2220},{"style":215},[2221],{"type":50,"value":258},{"type":44,"tag":130,"props":2223,"children":2224},{"style":215},[2225],{"type":50,"value":229},{"type":44,"tag":130,"props":2227,"children":2228},{"style":215},[2229],{"type":50,"value":448},{"type":44,"tag":130,"props":2231,"children":2232},{"style":939},[2233],{"type":50,"value":2234},"id",{"type":44,"tag":130,"props":2236,"children":2237},{"style":215},[2238],{"type":50,"value":339},{"type":44,"tag":130,"props":2240,"children":2241},{"style":137},[2242],{"type":50,"value":1362},{"type":44,"tag":130,"props":2244,"children":2245},{"style":215},[2246],{"type":50,"value":751},{"type":44,"tag":130,"props":2248,"children":2249},{"style":326},[2250],{"type":50,"value":960},{"type":44,"tag":130,"props":2252,"children":2253},{"style":215},[2254],{"type":50,"value":433},{"type":44,"tag":130,"props":2256,"children":2257},{"class":132,"line":1035},[2258,2262,2266,2270,2274,2279,2283,2287,2291],{"type":44,"tag":130,"props":2259,"children":2260},{"style":209},[2261],{"type":50,"value":2133},{"type":44,"tag":130,"props":2263,"children":2264},{"style":445},[2265],{"type":50,"value":448},{"type":44,"tag":130,"props":2267,"children":2268},{"style":221},[2269],{"type":50,"value":1961},{"type":44,"tag":130,"props":2271,"children":2272},{"style":445},[2273],{"type":50,"value":463},{"type":44,"tag":130,"props":2275,"children":2276},{"style":404},[2277],{"type":50,"value":2278},"setChainId",{"type":44,"tag":130,"props":2280,"children":2281},{"style":445},[2282],{"type":50,"value":490},{"type":44,"tag":130,"props":2284,"children":2285},{"style":221},[2286],{"type":50,"value":2234},{"type":44,"tag":130,"props":2288,"children":2289},{"style":445},[2290],{"type":50,"value":751},{"type":44,"tag":130,"props":2292,"children":2293},{"style":215},[2294],{"type":50,"value":263},{"type":44,"tag":130,"props":2296,"children":2297},{"class":132,"line":1056},[2298,2302,2306],{"type":44,"tag":130,"props":2299,"children":2300},{"style":215},[2301],{"type":50,"value":2174},{"type":44,"tag":130,"props":2303,"children":2304},{"style":445},[2305],{"type":50,"value":751},{"type":44,"tag":130,"props":2307,"children":2308},{"style":215},[2309],{"type":50,"value":263},{"type":44,"tag":130,"props":2311,"children":2312},{"class":132,"line":1073},[2313],{"type":44,"tag":130,"props":2314,"children":2315},{"emptyLinePlaceholder":316},[2316],{"type":50,"value":319},{"type":44,"tag":130,"props":2318,"children":2319},{"class":132,"line":1082},[2320,2324,2328,2332,2336,2340,2345,2349,2353,2358,2362],{"type":44,"tag":130,"props":2321,"children":2322},{"style":221},[2323],{"type":50,"value":2062},{"type":44,"tag":130,"props":2325,"children":2326},{"style":215},[2327],{"type":50,"value":565},{"type":44,"tag":130,"props":2329,"children":2330},{"style":404},[2331],{"type":50,"value":2071},{"type":44,"tag":130,"props":2333,"children":2334},{"style":445},[2335],{"type":50,"value":490},{"type":44,"tag":130,"props":2337,"children":2338},{"style":215},[2339],{"type":50,"value":258},{"type":44,"tag":130,"props":2341,"children":2342},{"style":143},[2343],{"type":50,"value":2344},"disconnect",{"type":44,"tag":130,"props":2346,"children":2347},{"style":215},[2348],{"type":50,"value":258},{"type":44,"tag":130,"props":2350,"children":2351},{"style":215},[2352],{"type":50,"value":229},{"type":44,"tag":130,"props":2354,"children":2355},{"style":215},[2356],{"type":50,"value":2357}," ()",{"type":44,"tag":130,"props":2359,"children":2360},{"style":326},[2361],{"type":50,"value":960},{"type":44,"tag":130,"props":2363,"children":2364},{"style":215},[2365],{"type":50,"value":433},{"type":44,"tag":130,"props":2367,"children":2368},{"class":132,"line":1099},[2369,2373,2377,2381,2385],{"type":44,"tag":130,"props":2370,"children":2371},{"style":209},[2372],{"type":50,"value":2133},{"type":44,"tag":130,"props":2374,"children":2375},{"style":445},[2376],{"type":50,"value":448},{"type":44,"tag":130,"props":2378,"children":2379},{"style":221},[2380],{"type":50,"value":1961},{"type":44,"tag":130,"props":2382,"children":2383},{"style":445},[2384],{"type":50,"value":463},{"type":44,"tag":130,"props":2386,"children":2387},{"style":215},[2388],{"type":50,"value":468},{"type":44,"tag":130,"props":2390,"children":2392},{"class":132,"line":2391},35,[2393,2398,2402],{"type":44,"tag":130,"props":2394,"children":2395},{"style":404},[2396],{"type":50,"value":2397},"          setAccounts",{"type":44,"tag":130,"props":2399,"children":2400},{"style":445},[2401],{"type":50,"value":1546},{"type":44,"tag":130,"props":2403,"children":2404},{"style":215},[2405],{"type":50,"value":263},{"type":44,"tag":130,"props":2407,"children":2409},{"class":132,"line":2408},36,[2410,2415,2419,2423,2427],{"type":44,"tag":130,"props":2411,"children":2412},{"style":404},[2413],{"type":50,"value":2414},"          setChainId",{"type":44,"tag":130,"props":2416,"children":2417},{"style":445},[2418],{"type":50,"value":490},{"type":44,"tag":130,"props":2420,"children":2421},{"style":215},[2422],{"type":50,"value":1477},{"type":44,"tag":130,"props":2424,"children":2425},{"style":445},[2426],{"type":50,"value":751},{"type":44,"tag":130,"props":2428,"children":2429},{"style":215},[2430],{"type":50,"value":263},{"type":44,"tag":130,"props":2432,"children":2434},{"class":132,"line":2433},37,[2435,2440,2444,2448,2452],{"type":44,"tag":130,"props":2436,"children":2437},{"style":404},[2438],{"type":50,"value":2439},"          setBalance",{"type":44,"tag":130,"props":2441,"children":2442},{"style":445},[2443],{"type":50,"value":490},{"type":44,"tag":130,"props":2445,"children":2446},{"style":215},[2447],{"type":50,"value":1683},{"type":44,"tag":130,"props":2449,"children":2450},{"style":445},[2451],{"type":50,"value":751},{"type":44,"tag":130,"props":2453,"children":2454},{"style":215},[2455],{"type":50,"value":263},{"type":44,"tag":130,"props":2457,"children":2459},{"class":132,"line":2458},38,[2460],{"type":44,"tag":130,"props":2461,"children":2462},{"style":215},[2463],{"type":50,"value":2464},"        }\n",{"type":44,"tag":130,"props":2466,"children":2468},{"class":132,"line":2467},39,[2469,2473,2477],{"type":44,"tag":130,"props":2470,"children":2471},{"style":215},[2472],{"type":50,"value":2174},{"type":44,"tag":130,"props":2474,"children":2475},{"style":445},[2476],{"type":50,"value":751},{"type":44,"tag":130,"props":2478,"children":2479},{"style":215},[2480],{"type":50,"value":263},{"type":44,"tag":130,"props":2482,"children":2484},{"class":132,"line":2483},40,[2485],{"type":44,"tag":130,"props":2486,"children":2487},{"style":215},[2488],{"type":50,"value":2489},"    }\n",{"type":44,"tag":130,"props":2491,"children":2493},{"class":132,"line":2492},41,[2494],{"type":44,"tag":130,"props":2495,"children":2496},{"emptyLinePlaceholder":316},[2497],{"type":50,"value":319},{"type":44,"tag":130,"props":2499,"children":2501},{"class":132,"line":2500},42,[2502,2507,2511],{"type":44,"tag":130,"props":2503,"children":2504},{"style":404},[2505],{"type":50,"value":2506},"    init",{"type":44,"tag":130,"props":2508,"children":2509},{"style":445},[2510],{"type":50,"value":1423},{"type":44,"tag":130,"props":2512,"children":2513},{"style":215},[2514],{"type":50,"value":263},{"type":44,"tag":130,"props":2516,"children":2518},{"class":132,"line":2517},43,[2519,2524,2528,2532,2536,2540,2544,2548,2553],{"type":44,"tag":130,"props":2520,"children":2521},{"style":209},[2522],{"type":50,"value":2523},"    return",{"type":44,"tag":130,"props":2525,"children":2526},{"style":215},[2527],{"type":50,"value":2357},{"type":44,"tag":130,"props":2529,"children":2530},{"style":326},[2531],{"type":50,"value":960},{"type":44,"tag":130,"props":2533,"children":2534},{"style":215},[2535],{"type":50,"value":218},{"type":44,"tag":130,"props":2537,"children":2538},{"style":221},[2539],{"type":50,"value":1862},{"type":44,"tag":130,"props":2541,"children":2542},{"style":215},[2543],{"type":50,"value":374},{"type":44,"tag":130,"props":2545,"children":2546},{"style":844},[2547],{"type":50,"value":847},{"type":44,"tag":130,"props":2549,"children":2550},{"style":215},[2551],{"type":50,"value":2552},";",{"type":44,"tag":130,"props":2554,"children":2555},{"style":215},[2556],{"type":50,"value":2557}," };\n",{"type":44,"tag":130,"props":2559,"children":2561},{"class":132,"line":2560},44,[2562,2567,2572],{"type":44,"tag":130,"props":2563,"children":2564},{"style":215},[2565],{"type":50,"value":2566},"  },",{"type":44,"tag":130,"props":2568,"children":2569},{"style":445},[2570],{"type":50,"value":2571}," [])",{"type":44,"tag":130,"props":2573,"children":2574},{"style":215},[2575],{"type":50,"value":263},{"type":44,"tag":130,"props":2577,"children":2579},{"class":132,"line":2578},45,[2580],{"type":44,"tag":130,"props":2581,"children":2582},{"emptyLinePlaceholder":316},[2583],{"type":50,"value":319},{"type":44,"tag":130,"props":2585,"children":2587},{"class":132,"line":2586},46,[2588,2592,2597,2601,2605,2609,2614,2618,2622],{"type":44,"tag":130,"props":2589,"children":2590},{"style":326},[2591],{"type":50,"value":1435},{"type":44,"tag":130,"props":2593,"children":2594},{"style":221},[2595],{"type":50,"value":2596}," handleConnect",{"type":44,"tag":130,"props":2598,"children":2599},{"style":215},[2600],{"type":50,"value":374},{"type":44,"tag":130,"props":2602,"children":2603},{"style":404},[2604],{"type":50,"value":1235},{"type":44,"tag":130,"props":2606,"children":2607},{"style":445},[2608],{"type":50,"value":490},{"type":44,"tag":130,"props":2610,"children":2611},{"style":326},[2612],{"type":50,"value":2613},"async",{"type":44,"tag":130,"props":2615,"children":2616},{"style":215},[2617],{"type":50,"value":2357},{"type":44,"tag":130,"props":2619,"children":2620},{"style":326},[2621],{"type":50,"value":960},{"type":44,"tag":130,"props":2623,"children":2624},{"style":215},[2625],{"type":50,"value":433},{"type":44,"tag":130,"props":2627,"children":2629},{"class":132,"line":2628},47,[2630,2635,2639,2643,2647,2651,2655],{"type":44,"tag":130,"props":2631,"children":2632},{"style":326},[2633],{"type":50,"value":2634},"    const",{"type":44,"tag":130,"props":2636,"children":2637},{"style":221},[2638],{"type":50,"value":1919},{"type":44,"tag":130,"props":2640,"children":2641},{"style":215},[2642],{"type":50,"value":374},{"type":44,"tag":130,"props":2644,"children":2645},{"style":221},[2646],{"type":50,"value":1440},{"type":44,"tag":130,"props":2648,"children":2649},{"style":215},[2650],{"type":50,"value":565},{"type":44,"tag":130,"props":2652,"children":2653},{"style":221},[2654],{"type":50,"value":1991},{"type":44,"tag":130,"props":2656,"children":2657},{"style":215},[2658],{"type":50,"value":263},{"type":44,"tag":130,"props":2660,"children":2662},{"class":132,"line":2661},48,[2663,2668,2672,2676,2681,2685,2689],{"type":44,"tag":130,"props":2664,"children":2665},{"style":209},[2666],{"type":50,"value":2667},"    if",{"type":44,"tag":130,"props":2669,"children":2670},{"style":445},[2671],{"type":50,"value":448},{"type":44,"tag":130,"props":2673,"children":2674},{"style":215},[2675],{"type":50,"value":453},{"type":44,"tag":130,"props":2677,"children":2678},{"style":221},[2679],{"type":50,"value":2680},"client",{"type":44,"tag":130,"props":2682,"children":2683},{"style":445},[2684],{"type":50,"value":463},{"type":44,"tag":130,"props":2686,"children":2687},{"style":209},[2688],{"type":50,"value":1970},{"type":44,"tag":130,"props":2690,"children":2691},{"style":215},[2692],{"type":50,"value":263},{"type":44,"tag":130,"props":2694,"children":2696},{"class":132,"line":2695},49,[2697],{"type":44,"tag":130,"props":2698,"children":2699},{"emptyLinePlaceholder":316},[2700],{"type":50,"value":319},{"type":44,"tag":130,"props":2702,"children":2704},{"class":132,"line":2703},50,[2705,2710,2714,2719,2723],{"type":44,"tag":130,"props":2706,"children":2707},{"style":404},[2708],{"type":50,"value":2709},"    setConnecting",{"type":44,"tag":130,"props":2711,"children":2712},{"style":445},[2713],{"type":50,"value":490},{"type":44,"tag":130,"props":2715,"children":2716},{"style":844},[2717],{"type":50,"value":2718},"true",{"type":44,"tag":130,"props":2720,"children":2721},{"style":445},[2722],{"type":50,"value":751},{"type":44,"tag":130,"props":2724,"children":2725},{"style":215},[2726],{"type":50,"value":263},{"type":44,"tag":130,"props":2728,"children":2730},{"class":132,"line":2729},51,[2731,2736,2740,2744,2748],{"type":44,"tag":130,"props":2732,"children":2733},{"style":404},[2734],{"type":50,"value":2735},"    setError",{"type":44,"tag":130,"props":2737,"children":2738},{"style":445},[2739],{"type":50,"value":490},{"type":44,"tag":130,"props":2741,"children":2742},{"style":215},[2743],{"type":50,"value":1477},{"type":44,"tag":130,"props":2745,"children":2746},{"style":445},[2747],{"type":50,"value":751},{"type":44,"tag":130,"props":2749,"children":2750},{"style":215},[2751],{"type":50,"value":263},{"type":44,"tag":130,"props":2753,"children":2755},{"class":132,"line":2754},52,[2756],{"type":44,"tag":130,"props":2757,"children":2758},{"emptyLinePlaceholder":316},[2759],{"type":50,"value":319},{"type":44,"tag":130,"props":2761,"children":2763},{"class":132,"line":2762},53,[2764,2769],{"type":44,"tag":130,"props":2765,"children":2766},{"style":209},[2767],{"type":50,"value":2768},"    try",{"type":44,"tag":130,"props":2770,"children":2771},{"style":215},[2772],{"type":50,"value":433},{"type":44,"tag":130,"props":2774,"children":2776},{"class":132,"line":2775},54,[2777,2781,2786,2790,2794,2798,2802,2807,2811,2815,2819,2823,2827,2831,2835,2839,2843,2847,2851],{"type":44,"tag":130,"props":2778,"children":2779},{"style":326},[2780],{"type":50,"value":1914},{"type":44,"tag":130,"props":2782,"children":2783},{"style":221},[2784],{"type":50,"value":2785}," result",{"type":44,"tag":130,"props":2787,"children":2788},{"style":215},[2789],{"type":50,"value":374},{"type":44,"tag":130,"props":2791,"children":2792},{"style":209},[2793],{"type":50,"value":1928},{"type":44,"tag":130,"props":2795,"children":2796},{"style":221},[2797],{"type":50,"value":1919},{"type":44,"tag":130,"props":2799,"children":2800},{"style":215},[2801],{"type":50,"value":565},{"type":44,"tag":130,"props":2803,"children":2804},{"style":404},[2805],{"type":50,"value":2806},"connect",{"type":44,"tag":130,"props":2808,"children":2809},{"style":445},[2810],{"type":50,"value":490},{"type":44,"tag":130,"props":2812,"children":2813},{"style":215},[2814],{"type":50,"value":649},{"type":44,"tag":130,"props":2816,"children":2817},{"style":445},[2818],{"type":50,"value":680},{"type":44,"tag":130,"props":2820,"children":2821},{"style":215},[2822],{"type":50,"value":339},{"type":44,"tag":130,"props":2824,"children":2825},{"style":445},[2826],{"type":50,"value":689},{"type":44,"tag":130,"props":2828,"children":2829},{"style":215},[2830],{"type":50,"value":258},{"type":44,"tag":130,"props":2832,"children":2833},{"style":143},[2834],{"type":50,"value":698},{"type":44,"tag":130,"props":2836,"children":2837},{"style":215},[2838],{"type":50,"value":258},{"type":44,"tag":130,"props":2840,"children":2841},{"style":445},[2842],{"type":50,"value":741},{"type":44,"tag":130,"props":2844,"children":2845},{"style":215},[2846],{"type":50,"value":746},{"type":44,"tag":130,"props":2848,"children":2849},{"style":445},[2850],{"type":50,"value":751},{"type":44,"tag":130,"props":2852,"children":2853},{"style":215},[2854],{"type":50,"value":263},{"type":44,"tag":130,"props":2856,"children":2858},{"class":132,"line":2857},55,[2859,2864,2868,2873,2877,2881,2886,2890,2895],{"type":44,"tag":130,"props":2860,"children":2861},{"style":404},[2862],{"type":50,"value":2863},"      setAccounts",{"type":44,"tag":130,"props":2865,"children":2866},{"style":445},[2867],{"type":50,"value":490},{"type":44,"tag":130,"props":2869,"children":2870},{"style":221},[2871],{"type":50,"value":2872},"result",{"type":44,"tag":130,"props":2874,"children":2875},{"style":215},[2876],{"type":50,"value":565},{"type":44,"tag":130,"props":2878,"children":2879},{"style":221},[2880],{"type":50,"value":1501},{"type":44,"tag":130,"props":2882,"children":2883},{"style":209},[2884],{"type":50,"value":2885}," as",{"type":44,"tag":130,"props":2887,"children":2888},{"style":137},[2889],{"type":50,"value":1371},{"type":44,"tag":130,"props":2891,"children":2892},{"style":445},[2893],{"type":50,"value":2894},"[])",{"type":44,"tag":130,"props":2896,"children":2897},{"style":215},[2898],{"type":50,"value":263},{"type":44,"tag":130,"props":2900,"children":2902},{"class":132,"line":2901},56,[2903,2908,2912,2916,2920,2924,2928,2932,2936],{"type":44,"tag":130,"props":2904,"children":2905},{"style":404},[2906],{"type":50,"value":2907},"      setChainId",{"type":44,"tag":130,"props":2909,"children":2910},{"style":445},[2911],{"type":50,"value":490},{"type":44,"tag":130,"props":2913,"children":2914},{"style":221},[2915],{"type":50,"value":2872},{"type":44,"tag":130,"props":2917,"children":2918},{"style":215},[2919],{"type":50,"value":565},{"type":44,"tag":130,"props":2921,"children":2922},{"style":221},[2923],{"type":50,"value":1566},{"type":44,"tag":130,"props":2925,"children":2926},{"style":209},[2927],{"type":50,"value":2885},{"type":44,"tag":130,"props":2929,"children":2930},{"style":137},[2931],{"type":50,"value":1362},{"type":44,"tag":130,"props":2933,"children":2934},{"style":445},[2935],{"type":50,"value":751},{"type":44,"tag":130,"props":2937,"children":2938},{"style":215},[2939],{"type":50,"value":263},{"type":44,"tag":130,"props":2941,"children":2943},{"class":132,"line":2942},57,[2944,2948,2953,2957,2962,2966,2971,2975],{"type":44,"tag":130,"props":2945,"children":2946},{"style":215},[2947],{"type":50,"value":1062},{"type":44,"tag":130,"props":2949,"children":2950},{"style":209},[2951],{"type":50,"value":2952}," catch",{"type":44,"tag":130,"props":2954,"children":2955},{"style":215},[2956],{"type":50,"value":448},{"type":44,"tag":130,"props":2958,"children":2959},{"style":939},[2960],{"type":50,"value":2961},"err",{"type":44,"tag":130,"props":2963,"children":2964},{"style":215},[2965],{"type":50,"value":339},{"type":44,"tag":130,"props":2967,"children":2968},{"style":137},[2969],{"type":50,"value":2970}," any",{"type":44,"tag":130,"props":2972,"children":2973},{"style":215},[2974],{"type":50,"value":751},{"type":44,"tag":130,"props":2976,"children":2977},{"style":215},[2978],{"type":50,"value":433},{"type":44,"tag":130,"props":2980,"children":2982},{"class":132,"line":2981},58,[2983,2987,2991,2995,2999,3003,3008,3014,3018],{"type":44,"tag":130,"props":2984,"children":2985},{"style":209},[2986],{"type":50,"value":1948},{"type":44,"tag":130,"props":2988,"children":2989},{"style":445},[2990],{"type":50,"value":448},{"type":44,"tag":130,"props":2992,"children":2993},{"style":221},[2994],{"type":50,"value":2961},{"type":44,"tag":130,"props":2996,"children":2997},{"style":215},[2998],{"type":50,"value":565},{"type":44,"tag":130,"props":3000,"children":3001},{"style":221},[3002],{"type":50,"value":76},{"type":44,"tag":130,"props":3004,"children":3005},{"style":215},[3006],{"type":50,"value":3007}," ===",{"type":44,"tag":130,"props":3009,"children":3011},{"style":3010},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[3012],{"type":50,"value":3013}," 4001",{"type":44,"tag":130,"props":3015,"children":3016},{"style":445},[3017],{"type":50,"value":463},{"type":44,"tag":130,"props":3019,"children":3020},{"style":215},[3021],{"type":50,"value":468},{"type":44,"tag":130,"props":3023,"children":3025},{"class":132,"line":3024},59,[3026,3031,3035,3039,3044,3048,3052],{"type":44,"tag":130,"props":3027,"children":3028},{"style":404},[3029],{"type":50,"value":3030},"        setError",{"type":44,"tag":130,"props":3032,"children":3033},{"style":445},[3034],{"type":50,"value":490},{"type":44,"tag":130,"props":3036,"children":3037},{"style":215},[3038],{"type":50,"value":258},{"type":44,"tag":130,"props":3040,"children":3041},{"style":143},[3042],{"type":50,"value":3043},"Connection rejected. Please try again.",{"type":44,"tag":130,"props":3045,"children":3046},{"style":215},[3047],{"type":50,"value":258},{"type":44,"tag":130,"props":3049,"children":3050},{"style":445},[3051],{"type":50,"value":751},{"type":44,"tag":130,"props":3053,"children":3054},{"style":215},[3055],{"type":50,"value":263},{"type":44,"tag":130,"props":3057,"children":3059},{"class":132,"line":3058},60,[3060,3065],{"type":44,"tag":130,"props":3061,"children":3062},{"style":209},[3063],{"type":50,"value":3064},"        return",{"type":44,"tag":130,"props":3066,"children":3067},{"style":215},[3068],{"type":50,"value":263},{"type":44,"tag":130,"props":3070,"children":3072},{"class":132,"line":3071},61,[3073],{"type":44,"tag":130,"props":3074,"children":3075},{"style":215},[3076],{"type":50,"value":3077},"      }\n",{"type":44,"tag":130,"props":3079,"children":3081},{"class":132,"line":3080},62,[3082,3086,3090,3094,3098,3102,3106,3111,3116,3120],{"type":44,"tag":130,"props":3083,"children":3084},{"style":209},[3085],{"type":50,"value":1948},{"type":44,"tag":130,"props":3087,"children":3088},{"style":445},[3089],{"type":50,"value":448},{"type":44,"tag":130,"props":3091,"children":3092},{"style":221},[3093],{"type":50,"value":2961},{"type":44,"tag":130,"props":3095,"children":3096},{"style":215},[3097],{"type":50,"value":565},{"type":44,"tag":130,"props":3099,"children":3100},{"style":221},[3101],{"type":50,"value":76},{"type":44,"tag":130,"props":3103,"children":3104},{"style":215},[3105],{"type":50,"value":3007},{"type":44,"tag":130,"props":3107,"children":3108},{"style":215},[3109],{"type":50,"value":3110}," -",{"type":44,"tag":130,"props":3112,"children":3113},{"style":3010},[3114],{"type":50,"value":3115},"32002",{"type":44,"tag":130,"props":3117,"children":3118},{"style":445},[3119],{"type":50,"value":463},{"type":44,"tag":130,"props":3121,"children":3122},{"style":215},[3123],{"type":50,"value":468},{"type":44,"tag":130,"props":3125,"children":3127},{"class":132,"line":3126},63,[3128,3132,3136,3140,3145,3149,3153],{"type":44,"tag":130,"props":3129,"children":3130},{"style":404},[3131],{"type":50,"value":3030},{"type":44,"tag":130,"props":3133,"children":3134},{"style":445},[3135],{"type":50,"value":490},{"type":44,"tag":130,"props":3137,"children":3138},{"style":215},[3139],{"type":50,"value":258},{"type":44,"tag":130,"props":3141,"children":3142},{"style":143},[3143],{"type":50,"value":3144},"A connection request is already pending. Check MetaMask.",{"type":44,"tag":130,"props":3146,"children":3147},{"style":215},[3148],{"type":50,"value":258},{"type":44,"tag":130,"props":3150,"children":3151},{"style":445},[3152],{"type":50,"value":751},{"type":44,"tag":130,"props":3154,"children":3155},{"style":215},[3156],{"type":50,"value":263},{"type":44,"tag":130,"props":3158,"children":3160},{"class":132,"line":3159},64,[3161,3165],{"type":44,"tag":130,"props":3162,"children":3163},{"style":209},[3164],{"type":50,"value":3064},{"type":44,"tag":130,"props":3166,"children":3167},{"style":215},[3168],{"type":50,"value":263},{"type":44,"tag":130,"props":3170,"children":3172},{"class":132,"line":3171},65,[3173],{"type":44,"tag":130,"props":3174,"children":3175},{"style":215},[3176],{"type":50,"value":3077},{"type":44,"tag":130,"props":3178,"children":3180},{"class":132,"line":3179},66,[3181,3186,3190,3194,3198,3203,3208,3212,3217,3221,3225],{"type":44,"tag":130,"props":3182,"children":3183},{"style":404},[3184],{"type":50,"value":3185},"      setError",{"type":44,"tag":130,"props":3187,"children":3188},{"style":445},[3189],{"type":50,"value":490},{"type":44,"tag":130,"props":3191,"children":3192},{"style":221},[3193],{"type":50,"value":2961},{"type":44,"tag":130,"props":3195,"children":3196},{"style":215},[3197],{"type":50,"value":565},{"type":44,"tag":130,"props":3199,"children":3200},{"style":221},[3201],{"type":50,"value":3202},"message",{"type":44,"tag":130,"props":3204,"children":3205},{"style":215},[3206],{"type":50,"value":3207}," ??",{"type":44,"tag":130,"props":3209,"children":3210},{"style":215},[3211],{"type":50,"value":249},{"type":44,"tag":130,"props":3213,"children":3214},{"style":143},[3215],{"type":50,"value":3216},"Connection failed",{"type":44,"tag":130,"props":3218,"children":3219},{"style":215},[3220],{"type":50,"value":258},{"type":44,"tag":130,"props":3222,"children":3223},{"style":445},[3224],{"type":50,"value":751},{"type":44,"tag":130,"props":3226,"children":3227},{"style":215},[3228],{"type":50,"value":263},{"type":44,"tag":130,"props":3230,"children":3232},{"class":132,"line":3231},67,[3233,3237,3242],{"type":44,"tag":130,"props":3234,"children":3235},{"style":215},[3236],{"type":50,"value":1062},{"type":44,"tag":130,"props":3238,"children":3239},{"style":209},[3240],{"type":50,"value":3241}," finally",{"type":44,"tag":130,"props":3243,"children":3244},{"style":215},[3245],{"type":50,"value":433},{"type":44,"tag":130,"props":3247,"children":3249},{"class":132,"line":3248},68,[3250,3255,3259,3263,3267],{"type":44,"tag":130,"props":3251,"children":3252},{"style":404},[3253],{"type":50,"value":3254},"      setConnecting",{"type":44,"tag":130,"props":3256,"children":3257},{"style":445},[3258],{"type":50,"value":490},{"type":44,"tag":130,"props":3260,"children":3261},{"style":844},[3262],{"type":50,"value":1737},{"type":44,"tag":130,"props":3264,"children":3265},{"style":445},[3266],{"type":50,"value":751},{"type":44,"tag":130,"props":3268,"children":3269},{"style":215},[3270],{"type":50,"value":263},{"type":44,"tag":130,"props":3272,"children":3274},{"class":132,"line":3273},69,[3275],{"type":44,"tag":130,"props":3276,"children":3277},{"style":215},[3278],{"type":50,"value":2489},{"type":44,"tag":130,"props":3280,"children":3282},{"class":132,"line":3281},70,[3283,3287,3291],{"type":44,"tag":130,"props":3284,"children":3285},{"style":215},[3286],{"type":50,"value":2566},{"type":44,"tag":130,"props":3288,"children":3289},{"style":445},[3290],{"type":50,"value":2571},{"type":44,"tag":130,"props":3292,"children":3293},{"style":215},[3294],{"type":50,"value":263},{"type":44,"tag":130,"props":3296,"children":3298},{"class":132,"line":3297},71,[3299],{"type":44,"tag":130,"props":3300,"children":3301},{"emptyLinePlaceholder":316},[3302],{"type":50,"value":319},{"type":44,"tag":130,"props":3304,"children":3306},{"class":132,"line":3305},72,[3307,3311,3316,3320,3324,3328,3332,3336,3340],{"type":44,"tag":130,"props":3308,"children":3309},{"style":326},[3310],{"type":50,"value":1435},{"type":44,"tag":130,"props":3312,"children":3313},{"style":221},[3314],{"type":50,"value":3315}," handleDisconnect",{"type":44,"tag":130,"props":3317,"children":3318},{"style":215},[3319],{"type":50,"value":374},{"type":44,"tag":130,"props":3321,"children":3322},{"style":404},[3323],{"type":50,"value":1235},{"type":44,"tag":130,"props":3325,"children":3326},{"style":445},[3327],{"type":50,"value":490},{"type":44,"tag":130,"props":3329,"children":3330},{"style":326},[3331],{"type":50,"value":2613},{"type":44,"tag":130,"props":3333,"children":3334},{"style":215},[3335],{"type":50,"value":2357},{"type":44,"tag":130,"props":3337,"children":3338},{"style":326},[3339],{"type":50,"value":960},{"type":44,"tag":130,"props":3341,"children":3342},{"style":215},[3343],{"type":50,"value":433},{"type":44,"tag":130,"props":3345,"children":3347},{"class":132,"line":3346},73,[3348,3352,3356,3360,3364,3368,3372],{"type":44,"tag":130,"props":3349,"children":3350},{"style":326},[3351],{"type":50,"value":2634},{"type":44,"tag":130,"props":3353,"children":3354},{"style":221},[3355],{"type":50,"value":1919},{"type":44,"tag":130,"props":3357,"children":3358},{"style":215},[3359],{"type":50,"value":374},{"type":44,"tag":130,"props":3361,"children":3362},{"style":221},[3363],{"type":50,"value":1440},{"type":44,"tag":130,"props":3365,"children":3366},{"style":215},[3367],{"type":50,"value":565},{"type":44,"tag":130,"props":3369,"children":3370},{"style":221},[3371],{"type":50,"value":1991},{"type":44,"tag":130,"props":3373,"children":3374},{"style":215},[3375],{"type":50,"value":263},{"type":44,"tag":130,"props":3377,"children":3379},{"class":132,"line":3378},74,[3380,3384,3388,3392,3396,3400,3404],{"type":44,"tag":130,"props":3381,"children":3382},{"style":209},[3383],{"type":50,"value":2667},{"type":44,"tag":130,"props":3385,"children":3386},{"style":445},[3387],{"type":50,"value":448},{"type":44,"tag":130,"props":3389,"children":3390},{"style":215},[3391],{"type":50,"value":453},{"type":44,"tag":130,"props":3393,"children":3394},{"style":221},[3395],{"type":50,"value":2680},{"type":44,"tag":130,"props":3397,"children":3398},{"style":445},[3399],{"type":50,"value":463},{"type":44,"tag":130,"props":3401,"children":3402},{"style":209},[3403],{"type":50,"value":1970},{"type":44,"tag":130,"props":3405,"children":3406},{"style":215},[3407],{"type":50,"value":263},{"type":44,"tag":130,"props":3409,"children":3411},{"class":132,"line":3410},75,[3412,3417,3421,3425,3429,3433],{"type":44,"tag":130,"props":3413,"children":3414},{"style":209},[3415],{"type":50,"value":3416},"    await",{"type":44,"tag":130,"props":3418,"children":3419},{"style":221},[3420],{"type":50,"value":1919},{"type":44,"tag":130,"props":3422,"children":3423},{"style":215},[3424],{"type":50,"value":565},{"type":44,"tag":130,"props":3426,"children":3427},{"style":404},[3428],{"type":50,"value":2344},{"type":44,"tag":130,"props":3430,"children":3431},{"style":445},[3432],{"type":50,"value":1423},{"type":44,"tag":130,"props":3434,"children":3435},{"style":215},[3436],{"type":50,"value":263},{"type":44,"tag":130,"props":3438,"children":3440},{"class":132,"line":3439},76,[3441,3446,3450],{"type":44,"tag":130,"props":3442,"children":3443},{"style":404},[3444],{"type":50,"value":3445},"    setAccounts",{"type":44,"tag":130,"props":3447,"children":3448},{"style":445},[3449],{"type":50,"value":1546},{"type":44,"tag":130,"props":3451,"children":3452},{"style":215},[3453],{"type":50,"value":263},{"type":44,"tag":130,"props":3455,"children":3457},{"class":132,"line":3456},77,[3458,3463,3467,3471,3475],{"type":44,"tag":130,"props":3459,"children":3460},{"style":404},[3461],{"type":50,"value":3462},"    setChainId",{"type":44,"tag":130,"props":3464,"children":3465},{"style":445},[3466],{"type":50,"value":490},{"type":44,"tag":130,"props":3468,"children":3469},{"style":215},[3470],{"type":50,"value":1477},{"type":44,"tag":130,"props":3472,"children":3473},{"style":445},[3474],{"type":50,"value":751},{"type":44,"tag":130,"props":3476,"children":3477},{"style":215},[3478],{"type":50,"value":263},{"type":44,"tag":130,"props":3480,"children":3482},{"class":132,"line":3481},78,[3483,3488,3492,3496,3500],{"type":44,"tag":130,"props":3484,"children":3485},{"style":404},[3486],{"type":50,"value":3487},"    setBalance",{"type":44,"tag":130,"props":3489,"children":3490},{"style":445},[3491],{"type":50,"value":490},{"type":44,"tag":130,"props":3493,"children":3494},{"style":215},[3495],{"type":50,"value":1683},{"type":44,"tag":130,"props":3497,"children":3498},{"style":445},[3499],{"type":50,"value":751},{"type":44,"tag":130,"props":3501,"children":3502},{"style":215},[3503],{"type":50,"value":263},{"type":44,"tag":130,"props":3505,"children":3507},{"class":132,"line":3506},79,[3508,3512,3516],{"type":44,"tag":130,"props":3509,"children":3510},{"style":215},[3511],{"type":50,"value":2566},{"type":44,"tag":130,"props":3513,"children":3514},{"style":445},[3515],{"type":50,"value":2571},{"type":44,"tag":130,"props":3517,"children":3518},{"style":215},[3519],{"type":50,"value":263},{"type":44,"tag":130,"props":3521,"children":3523},{"class":132,"line":3522},80,[3524],{"type":44,"tag":130,"props":3525,"children":3526},{"emptyLinePlaceholder":316},[3527],{"type":50,"value":319},{"type":44,"tag":130,"props":3529,"children":3531},{"class":132,"line":3530},81,[3532,3536,3541,3545,3549,3553,3557,3561,3565],{"type":44,"tag":130,"props":3533,"children":3534},{"style":326},[3535],{"type":50,"value":1435},{"type":44,"tag":130,"props":3537,"children":3538},{"style":221},[3539],{"type":50,"value":3540}," fetchBalance",{"type":44,"tag":130,"props":3542,"children":3543},{"style":215},[3544],{"type":50,"value":374},{"type":44,"tag":130,"props":3546,"children":3547},{"style":404},[3548],{"type":50,"value":1235},{"type":44,"tag":130,"props":3550,"children":3551},{"style":445},[3552],{"type":50,"value":490},{"type":44,"tag":130,"props":3554,"children":3555},{"style":326},[3556],{"type":50,"value":2613},{"type":44,"tag":130,"props":3558,"children":3559},{"style":215},[3560],{"type":50,"value":2357},{"type":44,"tag":130,"props":3562,"children":3563},{"style":326},[3564],{"type":50,"value":960},{"type":44,"tag":130,"props":3566,"children":3567},{"style":215},[3568],{"type":50,"value":433},{"type":44,"tag":130,"props":3570,"children":3572},{"class":132,"line":3571},82,[3573,3577,3581,3585,3589,3593,3597],{"type":44,"tag":130,"props":3574,"children":3575},{"style":326},[3576],{"type":50,"value":2634},{"type":44,"tag":130,"props":3578,"children":3579},{"style":221},[3580],{"type":50,"value":1919},{"type":44,"tag":130,"props":3582,"children":3583},{"style":215},[3584],{"type":50,"value":374},{"type":44,"tag":130,"props":3586,"children":3587},{"style":221},[3588],{"type":50,"value":1440},{"type":44,"tag":130,"props":3590,"children":3591},{"style":215},[3592],{"type":50,"value":565},{"type":44,"tag":130,"props":3594,"children":3595},{"style":221},[3596],{"type":50,"value":1991},{"type":44,"tag":130,"props":3598,"children":3599},{"style":215},[3600],{"type":50,"value":263},{"type":44,"tag":130,"props":3602,"children":3604},{"class":132,"line":3603},83,[3605,3609,3613,3617,3621,3626,3631,3635,3640,3644,3649,3653,3657],{"type":44,"tag":130,"props":3606,"children":3607},{"style":209},[3608],{"type":50,"value":2667},{"type":44,"tag":130,"props":3610,"children":3611},{"style":445},[3612],{"type":50,"value":448},{"type":44,"tag":130,"props":3614,"children":3615},{"style":215},[3616],{"type":50,"value":453},{"type":44,"tag":130,"props":3618,"children":3619},{"style":221},[3620],{"type":50,"value":2680},{"type":44,"tag":130,"props":3622,"children":3623},{"style":215},[3624],{"type":50,"value":3625}," ||",{"type":44,"tag":130,"props":3627,"children":3628},{"style":221},[3629],{"type":50,"value":3630}," accounts",{"type":44,"tag":130,"props":3632,"children":3633},{"style":215},[3634],{"type":50,"value":565},{"type":44,"tag":130,"props":3636,"children":3637},{"style":221},[3638],{"type":50,"value":3639},"length",{"type":44,"tag":130,"props":3641,"children":3642},{"style":215},[3643],{"type":50,"value":3007},{"type":44,"tag":130,"props":3645,"children":3646},{"style":3010},[3647],{"type":50,"value":3648}," 0",{"type":44,"tag":130,"props":3650,"children":3651},{"style":445},[3652],{"type":50,"value":463},{"type":44,"tag":130,"props":3654,"children":3655},{"style":209},[3656],{"type":50,"value":1970},{"type":44,"tag":130,"props":3658,"children":3659},{"style":215},[3660],{"type":50,"value":263},{"type":44,"tag":130,"props":3662,"children":3664},{"class":132,"line":3663},84,[3665],{"type":44,"tag":130,"props":3666,"children":3667},{"emptyLinePlaceholder":316},[3668],{"type":50,"value":319},{"type":44,"tag":130,"props":3670,"children":3672},{"class":132,"line":3671},85,[3673,3677,3681,3685,3689,3693,3697,3701],{"type":44,"tag":130,"props":3674,"children":3675},{"style":326},[3676],{"type":50,"value":2634},{"type":44,"tag":130,"props":3678,"children":3679},{"style":221},[3680],{"type":50,"value":2022},{"type":44,"tag":130,"props":3682,"children":3683},{"style":215},[3684],{"type":50,"value":374},{"type":44,"tag":130,"props":3686,"children":3687},{"style":221},[3688],{"type":50,"value":1919},{"type":44,"tag":130,"props":3690,"children":3691},{"style":215},[3692],{"type":50,"value":565},{"type":44,"tag":130,"props":3694,"children":3695},{"style":404},[3696],{"type":50,"value":2039},{"type":44,"tag":130,"props":3698,"children":3699},{"style":445},[3700],{"type":50,"value":1423},{"type":44,"tag":130,"props":3702,"children":3703},{"style":215},[3704],{"type":50,"value":263},{"type":44,"tag":130,"props":3706,"children":3708},{"class":132,"line":3707},86,[3709,3713,3718,3722,3726,3730,3734,3739,3743],{"type":44,"tag":130,"props":3710,"children":3711},{"style":326},[3712],{"type":50,"value":2634},{"type":44,"tag":130,"props":3714,"children":3715},{"style":221},[3716],{"type":50,"value":3717}," wei",{"type":44,"tag":130,"props":3719,"children":3720},{"style":215},[3721],{"type":50,"value":374},{"type":44,"tag":130,"props":3723,"children":3724},{"style":209},[3725],{"type":50,"value":1928},{"type":44,"tag":130,"props":3727,"children":3728},{"style":221},[3729],{"type":50,"value":2022},{"type":44,"tag":130,"props":3731,"children":3732},{"style":215},[3733],{"type":50,"value":565},{"type":44,"tag":130,"props":3735,"children":3736},{"style":404},[3737],{"type":50,"value":3738},"request",{"type":44,"tag":130,"props":3740,"children":3741},{"style":445},[3742],{"type":50,"value":490},{"type":44,"tag":130,"props":3744,"children":3745},{"style":215},[3746],{"type":50,"value":468},{"type":44,"tag":130,"props":3748,"children":3750},{"class":132,"line":3749},87,[3751,3756,3760,3764,3769,3773],{"type":44,"tag":130,"props":3752,"children":3753},{"style":445},[3754],{"type":50,"value":3755},"      method",{"type":44,"tag":130,"props":3757,"children":3758},{"style":215},[3759],{"type":50,"value":339},{"type":44,"tag":130,"props":3761,"children":3762},{"style":215},[3763],{"type":50,"value":249},{"type":44,"tag":130,"props":3765,"children":3766},{"style":143},[3767],{"type":50,"value":3768},"eth_getBalance",{"type":44,"tag":130,"props":3770,"children":3771},{"style":215},[3772],{"type":50,"value":258},{"type":44,"tag":130,"props":3774,"children":3775},{"style":215},[3776],{"type":50,"value":542},{"type":44,"tag":130,"props":3778,"children":3780},{"class":132,"line":3779},88,[3781,3786,3790,3794,3798,3803,3808,3812,3816,3820,3825,3829,3833],{"type":44,"tag":130,"props":3782,"children":3783},{"style":445},[3784],{"type":50,"value":3785},"      params",{"type":44,"tag":130,"props":3787,"children":3788},{"style":215},[3789],{"type":50,"value":339},{"type":44,"tag":130,"props":3791,"children":3792},{"style":445},[3793],{"type":50,"value":689},{"type":44,"tag":130,"props":3795,"children":3796},{"style":221},[3797],{"type":50,"value":1501},{"type":44,"tag":130,"props":3799,"children":3800},{"style":445},[3801],{"type":50,"value":3802},"[",{"type":44,"tag":130,"props":3804,"children":3805},{"style":3010},[3806],{"type":50,"value":3807},"0",{"type":44,"tag":130,"props":3809,"children":3810},{"style":445},[3811],{"type":50,"value":1515},{"type":44,"tag":130,"props":3813,"children":3814},{"style":215},[3815],{"type":50,"value":229},{"type":44,"tag":130,"props":3817,"children":3818},{"style":215},[3819],{"type":50,"value":249},{"type":44,"tag":130,"props":3821,"children":3822},{"style":143},[3823],{"type":50,"value":3824},"latest",{"type":44,"tag":130,"props":3826,"children":3827},{"style":215},[3828],{"type":50,"value":258},{"type":44,"tag":130,"props":3830,"children":3831},{"style":445},[3832],{"type":50,"value":1515},{"type":44,"tag":130,"props":3834,"children":3835},{"style":215},[3836],{"type":50,"value":542},{"type":44,"tag":130,"props":3838,"children":3840},{"class":132,"line":3839},89,[3841,3845,3849,3854,3858],{"type":44,"tag":130,"props":3842,"children":3843},{"style":215},[3844],{"type":50,"value":1062},{"type":44,"tag":130,"props":3846,"children":3847},{"style":445},[3848],{"type":50,"value":463},{"type":44,"tag":130,"props":3850,"children":3851},{"style":209},[3852],{"type":50,"value":3853},"as",{"type":44,"tag":130,"props":3855,"children":3856},{"style":137},[3857],{"type":50,"value":1362},{"type":44,"tag":130,"props":3859,"children":3860},{"style":215},[3861],{"type":50,"value":263},{"type":44,"tag":130,"props":3863,"children":3865},{"class":132,"line":3864},90,[3866],{"type":44,"tag":130,"props":3867,"children":3868},{"emptyLinePlaceholder":316},[3869],{"type":50,"value":319},{"type":44,"tag":130,"props":3871,"children":3873},{"class":132,"line":3872},91,[3874,3878,3883,3887,3892,3896,3901,3905,3910,3914,3919,3924],{"type":44,"tag":130,"props":3875,"children":3876},{"style":326},[3877],{"type":50,"value":2634},{"type":44,"tag":130,"props":3879,"children":3880},{"style":221},[3881],{"type":50,"value":3882}," ethBalance",{"type":44,"tag":130,"props":3884,"children":3885},{"style":215},[3886],{"type":50,"value":374},{"type":44,"tag":130,"props":3888,"children":3889},{"style":404},[3890],{"type":50,"value":3891}," parseInt",{"type":44,"tag":130,"props":3893,"children":3894},{"style":445},[3895],{"type":50,"value":490},{"type":44,"tag":130,"props":3897,"children":3898},{"style":221},[3899],{"type":50,"value":3900},"wei",{"type":44,"tag":130,"props":3902,"children":3903},{"style":215},[3904],{"type":50,"value":229},{"type":44,"tag":130,"props":3906,"children":3907},{"style":3010},[3908],{"type":50,"value":3909}," 16",{"type":44,"tag":130,"props":3911,"children":3912},{"style":445},[3913],{"type":50,"value":463},{"type":44,"tag":130,"props":3915,"children":3916},{"style":215},[3917],{"type":50,"value":3918},"\u002F",{"type":44,"tag":130,"props":3920,"children":3921},{"style":3010},[3922],{"type":50,"value":3923}," 1e18",{"type":44,"tag":130,"props":3925,"children":3926},{"style":215},[3927],{"type":50,"value":263},{"type":44,"tag":130,"props":3929,"children":3931},{"class":132,"line":3930},92,[3932,3936,3940,3945,3949,3954,3958,3963,3968],{"type":44,"tag":130,"props":3933,"children":3934},{"style":404},[3935],{"type":50,"value":3487},{"type":44,"tag":130,"props":3937,"children":3938},{"style":445},[3939],{"type":50,"value":490},{"type":44,"tag":130,"props":3941,"children":3942},{"style":221},[3943],{"type":50,"value":3944},"ethBalance",{"type":44,"tag":130,"props":3946,"children":3947},{"style":215},[3948],{"type":50,"value":565},{"type":44,"tag":130,"props":3950,"children":3951},{"style":404},[3952],{"type":50,"value":3953},"toFixed",{"type":44,"tag":130,"props":3955,"children":3956},{"style":445},[3957],{"type":50,"value":490},{"type":44,"tag":130,"props":3959,"children":3960},{"style":3010},[3961],{"type":50,"value":3962},"6",{"type":44,"tag":130,"props":3964,"children":3965},{"style":445},[3966],{"type":50,"value":3967},"))",{"type":44,"tag":130,"props":3969,"children":3970},{"style":215},[3971],{"type":50,"value":263},{"type":44,"tag":130,"props":3973,"children":3975},{"class":132,"line":3974},93,[3976,3980,3984,3988,3993],{"type":44,"tag":130,"props":3977,"children":3978},{"style":215},[3979],{"type":50,"value":2566},{"type":44,"tag":130,"props":3981,"children":3982},{"style":445},[3983],{"type":50,"value":689},{"type":44,"tag":130,"props":3985,"children":3986},{"style":221},[3987],{"type":50,"value":1501},{"type":44,"tag":130,"props":3989,"children":3990},{"style":445},[3991],{"type":50,"value":3992},"])",{"type":44,"tag":130,"props":3994,"children":3995},{"style":215},[3996],{"type":50,"value":263},{"type":44,"tag":130,"props":3998,"children":4000},{"class":132,"line":3999},94,[4001],{"type":44,"tag":130,"props":4002,"children":4003},{"emptyLinePlaceholder":316},[4004],{"type":50,"value":319},{"type":44,"tag":130,"props":4006,"children":4008},{"class":132,"line":4007},95,[4009],{"type":44,"tag":130,"props":4010,"children":4011},{"style":200},[4012],{"type":50,"value":4013},"  \u002F\u002F chainConfiguration must match the target chain (and include its chainId) —\n",{"type":44,"tag":130,"props":4015,"children":4017},{"class":132,"line":4016},96,[4018],{"type":44,"tag":130,"props":4019,"children":4020},{"style":200},[4021],{"type":50,"value":4022},"  \u002F\u002F the wallet receives it verbatim as wallet_addEthereumChain params\n",{"type":44,"tag":130,"props":4024,"children":4026},{"class":132,"line":4025},97,[4027,4031,4036,4040,4044,4048,4052,4056,4060],{"type":44,"tag":130,"props":4028,"children":4029},{"style":326},[4030],{"type":50,"value":1435},{"type":44,"tag":130,"props":4032,"children":4033},{"style":221},[4034],{"type":50,"value":4035}," handleSwitchToPolygon",{"type":44,"tag":130,"props":4037,"children":4038},{"style":215},[4039],{"type":50,"value":374},{"type":44,"tag":130,"props":4041,"children":4042},{"style":404},[4043],{"type":50,"value":1235},{"type":44,"tag":130,"props":4045,"children":4046},{"style":445},[4047],{"type":50,"value":490},{"type":44,"tag":130,"props":4049,"children":4050},{"style":326},[4051],{"type":50,"value":2613},{"type":44,"tag":130,"props":4053,"children":4054},{"style":215},[4055],{"type":50,"value":2357},{"type":44,"tag":130,"props":4057,"children":4058},{"style":326},[4059],{"type":50,"value":960},{"type":44,"tag":130,"props":4061,"children":4062},{"style":215},[4063],{"type":50,"value":433},{"type":44,"tag":130,"props":4065,"children":4067},{"class":132,"line":4066},98,[4068,4072,4076,4080,4084,4088,4092],{"type":44,"tag":130,"props":4069,"children":4070},{"style":326},[4071],{"type":50,"value":2634},{"type":44,"tag":130,"props":4073,"children":4074},{"style":221},[4075],{"type":50,"value":1919},{"type":44,"tag":130,"props":4077,"children":4078},{"style":215},[4079],{"type":50,"value":374},{"type":44,"tag":130,"props":4081,"children":4082},{"style":221},[4083],{"type":50,"value":1440},{"type":44,"tag":130,"props":4085,"children":4086},{"style":215},[4087],{"type":50,"value":565},{"type":44,"tag":130,"props":4089,"children":4090},{"style":221},[4091],{"type":50,"value":1991},{"type":44,"tag":130,"props":4093,"children":4094},{"style":215},[4095],{"type":50,"value":263},{"type":44,"tag":130,"props":4097,"children":4099},{"class":132,"line":4098},99,[4100,4104,4108,4112,4116,4120,4124],{"type":44,"tag":130,"props":4101,"children":4102},{"style":209},[4103],{"type":50,"value":2667},{"type":44,"tag":130,"props":4105,"children":4106},{"style":445},[4107],{"type":50,"value":448},{"type":44,"tag":130,"props":4109,"children":4110},{"style":215},[4111],{"type":50,"value":453},{"type":44,"tag":130,"props":4113,"children":4114},{"style":221},[4115],{"type":50,"value":2680},{"type":44,"tag":130,"props":4117,"children":4118},{"style":445},[4119],{"type":50,"value":463},{"type":44,"tag":130,"props":4121,"children":4122},{"style":209},[4123],{"type":50,"value":1970},{"type":44,"tag":130,"props":4125,"children":4126},{"style":215},[4127],{"type":50,"value":263},{"type":44,"tag":130,"props":4129,"children":4131},{"class":132,"line":4130},100,[4132],{"type":44,"tag":130,"props":4133,"children":4134},{"emptyLinePlaceholder":316},[4135],{"type":50,"value":319},{"type":44,"tag":130,"props":4137,"children":4139},{"class":132,"line":4138},101,[4140,4144],{"type":44,"tag":130,"props":4141,"children":4142},{"style":209},[4143],{"type":50,"value":2768},{"type":44,"tag":130,"props":4145,"children":4146},{"style":215},[4147],{"type":50,"value":433},{"type":44,"tag":130,"props":4149,"children":4151},{"class":132,"line":4150},102,[4152,4157,4161,4165,4170,4174],{"type":44,"tag":130,"props":4153,"children":4154},{"style":209},[4155],{"type":50,"value":4156},"      await",{"type":44,"tag":130,"props":4158,"children":4159},{"style":221},[4160],{"type":50,"value":1919},{"type":44,"tag":130,"props":4162,"children":4163},{"style":215},[4164],{"type":50,"value":565},{"type":44,"tag":130,"props":4166,"children":4167},{"style":404},[4168],{"type":50,"value":4169},"switchChain",{"type":44,"tag":130,"props":4171,"children":4172},{"style":445},[4173],{"type":50,"value":490},{"type":44,"tag":130,"props":4175,"children":4176},{"style":215},[4177],{"type":50,"value":468},{"type":44,"tag":130,"props":4179,"children":4181},{"class":132,"line":4180},103,[4182,4187,4191,4195,4199,4203],{"type":44,"tag":130,"props":4183,"children":4184},{"style":445},[4185],{"type":50,"value":4186},"        chainId",{"type":44,"tag":130,"props":4188,"children":4189},{"style":215},[4190],{"type":50,"value":339},{"type":44,"tag":130,"props":4192,"children":4193},{"style":215},[4194],{"type":50,"value":249},{"type":44,"tag":130,"props":4196,"children":4197},{"style":143},[4198],{"type":50,"value":715},{"type":44,"tag":130,"props":4200,"children":4201},{"style":215},[4202],{"type":50,"value":258},{"type":44,"tag":130,"props":4204,"children":4205},{"style":215},[4206],{"type":50,"value":542},{"type":44,"tag":130,"props":4208,"children":4210},{"class":132,"line":4209},104,[4211,4216,4220],{"type":44,"tag":130,"props":4212,"children":4213},{"style":445},[4214],{"type":50,"value":4215},"        chainConfiguration",{"type":44,"tag":130,"props":4217,"children":4218},{"style":215},[4219],{"type":50,"value":339},{"type":44,"tag":130,"props":4221,"children":4222},{"style":215},[4223],{"type":50,"value":433},{"type":44,"tag":130,"props":4225,"children":4227},{"class":132,"line":4226},105,[4228,4233,4237,4241,4245,4249],{"type":44,"tag":130,"props":4229,"children":4230},{"style":445},[4231],{"type":50,"value":4232},"          chainId",{"type":44,"tag":130,"props":4234,"children":4235},{"style":215},[4236],{"type":50,"value":339},{"type":44,"tag":130,"props":4238,"children":4239},{"style":215},[4240],{"type":50,"value":249},{"type":44,"tag":130,"props":4242,"children":4243},{"style":143},[4244],{"type":50,"value":715},{"type":44,"tag":130,"props":4246,"children":4247},{"style":215},[4248],{"type":50,"value":258},{"type":44,"tag":130,"props":4250,"children":4251},{"style":215},[4252],{"type":50,"value":542},{"type":44,"tag":130,"props":4254,"children":4256},{"class":132,"line":4255},106,[4257,4262,4266,4270,4275,4279],{"type":44,"tag":130,"props":4258,"children":4259},{"style":445},[4260],{"type":50,"value":4261},"          chainName",{"type":44,"tag":130,"props":4263,"children":4264},{"style":215},[4265],{"type":50,"value":339},{"type":44,"tag":130,"props":4267,"children":4268},{"style":215},[4269],{"type":50,"value":249},{"type":44,"tag":130,"props":4271,"children":4272},{"style":143},[4273],{"type":50,"value":4274},"Polygon",{"type":44,"tag":130,"props":4276,"children":4277},{"style":215},[4278],{"type":50,"value":258},{"type":44,"tag":130,"props":4280,"children":4281},{"style":215},[4282],{"type":50,"value":542},{"type":44,"tag":130,"props":4284,"children":4286},{"class":132,"line":4285},107,[4287,4292,4296,4300,4305,4309,4313,4318,4322,4326,4331,4335,4339,4343,4347,4351,4356,4360,4365],{"type":44,"tag":130,"props":4288,"children":4289},{"style":445},[4290],{"type":50,"value":4291},"          nativeCurrency",{"type":44,"tag":130,"props":4293,"children":4294},{"style":215},[4295],{"type":50,"value":339},{"type":44,"tag":130,"props":4297,"children":4298},{"style":215},[4299],{"type":50,"value":218},{"type":44,"tag":130,"props":4301,"children":4302},{"style":445},[4303],{"type":50,"value":4304}," name",{"type":44,"tag":130,"props":4306,"children":4307},{"style":215},[4308],{"type":50,"value":339},{"type":44,"tag":130,"props":4310,"children":4311},{"style":215},[4312],{"type":50,"value":249},{"type":44,"tag":130,"props":4314,"children":4315},{"style":143},[4316],{"type":50,"value":4317},"MATIC",{"type":44,"tag":130,"props":4319,"children":4320},{"style":215},[4321],{"type":50,"value":258},{"type":44,"tag":130,"props":4323,"children":4324},{"style":215},[4325],{"type":50,"value":229},{"type":44,"tag":130,"props":4327,"children":4328},{"style":445},[4329],{"type":50,"value":4330}," symbol",{"type":44,"tag":130,"props":4332,"children":4333},{"style":215},[4334],{"type":50,"value":339},{"type":44,"tag":130,"props":4336,"children":4337},{"style":215},[4338],{"type":50,"value":249},{"type":44,"tag":130,"props":4340,"children":4341},{"style":143},[4342],{"type":50,"value":4317},{"type":44,"tag":130,"props":4344,"children":4345},{"style":215},[4346],{"type":50,"value":258},{"type":44,"tag":130,"props":4348,"children":4349},{"style":215},[4350],{"type":50,"value":229},{"type":44,"tag":130,"props":4352,"children":4353},{"style":445},[4354],{"type":50,"value":4355}," decimals",{"type":44,"tag":130,"props":4357,"children":4358},{"style":215},[4359],{"type":50,"value":339},{"type":44,"tag":130,"props":4361,"children":4362},{"style":3010},[4363],{"type":50,"value":4364}," 18",{"type":44,"tag":130,"props":4366,"children":4367},{"style":215},[4368],{"type":50,"value":4369}," },\n",{"type":44,"tag":130,"props":4371,"children":4373},{"class":132,"line":4372},108,[4374,4379,4383,4387,4391,4396,4400,4404],{"type":44,"tag":130,"props":4375,"children":4376},{"style":445},[4377],{"type":50,"value":4378},"          rpcUrls",{"type":44,"tag":130,"props":4380,"children":4381},{"style":215},[4382],{"type":50,"value":339},{"type":44,"tag":130,"props":4384,"children":4385},{"style":445},[4386],{"type":50,"value":689},{"type":44,"tag":130,"props":4388,"children":4389},{"style":215},[4390],{"type":50,"value":258},{"type":44,"tag":130,"props":4392,"children":4393},{"style":143},[4394],{"type":50,"value":4395},"https:\u002F\u002Fpolygon-rpc.com",{"type":44,"tag":130,"props":4397,"children":4398},{"style":215},[4399],{"type":50,"value":258},{"type":44,"tag":130,"props":4401,"children":4402},{"style":445},[4403],{"type":50,"value":1515},{"type":44,"tag":130,"props":4405,"children":4406},{"style":215},[4407],{"type":50,"value":542},{"type":44,"tag":130,"props":4409,"children":4411},{"class":132,"line":4410},109,[4412,4417,4421,4425,4429,4434,4438,4442],{"type":44,"tag":130,"props":4413,"children":4414},{"style":445},[4415],{"type":50,"value":4416},"          blockExplorerUrls",{"type":44,"tag":130,"props":4418,"children":4419},{"style":215},[4420],{"type":50,"value":339},{"type":44,"tag":130,"props":4422,"children":4423},{"style":445},[4424],{"type":50,"value":689},{"type":44,"tag":130,"props":4426,"children":4427},{"style":215},[4428],{"type":50,"value":258},{"type":44,"tag":130,"props":4430,"children":4431},{"style":143},[4432],{"type":50,"value":4433},"https:\u002F\u002Fpolygonscan.com",{"type":44,"tag":130,"props":4435,"children":4436},{"style":215},[4437],{"type":50,"value":258},{"type":44,"tag":130,"props":4439,"children":4440},{"style":445},[4441],{"type":50,"value":1515},{"type":44,"tag":130,"props":4443,"children":4444},{"style":215},[4445],{"type":50,"value":542},{"type":44,"tag":130,"props":4447,"children":4449},{"class":132,"line":4448},110,[4450],{"type":44,"tag":130,"props":4451,"children":4452},{"style":215},[4453],{"type":50,"value":803},{"type":44,"tag":130,"props":4455,"children":4457},{"class":132,"line":4456},111,[4458,4462,4466],{"type":44,"tag":130,"props":4459,"children":4460},{"style":215},[4461],{"type":50,"value":2174},{"type":44,"tag":130,"props":4463,"children":4464},{"style":445},[4465],{"type":50,"value":751},{"type":44,"tag":130,"props":4467,"children":4468},{"style":215},[4469],{"type":50,"value":263},{"type":44,"tag":130,"props":4471,"children":4473},{"class":132,"line":4472},112,[4474,4478,4482,4486,4490,4494,4498,4502],{"type":44,"tag":130,"props":4475,"children":4476},{"style":215},[4477],{"type":50,"value":1062},{"type":44,"tag":130,"props":4479,"children":4480},{"style":209},[4481],{"type":50,"value":2952},{"type":44,"tag":130,"props":4483,"children":4484},{"style":215},[4485],{"type":50,"value":448},{"type":44,"tag":130,"props":4487,"children":4488},{"style":939},[4489],{"type":50,"value":2961},{"type":44,"tag":130,"props":4491,"children":4492},{"style":215},[4493],{"type":50,"value":339},{"type":44,"tag":130,"props":4495,"children":4496},{"style":137},[4497],{"type":50,"value":2970},{"type":44,"tag":130,"props":4499,"children":4500},{"style":215},[4501],{"type":50,"value":751},{"type":44,"tag":130,"props":4503,"children":4504},{"style":215},[4505],{"type":50,"value":433},{"type":44,"tag":130,"props":4507,"children":4509},{"class":132,"line":4508},113,[4510,4514,4518,4522,4526,4530,4534,4538,4542],{"type":44,"tag":130,"props":4511,"children":4512},{"style":209},[4513],{"type":50,"value":1948},{"type":44,"tag":130,"props":4515,"children":4516},{"style":445},[4517],{"type":50,"value":448},{"type":44,"tag":130,"props":4519,"children":4520},{"style":221},[4521],{"type":50,"value":2961},{"type":44,"tag":130,"props":4523,"children":4524},{"style":215},[4525],{"type":50,"value":565},{"type":44,"tag":130,"props":4527,"children":4528},{"style":221},[4529],{"type":50,"value":76},{"type":44,"tag":130,"props":4531,"children":4532},{"style":215},[4533],{"type":50,"value":3007},{"type":44,"tag":130,"props":4535,"children":4536},{"style":3010},[4537],{"type":50,"value":3013},{"type":44,"tag":130,"props":4539,"children":4540},{"style":445},[4541],{"type":50,"value":463},{"type":44,"tag":130,"props":4543,"children":4544},{"style":215},[4545],{"type":50,"value":468},{"type":44,"tag":130,"props":4547,"children":4549},{"class":132,"line":4548},114,[4550,4554,4558,4562,4567,4571,4575],{"type":44,"tag":130,"props":4551,"children":4552},{"style":404},[4553],{"type":50,"value":3030},{"type":44,"tag":130,"props":4555,"children":4556},{"style":445},[4557],{"type":50,"value":490},{"type":44,"tag":130,"props":4559,"children":4560},{"style":215},[4561],{"type":50,"value":258},{"type":44,"tag":130,"props":4563,"children":4564},{"style":143},[4565],{"type":50,"value":4566},"Chain switch rejected by user.",{"type":44,"tag":130,"props":4568,"children":4569},{"style":215},[4570],{"type":50,"value":258},{"type":44,"tag":130,"props":4572,"children":4573},{"style":445},[4574],{"type":50,"value":751},{"type":44,"tag":130,"props":4576,"children":4577},{"style":215},[4578],{"type":50,"value":263},{"type":44,"tag":130,"props":4580,"children":4582},{"class":132,"line":4581},115,[4583],{"type":44,"tag":130,"props":4584,"children":4585},{"style":215},[4586],{"type":50,"value":3077},{"type":44,"tag":130,"props":4588,"children":4590},{"class":132,"line":4589},116,[4591],{"type":44,"tag":130,"props":4592,"children":4593},{"style":215},[4594],{"type":50,"value":2489},{"type":44,"tag":130,"props":4596,"children":4598},{"class":132,"line":4597},117,[4599,4603,4607],{"type":44,"tag":130,"props":4600,"children":4601},{"style":215},[4602],{"type":50,"value":2566},{"type":44,"tag":130,"props":4604,"children":4605},{"style":445},[4606],{"type":50,"value":2571},{"type":44,"tag":130,"props":4608,"children":4609},{"style":215},[4610],{"type":50,"value":263},{"type":44,"tag":130,"props":4612,"children":4614},{"class":132,"line":4613},118,[4615],{"type":44,"tag":130,"props":4616,"children":4617},{"emptyLinePlaceholder":316},[4618],{"type":50,"value":319},{"type":44,"tag":130,"props":4620,"children":4622},{"class":132,"line":4621},119,[4623,4627,4632,4636,4640,4644,4648,4653,4657],{"type":44,"tag":130,"props":4624,"children":4625},{"style":326},[4626],{"type":50,"value":1435},{"type":44,"tag":130,"props":4628,"children":4629},{"style":221},[4630],{"type":50,"value":4631}," isConnected",{"type":44,"tag":130,"props":4633,"children":4634},{"style":215},[4635],{"type":50,"value":374},{"type":44,"tag":130,"props":4637,"children":4638},{"style":221},[4639],{"type":50,"value":3630},{"type":44,"tag":130,"props":4641,"children":4642},{"style":215},[4643],{"type":50,"value":565},{"type":44,"tag":130,"props":4645,"children":4646},{"style":221},[4647],{"type":50,"value":3639},{"type":44,"tag":130,"props":4649,"children":4650},{"style":215},[4651],{"type":50,"value":4652}," >",{"type":44,"tag":130,"props":4654,"children":4655},{"style":3010},[4656],{"type":50,"value":3648},{"type":44,"tag":130,"props":4658,"children":4659},{"style":215},[4660],{"type":50,"value":263},{"type":44,"tag":130,"props":4662,"children":4664},{"class":132,"line":4663},120,[4665],{"type":44,"tag":130,"props":4666,"children":4667},{"emptyLinePlaceholder":316},[4668],{"type":50,"value":319},{"type":44,"tag":130,"props":4670,"children":4672},{"class":132,"line":4671},121,[4673,4677,4681,4685,4690,4694],{"type":44,"tag":130,"props":4674,"children":4675},{"style":209},[4676],{"type":50,"value":442},{"type":44,"tag":130,"props":4678,"children":4679},{"style":445},[4680],{"type":50,"value":448},{"type":44,"tag":130,"props":4682,"children":4683},{"style":215},[4684],{"type":50,"value":453},{"type":44,"tag":130,"props":4686,"children":4687},{"style":221},[4688],{"type":50,"value":4689},"isConnected",{"type":44,"tag":130,"props":4691,"children":4692},{"style":445},[4693],{"type":50,"value":463},{"type":44,"tag":130,"props":4695,"children":4696},{"style":215},[4697],{"type":50,"value":468},{"type":44,"tag":130,"props":4699,"children":4701},{"class":132,"line":4700},122,[4702,4706],{"type":44,"tag":130,"props":4703,"children":4704},{"style":209},[4705],{"type":50,"value":2523},{"type":44,"tag":130,"props":4707,"children":4708},{"style":445},[4709],{"type":50,"value":4710}," (\n",{"type":44,"tag":130,"props":4712,"children":4714},{"class":132,"line":4713},123,[4715,4720,4725],{"type":44,"tag":130,"props":4716,"children":4717},{"style":215},[4718],{"type":50,"value":4719},"      \u003C",{"type":44,"tag":130,"props":4721,"children":4722},{"style":445},[4723],{"type":50,"value":4724},"div",{"type":44,"tag":130,"props":4726,"children":4727},{"style":215},[4728],{"type":50,"value":4729},">\n",{"type":44,"tag":130,"props":4731,"children":4733},{"class":132,"line":4732},124,[4734,4739,4744,4749,4754,4759,4764,4769,4773,4777],{"type":44,"tag":130,"props":4735,"children":4736},{"style":215},[4737],{"type":50,"value":4738},"        \u003C",{"type":44,"tag":130,"props":4740,"children":4741},{"style":445},[4742],{"type":50,"value":4743},"button",{"type":44,"tag":130,"props":4745,"children":4746},{"style":326},[4747],{"type":50,"value":4748}," onClick",{"type":44,"tag":130,"props":4750,"children":4751},{"style":215},[4752],{"type":50,"value":4753},"={",{"type":44,"tag":130,"props":4755,"children":4756},{"style":221},[4757],{"type":50,"value":4758},"handleConnect",{"type":44,"tag":130,"props":4760,"children":4761},{"style":215},[4762],{"type":50,"value":4763},"} ",{"type":44,"tag":130,"props":4765,"children":4766},{"style":326},[4767],{"type":50,"value":4768},"disabled",{"type":44,"tag":130,"props":4770,"children":4771},{"style":215},[4772],{"type":50,"value":4753},{"type":44,"tag":130,"props":4774,"children":4775},{"style":221},[4776],{"type":50,"value":1707},{"type":44,"tag":130,"props":4778,"children":4779},{"style":215},[4780],{"type":50,"value":4781},"}>\n",{"type":44,"tag":130,"props":4783,"children":4785},{"class":132,"line":4784},125,[4786,4791,4796,4801,4805,4810,4814,4819,4823,4828,4832],{"type":44,"tag":130,"props":4787,"children":4788},{"style":215},[4789],{"type":50,"value":4790},"          {",{"type":44,"tag":130,"props":4792,"children":4793},{"style":221},[4794],{"type":50,"value":4795},"connecting ",{"type":44,"tag":130,"props":4797,"children":4798},{"style":215},[4799],{"type":50,"value":4800},"?",{"type":44,"tag":130,"props":4802,"children":4803},{"style":215},[4804],{"type":50,"value":249},{"type":44,"tag":130,"props":4806,"children":4807},{"style":143},[4808],{"type":50,"value":4809},"Connecting...",{"type":44,"tag":130,"props":4811,"children":4812},{"style":215},[4813],{"type":50,"value":258},{"type":44,"tag":130,"props":4815,"children":4816},{"style":215},[4817],{"type":50,"value":4818}," :",{"type":44,"tag":130,"props":4820,"children":4821},{"style":215},[4822],{"type":50,"value":249},{"type":44,"tag":130,"props":4824,"children":4825},{"style":143},[4826],{"type":50,"value":4827},"Connect MetaMask",{"type":44,"tag":130,"props":4829,"children":4830},{"style":215},[4831],{"type":50,"value":258},{"type":44,"tag":130,"props":4833,"children":4834},{"style":215},[4835],{"type":50,"value":1105},{"type":44,"tag":130,"props":4837,"children":4839},{"class":132,"line":4838},126,[4840,4845,4849],{"type":44,"tag":130,"props":4841,"children":4842},{"style":215},[4843],{"type":50,"value":4844},"        \u003C\u002F",{"type":44,"tag":130,"props":4846,"children":4847},{"style":445},[4848],{"type":50,"value":4743},{"type":44,"tag":130,"props":4850,"children":4851},{"style":215},[4852],{"type":50,"value":4729},{"type":44,"tag":130,"props":4854,"children":4856},{"class":132,"line":4855},127,[4857,4862,4867,4872,4877,4881,4886,4891,4896,4900,4904,4909,4913,4918,4922,4927,4931],{"type":44,"tag":130,"props":4858,"children":4859},{"style":215},[4860],{"type":50,"value":4861},"        {",{"type":44,"tag":130,"props":4863,"children":4864},{"style":221},[4865],{"type":50,"value":4866},"error ",{"type":44,"tag":130,"props":4868,"children":4869},{"style":215},[4870],{"type":50,"value":4871},"&&",{"type":44,"tag":130,"props":4873,"children":4874},{"style":215},[4875],{"type":50,"value":4876}," \u003C",{"type":44,"tag":130,"props":4878,"children":4879},{"style":445},[4880],{"type":50,"value":60},{"type":44,"tag":130,"props":4882,"children":4883},{"style":326},[4884],{"type":50,"value":4885}," style",{"type":44,"tag":130,"props":4887,"children":4888},{"style":215},[4889],{"type":50,"value":4890},"={{",{"type":44,"tag":130,"props":4892,"children":4893},{"style":445},[4894],{"type":50,"value":4895}," color",{"type":44,"tag":130,"props":4897,"children":4898},{"style":215},[4899],{"type":50,"value":339},{"type":44,"tag":130,"props":4901,"children":4902},{"style":215},[4903],{"type":50,"value":249},{"type":44,"tag":130,"props":4905,"children":4906},{"style":143},[4907],{"type":50,"value":4908},"red",{"type":44,"tag":130,"props":4910,"children":4911},{"style":215},[4912],{"type":50,"value":258},{"type":44,"tag":130,"props":4914,"children":4915},{"style":215},[4916],{"type":50,"value":4917}," }}>{",{"type":44,"tag":130,"props":4919,"children":4920},{"style":221},[4921],{"type":50,"value":1761},{"type":44,"tag":130,"props":4923,"children":4924},{"style":215},[4925],{"type":50,"value":4926},"}\u003C\u002F",{"type":44,"tag":130,"props":4928,"children":4929},{"style":445},[4930],{"type":50,"value":60},{"type":44,"tag":130,"props":4932,"children":4933},{"style":215},[4934],{"type":50,"value":4935},">}\n",{"type":44,"tag":130,"props":4937,"children":4939},{"class":132,"line":4938},128,[4940,4945,4949],{"type":44,"tag":130,"props":4941,"children":4942},{"style":215},[4943],{"type":50,"value":4944},"      \u003C\u002F",{"type":44,"tag":130,"props":4946,"children":4947},{"style":445},[4948],{"type":50,"value":4724},{"type":44,"tag":130,"props":4950,"children":4951},{"style":215},[4952],{"type":50,"value":4729},{"type":44,"tag":130,"props":4954,"children":4956},{"class":132,"line":4955},129,[4957,4962],{"type":44,"tag":130,"props":4958,"children":4959},{"style":445},[4960],{"type":50,"value":4961},"    )",{"type":44,"tag":130,"props":4963,"children":4964},{"style":215},[4965],{"type":50,"value":263},{"type":44,"tag":130,"props":4967,"children":4969},{"class":132,"line":4968},130,[4970],{"type":44,"tag":130,"props":4971,"children":4972},{"style":215},[4973],{"type":50,"value":1079},{"type":44,"tag":130,"props":4975,"children":4977},{"class":132,"line":4976},131,[4978],{"type":44,"tag":130,"props":4979,"children":4980},{"emptyLinePlaceholder":316},[4981],{"type":50,"value":319},{"type":44,"tag":130,"props":4983,"children":4985},{"class":132,"line":4984},132,[4986,4990],{"type":44,"tag":130,"props":4987,"children":4988},{"style":209},[4989],{"type":50,"value":1088},{"type":44,"tag":130,"props":4991,"children":4992},{"style":445},[4993],{"type":50,"value":4710},{"type":44,"tag":130,"props":4995,"children":4997},{"class":132,"line":4996},133,[4998,5003,5007],{"type":44,"tag":130,"props":4999,"children":5000},{"style":215},[5001],{"type":50,"value":5002},"    \u003C",{"type":44,"tag":130,"props":5004,"children":5005},{"style":445},[5006],{"type":50,"value":4724},{"type":44,"tag":130,"props":5008,"children":5009},{"style":215},[5010],{"type":50,"value":4729},{"type":44,"tag":130,"props":5012,"children":5014},{"class":132,"line":5013},134,[5015,5019,5023,5027,5032,5036,5041,5045,5049,5053,5057],{"type":44,"tag":130,"props":5016,"children":5017},{"style":215},[5018],{"type":50,"value":4719},{"type":44,"tag":130,"props":5020,"children":5021},{"style":445},[5022],{"type":50,"value":60},{"type":44,"tag":130,"props":5024,"children":5025},{"style":215},[5026],{"type":50,"value":359},{"type":44,"tag":130,"props":5028,"children":5029},{"style":221},[5030],{"type":50,"value":5031},"Account: ",{"type":44,"tag":130,"props":5033,"children":5034},{"style":215},[5035],{"type":50,"value":649},{"type":44,"tag":130,"props":5037,"children":5038},{"style":221},[5039],{"type":50,"value":5040},"accounts[",{"type":44,"tag":130,"props":5042,"children":5043},{"style":3010},[5044],{"type":50,"value":3807},{"type":44,"tag":130,"props":5046,"children":5047},{"style":221},[5048],{"type":50,"value":1515},{"type":44,"tag":130,"props":5050,"children":5051},{"style":215},[5052],{"type":50,"value":4926},{"type":44,"tag":130,"props":5054,"children":5055},{"style":445},[5056],{"type":50,"value":60},{"type":44,"tag":130,"props":5058,"children":5059},{"style":215},[5060],{"type":50,"value":4729},{"type":44,"tag":130,"props":5062,"children":5064},{"class":132,"line":5063},135,[5065,5069,5073,5077,5082,5086,5090,5094,5098],{"type":44,"tag":130,"props":5066,"children":5067},{"style":215},[5068],{"type":50,"value":4719},{"type":44,"tag":130,"props":5070,"children":5071},{"style":445},[5072],{"type":50,"value":60},{"type":44,"tag":130,"props":5074,"children":5075},{"style":215},[5076],{"type":50,"value":359},{"type":44,"tag":130,"props":5078,"children":5079},{"style":221},[5080],{"type":50,"value":5081},"Chain ID: ",{"type":44,"tag":130,"props":5083,"children":5084},{"style":215},[5085],{"type":50,"value":649},{"type":44,"tag":130,"props":5087,"children":5088},{"style":221},[5089],{"type":50,"value":1566},{"type":44,"tag":130,"props":5091,"children":5092},{"style":215},[5093],{"type":50,"value":4926},{"type":44,"tag":130,"props":5095,"children":5096},{"style":445},[5097],{"type":50,"value":60},{"type":44,"tag":130,"props":5099,"children":5100},{"style":215},[5101],{"type":50,"value":4729},{"type":44,"tag":130,"props":5103,"children":5105},{"class":132,"line":5104},136,[5106,5110,5114,5118,5123,5127,5132,5137,5141,5146,5150,5154,5159,5164,5168],{"type":44,"tag":130,"props":5107,"children":5108},{"style":215},[5109],{"type":50,"value":4719},{"type":44,"tag":130,"props":5111,"children":5112},{"style":445},[5113],{"type":50,"value":60},{"type":44,"tag":130,"props":5115,"children":5116},{"style":215},[5117],{"type":50,"value":359},{"type":44,"tag":130,"props":5119,"children":5120},{"style":221},[5121],{"type":50,"value":5122},"Balance: ",{"type":44,"tag":130,"props":5124,"children":5125},{"style":215},[5126],{"type":50,"value":649},{"type":44,"tag":130,"props":5128,"children":5129},{"style":221},[5130],{"type":50,"value":5131},"balance ",{"type":44,"tag":130,"props":5133,"children":5134},{"style":215},[5135],{"type":50,"value":5136},"||",{"type":44,"tag":130,"props":5138,"children":5139},{"style":215},[5140],{"type":50,"value":249},{"type":44,"tag":130,"props":5142,"children":5143},{"style":143},[5144],{"type":50,"value":5145},"—",{"type":44,"tag":130,"props":5147,"children":5148},{"style":215},[5149],{"type":50,"value":258},{"type":44,"tag":130,"props":5151,"children":5152},{"style":215},[5153],{"type":50,"value":746},{"type":44,"tag":130,"props":5155,"children":5156},{"style":221},[5157],{"type":50,"value":5158}," ETH",{"type":44,"tag":130,"props":5160,"children":5161},{"style":215},[5162],{"type":50,"value":5163},"\u003C\u002F",{"type":44,"tag":130,"props":5165,"children":5166},{"style":445},[5167],{"type":50,"value":60},{"type":44,"tag":130,"props":5169,"children":5170},{"style":215},[5171],{"type":50,"value":4729},{"type":44,"tag":130,"props":5173,"children":5175},{"class":132,"line":5174},137,[5176,5180,5184,5188,5192,5197,5202,5207,5211,5215],{"type":44,"tag":130,"props":5177,"children":5178},{"style":215},[5179],{"type":50,"value":4719},{"type":44,"tag":130,"props":5181,"children":5182},{"style":445},[5183],{"type":50,"value":4743},{"type":44,"tag":130,"props":5185,"children":5186},{"style":326},[5187],{"type":50,"value":4748},{"type":44,"tag":130,"props":5189,"children":5190},{"style":215},[5191],{"type":50,"value":4753},{"type":44,"tag":130,"props":5193,"children":5194},{"style":221},[5195],{"type":50,"value":5196},"fetchBalance",{"type":44,"tag":130,"props":5198,"children":5199},{"style":215},[5200],{"type":50,"value":5201},"}>",{"type":44,"tag":130,"props":5203,"children":5204},{"style":221},[5205],{"type":50,"value":5206},"Refresh Balance",{"type":44,"tag":130,"props":5208,"children":5209},{"style":215},[5210],{"type":50,"value":5163},{"type":44,"tag":130,"props":5212,"children":5213},{"style":445},[5214],{"type":50,"value":4743},{"type":44,"tag":130,"props":5216,"children":5217},{"style":215},[5218],{"type":50,"value":4729},{"type":44,"tag":130,"props":5220,"children":5222},{"class":132,"line":5221},138,[5223,5227,5231,5235,5239,5244,5248,5253,5257,5261],{"type":44,"tag":130,"props":5224,"children":5225},{"style":215},[5226],{"type":50,"value":4719},{"type":44,"tag":130,"props":5228,"children":5229},{"style":445},[5230],{"type":50,"value":4743},{"type":44,"tag":130,"props":5232,"children":5233},{"style":326},[5234],{"type":50,"value":4748},{"type":44,"tag":130,"props":5236,"children":5237},{"style":215},[5238],{"type":50,"value":4753},{"type":44,"tag":130,"props":5240,"children":5241},{"style":221},[5242],{"type":50,"value":5243},"handleSwitchToPolygon",{"type":44,"tag":130,"props":5245,"children":5246},{"style":215},[5247],{"type":50,"value":5201},{"type":44,"tag":130,"props":5249,"children":5250},{"style":221},[5251],{"type":50,"value":5252},"Switch to Polygon",{"type":44,"tag":130,"props":5254,"children":5255},{"style":215},[5256],{"type":50,"value":5163},{"type":44,"tag":130,"props":5258,"children":5259},{"style":445},[5260],{"type":50,"value":4743},{"type":44,"tag":130,"props":5262,"children":5263},{"style":215},[5264],{"type":50,"value":4729},{"type":44,"tag":130,"props":5266,"children":5268},{"class":132,"line":5267},139,[5269,5273,5277,5281,5285,5290,5294,5299,5303,5307],{"type":44,"tag":130,"props":5270,"children":5271},{"style":215},[5272],{"type":50,"value":4719},{"type":44,"tag":130,"props":5274,"children":5275},{"style":445},[5276],{"type":50,"value":4743},{"type":44,"tag":130,"props":5278,"children":5279},{"style":326},[5280],{"type":50,"value":4748},{"type":44,"tag":130,"props":5282,"children":5283},{"style":215},[5284],{"type":50,"value":4753},{"type":44,"tag":130,"props":5286,"children":5287},{"style":221},[5288],{"type":50,"value":5289},"handleDisconnect",{"type":44,"tag":130,"props":5291,"children":5292},{"style":215},[5293],{"type":50,"value":5201},{"type":44,"tag":130,"props":5295,"children":5296},{"style":221},[5297],{"type":50,"value":5298},"Disconnect",{"type":44,"tag":130,"props":5300,"children":5301},{"style":215},[5302],{"type":50,"value":5163},{"type":44,"tag":130,"props":5304,"children":5305},{"style":445},[5306],{"type":50,"value":4743},{"type":44,"tag":130,"props":5308,"children":5309},{"style":215},[5310],{"type":50,"value":4729},{"type":44,"tag":130,"props":5312,"children":5314},{"class":132,"line":5313},140,[5315,5320,5324,5328,5332,5336,5340,5344,5348,5352,5356,5360,5364,5368,5372,5376,5380],{"type":44,"tag":130,"props":5316,"children":5317},{"style":215},[5318],{"type":50,"value":5319},"      {",{"type":44,"tag":130,"props":5321,"children":5322},{"style":221},[5323],{"type":50,"value":4866},{"type":44,"tag":130,"props":5325,"children":5326},{"style":215},[5327],{"type":50,"value":4871},{"type":44,"tag":130,"props":5329,"children":5330},{"style":215},[5331],{"type":50,"value":4876},{"type":44,"tag":130,"props":5333,"children":5334},{"style":445},[5335],{"type":50,"value":60},{"type":44,"tag":130,"props":5337,"children":5338},{"style":326},[5339],{"type":50,"value":4885},{"type":44,"tag":130,"props":5341,"children":5342},{"style":215},[5343],{"type":50,"value":4890},{"type":44,"tag":130,"props":5345,"children":5346},{"style":445},[5347],{"type":50,"value":4895},{"type":44,"tag":130,"props":5349,"children":5350},{"style":215},[5351],{"type":50,"value":339},{"type":44,"tag":130,"props":5353,"children":5354},{"style":215},[5355],{"type":50,"value":249},{"type":44,"tag":130,"props":5357,"children":5358},{"style":143},[5359],{"type":50,"value":4908},{"type":44,"tag":130,"props":5361,"children":5362},{"style":215},[5363],{"type":50,"value":258},{"type":44,"tag":130,"props":5365,"children":5366},{"style":215},[5367],{"type":50,"value":4917},{"type":44,"tag":130,"props":5369,"children":5370},{"style":221},[5371],{"type":50,"value":1761},{"type":44,"tag":130,"props":5373,"children":5374},{"style":215},[5375],{"type":50,"value":4926},{"type":44,"tag":130,"props":5377,"children":5378},{"style":445},[5379],{"type":50,"value":60},{"type":44,"tag":130,"props":5381,"children":5382},{"style":215},[5383],{"type":50,"value":4935},{"type":44,"tag":130,"props":5385,"children":5387},{"class":132,"line":5386},141,[5388,5393,5397],{"type":44,"tag":130,"props":5389,"children":5390},{"style":215},[5391],{"type":50,"value":5392},"    \u003C\u002F",{"type":44,"tag":130,"props":5394,"children":5395},{"style":445},[5396],{"type":50,"value":4724},{"type":44,"tag":130,"props":5398,"children":5399},{"style":215},[5400],{"type":50,"value":4729},{"type":44,"tag":130,"props":5402,"children":5404},{"class":132,"line":5403},142,[5405,5410],{"type":44,"tag":130,"props":5406,"children":5407},{"style":445},[5408],{"type":50,"value":5409},"  )",{"type":44,"tag":130,"props":5411,"children":5412},{"style":215},[5413],{"type":50,"value":263},{"type":44,"tag":130,"props":5415,"children":5417},{"class":132,"line":5416},143,[5418],{"type":44,"tag":130,"props":5419,"children":5420},{"style":215},[5421],{"type":50,"value":1105},{"type":44,"tag":112,"props":5423,"children":5425},{"id":5424},"step-4-use-providerrequest-for-rpc-calls",[5426],{"type":50,"value":5427},"Step 4: Use provider.request for RPC calls",{"type":44,"tag":60,"props":5429,"children":5430},{},[5431],{"type":50,"value":5432},"Once connected, use the EIP-1193 provider for any Ethereum JSON-RPC method:",{"type":44,"tag":119,"props":5434,"children":5436},{"className":188,"code":5435,"language":190,"meta":124,"style":124},"const provider = client.getProvider();\n\n\u002F\u002F Get current block number\nconst blockNumber = await provider.request({ method: 'eth_blockNumber' });\n\n\u002F\u002F Get chain ID\nconst chainId = await provider.request({ method: 'eth_chainId' });\n\n\u002F\u002F Get accounts\nconst accounts = await provider.request({ method: 'eth_accounts' });\n\n\u002F\u002F Get balance\nconst balance = await provider.request({\n  method: 'eth_getBalance',\n  params: [accounts[0], 'latest'],\n});\n\n\u002F\u002F Get transaction count (nonce)\nconst nonce = await provider.request({\n  method: 'eth_getTransactionCount',\n  params: [accounts[0], 'latest'],\n});\n",[5437],{"type":44,"tag":76,"props":5438,"children":5439},{"__ignoreMap":124},[5440,5478,5485,5493,5567,5574,5582,5655,5662,5670,5743,5750,5758,5798,5826,5875,5890,5897,5905,5945,5973,6020],{"type":44,"tag":130,"props":5441,"children":5442},{"class":132,"line":133},[5443,5448,5453,5458,5462,5466,5470,5474],{"type":44,"tag":130,"props":5444,"children":5445},{"style":326},[5446],{"type":50,"value":5447},"const",{"type":44,"tag":130,"props":5449,"children":5450},{"style":221},[5451],{"type":50,"value":5452}," provider ",{"type":44,"tag":130,"props":5454,"children":5455},{"style":215},[5456],{"type":50,"value":5457},"=",{"type":44,"tag":130,"props":5459,"children":5460},{"style":221},[5461],{"type":50,"value":1919},{"type":44,"tag":130,"props":5463,"children":5464},{"style":215},[5465],{"type":50,"value":565},{"type":44,"tag":130,"props":5467,"children":5468},{"style":404},[5469],{"type":50,"value":2039},{"type":44,"tag":130,"props":5471,"children":5472},{"style":221},[5473],{"type":50,"value":1423},{"type":44,"tag":130,"props":5475,"children":5476},{"style":215},[5477],{"type":50,"value":263},{"type":44,"tag":130,"props":5479,"children":5480},{"class":132,"line":28},[5481],{"type":44,"tag":130,"props":5482,"children":5483},{"emptyLinePlaceholder":316},[5484],{"type":50,"value":319},{"type":44,"tag":130,"props":5486,"children":5487},{"class":132,"line":266},[5488],{"type":44,"tag":130,"props":5489,"children":5490},{"style":200},[5491],{"type":50,"value":5492},"\u002F\u002F Get current block number\n",{"type":44,"tag":130,"props":5494,"children":5495},{"class":132,"line":312},[5496,5500,5505,5509,5513,5517,5521,5525,5529,5533,5538,5542,5546,5551,5555,5559,5563],{"type":44,"tag":130,"props":5497,"children":5498},{"style":326},[5499],{"type":50,"value":5447},{"type":44,"tag":130,"props":5501,"children":5502},{"style":221},[5503],{"type":50,"value":5504}," blockNumber ",{"type":44,"tag":130,"props":5506,"children":5507},{"style":215},[5508],{"type":50,"value":5457},{"type":44,"tag":130,"props":5510,"children":5511},{"style":209},[5512],{"type":50,"value":1928},{"type":44,"tag":130,"props":5514,"children":5515},{"style":221},[5516],{"type":50,"value":2022},{"type":44,"tag":130,"props":5518,"children":5519},{"style":215},[5520],{"type":50,"value":565},{"type":44,"tag":130,"props":5522,"children":5523},{"style":404},[5524],{"type":50,"value":3738},{"type":44,"tag":130,"props":5526,"children":5527},{"style":221},[5528],{"type":50,"value":490},{"type":44,"tag":130,"props":5530,"children":5531},{"style":215},[5532],{"type":50,"value":649},{"type":44,"tag":130,"props":5534,"children":5535},{"style":445},[5536],{"type":50,"value":5537}," method",{"type":44,"tag":130,"props":5539,"children":5540},{"style":215},[5541],{"type":50,"value":339},{"type":44,"tag":130,"props":5543,"children":5544},{"style":215},[5545],{"type":50,"value":249},{"type":44,"tag":130,"props":5547,"children":5548},{"style":143},[5549],{"type":50,"value":5550},"eth_blockNumber",{"type":44,"tag":130,"props":5552,"children":5553},{"style":215},[5554],{"type":50,"value":258},{"type":44,"tag":130,"props":5556,"children":5557},{"style":215},[5558],{"type":50,"value":239},{"type":44,"tag":130,"props":5560,"children":5561},{"style":221},[5562],{"type":50,"value":751},{"type":44,"tag":130,"props":5564,"children":5565},{"style":215},[5566],{"type":50,"value":263},{"type":44,"tag":130,"props":5568,"children":5569},{"class":132,"line":322},[5570],{"type":44,"tag":130,"props":5571,"children":5572},{"emptyLinePlaceholder":316},[5573],{"type":50,"value":319},{"type":44,"tag":130,"props":5575,"children":5576},{"class":132,"line":382},[5577],{"type":44,"tag":130,"props":5578,"children":5579},{"style":200},[5580],{"type":50,"value":5581},"\u002F\u002F Get chain ID\n",{"type":44,"tag":130,"props":5583,"children":5584},{"class":132,"line":390},[5585,5589,5594,5598,5602,5606,5610,5614,5618,5622,5626,5630,5634,5639,5643,5647,5651],{"type":44,"tag":130,"props":5586,"children":5587},{"style":326},[5588],{"type":50,"value":5447},{"type":44,"tag":130,"props":5590,"children":5591},{"style":221},[5592],{"type":50,"value":5593}," chainId ",{"type":44,"tag":130,"props":5595,"children":5596},{"style":215},[5597],{"type":50,"value":5457},{"type":44,"tag":130,"props":5599,"children":5600},{"style":209},[5601],{"type":50,"value":1928},{"type":44,"tag":130,"props":5603,"children":5604},{"style":221},[5605],{"type":50,"value":2022},{"type":44,"tag":130,"props":5607,"children":5608},{"style":215},[5609],{"type":50,"value":565},{"type":44,"tag":130,"props":5611,"children":5612},{"style":404},[5613],{"type":50,"value":3738},{"type":44,"tag":130,"props":5615,"children":5616},{"style":221},[5617],{"type":50,"value":490},{"type":44,"tag":130,"props":5619,"children":5620},{"style":215},[5621],{"type":50,"value":649},{"type":44,"tag":130,"props":5623,"children":5624},{"style":445},[5625],{"type":50,"value":5537},{"type":44,"tag":130,"props":5627,"children":5628},{"style":215},[5629],{"type":50,"value":339},{"type":44,"tag":130,"props":5631,"children":5632},{"style":215},[5633],{"type":50,"value":249},{"type":44,"tag":130,"props":5635,"children":5636},{"style":143},[5637],{"type":50,"value":5638},"eth_chainId",{"type":44,"tag":130,"props":5640,"children":5641},{"style":215},[5642],{"type":50,"value":258},{"type":44,"tag":130,"props":5644,"children":5645},{"style":215},[5646],{"type":50,"value":239},{"type":44,"tag":130,"props":5648,"children":5649},{"style":221},[5650],{"type":50,"value":751},{"type":44,"tag":130,"props":5652,"children":5653},{"style":215},[5654],{"type":50,"value":263},{"type":44,"tag":130,"props":5656,"children":5657},{"class":132,"line":436},[5658],{"type":44,"tag":130,"props":5659,"children":5660},{"emptyLinePlaceholder":316},[5661],{"type":50,"value":319},{"type":44,"tag":130,"props":5663,"children":5664},{"class":132,"line":471},[5665],{"type":44,"tag":130,"props":5666,"children":5667},{"style":200},[5668],{"type":50,"value":5669},"\u002F\u002F Get accounts\n",{"type":44,"tag":130,"props":5671,"children":5672},{"class":132,"line":497},[5673,5677,5682,5686,5690,5694,5698,5702,5706,5710,5714,5718,5722,5727,5731,5735,5739],{"type":44,"tag":130,"props":5674,"children":5675},{"style":326},[5676],{"type":50,"value":5447},{"type":44,"tag":130,"props":5678,"children":5679},{"style":221},[5680],{"type":50,"value":5681}," accounts ",{"type":44,"tag":130,"props":5683,"children":5684},{"style":215},[5685],{"type":50,"value":5457},{"type":44,"tag":130,"props":5687,"children":5688},{"style":209},[5689],{"type":50,"value":1928},{"type":44,"tag":130,"props":5691,"children":5692},{"style":221},[5693],{"type":50,"value":2022},{"type":44,"tag":130,"props":5695,"children":5696},{"style":215},[5697],{"type":50,"value":565},{"type":44,"tag":130,"props":5699,"children":5700},{"style":404},[5701],{"type":50,"value":3738},{"type":44,"tag":130,"props":5703,"children":5704},{"style":221},[5705],{"type":50,"value":490},{"type":44,"tag":130,"props":5707,"children":5708},{"style":215},[5709],{"type":50,"value":649},{"type":44,"tag":130,"props":5711,"children":5712},{"style":445},[5713],{"type":50,"value":5537},{"type":44,"tag":130,"props":5715,"children":5716},{"style":215},[5717],{"type":50,"value":339},{"type":44,"tag":130,"props":5719,"children":5720},{"style":215},[5721],{"type":50,"value":249},{"type":44,"tag":130,"props":5723,"children":5724},{"style":143},[5725],{"type":50,"value":5726},"eth_accounts",{"type":44,"tag":130,"props":5728,"children":5729},{"style":215},[5730],{"type":50,"value":258},{"type":44,"tag":130,"props":5732,"children":5733},{"style":215},[5734],{"type":50,"value":239},{"type":44,"tag":130,"props":5736,"children":5737},{"style":221},[5738],{"type":50,"value":751},{"type":44,"tag":130,"props":5740,"children":5741},{"style":215},[5742],{"type":50,"value":263},{"type":44,"tag":130,"props":5744,"children":5745},{"class":132,"line":514},[5746],{"type":44,"tag":130,"props":5747,"children":5748},{"emptyLinePlaceholder":316},[5749],{"type":50,"value":319},{"type":44,"tag":130,"props":5751,"children":5752},{"class":132,"line":545},[5753],{"type":44,"tag":130,"props":5754,"children":5755},{"style":200},[5756],{"type":50,"value":5757},"\u002F\u002F Get balance\n",{"type":44,"tag":130,"props":5759,"children":5760},{"class":132,"line":586},[5761,5765,5770,5774,5778,5782,5786,5790,5794],{"type":44,"tag":130,"props":5762,"children":5763},{"style":326},[5764],{"type":50,"value":5447},{"type":44,"tag":130,"props":5766,"children":5767},{"style":221},[5768],{"type":50,"value":5769}," balance ",{"type":44,"tag":130,"props":5771,"children":5772},{"style":215},[5773],{"type":50,"value":5457},{"type":44,"tag":130,"props":5775,"children":5776},{"style":209},[5777],{"type":50,"value":1928},{"type":44,"tag":130,"props":5779,"children":5780},{"style":221},[5781],{"type":50,"value":2022},{"type":44,"tag":130,"props":5783,"children":5784},{"style":215},[5785],{"type":50,"value":565},{"type":44,"tag":130,"props":5787,"children":5788},{"style":404},[5789],{"type":50,"value":3738},{"type":44,"tag":130,"props":5791,"children":5792},{"style":221},[5793],{"type":50,"value":490},{"type":44,"tag":130,"props":5795,"children":5796},{"style":215},[5797],{"type":50,"value":468},{"type":44,"tag":130,"props":5799,"children":5800},{"class":132,"line":595},[5801,5806,5810,5814,5818,5822],{"type":44,"tag":130,"props":5802,"children":5803},{"style":445},[5804],{"type":50,"value":5805},"  method",{"type":44,"tag":130,"props":5807,"children":5808},{"style":215},[5809],{"type":50,"value":339},{"type":44,"tag":130,"props":5811,"children":5812},{"style":215},[5813],{"type":50,"value":249},{"type":44,"tag":130,"props":5815,"children":5816},{"style":143},[5817],{"type":50,"value":3768},{"type":44,"tag":130,"props":5819,"children":5820},{"style":215},[5821],{"type":50,"value":258},{"type":44,"tag":130,"props":5823,"children":5824},{"style":215},[5825],{"type":50,"value":542},{"type":44,"tag":130,"props":5827,"children":5828},{"class":132,"line":612},[5829,5834,5838,5843,5847,5851,5855,5859,5863,5867,5871],{"type":44,"tag":130,"props":5830,"children":5831},{"style":445},[5832],{"type":50,"value":5833},"  params",{"type":44,"tag":130,"props":5835,"children":5836},{"style":215},[5837],{"type":50,"value":339},{"type":44,"tag":130,"props":5839,"children":5840},{"style":221},[5841],{"type":50,"value":5842}," [accounts[",{"type":44,"tag":130,"props":5844,"children":5845},{"style":3010},[5846],{"type":50,"value":3807},{"type":44,"tag":130,"props":5848,"children":5849},{"style":221},[5850],{"type":50,"value":1515},{"type":44,"tag":130,"props":5852,"children":5853},{"style":215},[5854],{"type":50,"value":229},{"type":44,"tag":130,"props":5856,"children":5857},{"style":215},[5858],{"type":50,"value":249},{"type":44,"tag":130,"props":5860,"children":5861},{"style":143},[5862],{"type":50,"value":3824},{"type":44,"tag":130,"props":5864,"children":5865},{"style":215},[5866],{"type":50,"value":258},{"type":44,"tag":130,"props":5868,"children":5869},{"style":221},[5870],{"type":50,"value":1515},{"type":44,"tag":130,"props":5872,"children":5873},{"style":215},[5874],{"type":50,"value":542},{"type":44,"tag":130,"props":5876,"children":5877},{"class":132,"line":629},[5878,5882,5886],{"type":44,"tag":130,"props":5879,"children":5880},{"style":215},[5881],{"type":50,"value":746},{"type":44,"tag":130,"props":5883,"children":5884},{"style":221},[5885],{"type":50,"value":751},{"type":44,"tag":130,"props":5887,"children":5888},{"style":215},[5889],{"type":50,"value":263},{"type":44,"tag":130,"props":5891,"children":5892},{"class":132,"line":758},[5893],{"type":44,"tag":130,"props":5894,"children":5895},{"emptyLinePlaceholder":316},[5896],{"type":50,"value":319},{"type":44,"tag":130,"props":5898,"children":5899},{"class":132,"line":797},[5900],{"type":44,"tag":130,"props":5901,"children":5902},{"style":200},[5903],{"type":50,"value":5904},"\u002F\u002F Get transaction count (nonce)\n",{"type":44,"tag":130,"props":5906,"children":5907},{"class":132,"line":806},[5908,5912,5917,5921,5925,5929,5933,5937,5941],{"type":44,"tag":130,"props":5909,"children":5910},{"style":326},[5911],{"type":50,"value":5447},{"type":44,"tag":130,"props":5913,"children":5914},{"style":221},[5915],{"type":50,"value":5916}," nonce ",{"type":44,"tag":130,"props":5918,"children":5919},{"style":215},[5920],{"type":50,"value":5457},{"type":44,"tag":130,"props":5922,"children":5923},{"style":209},[5924],{"type":50,"value":1928},{"type":44,"tag":130,"props":5926,"children":5927},{"style":221},[5928],{"type":50,"value":2022},{"type":44,"tag":130,"props":5930,"children":5931},{"style":215},[5932],{"type":50,"value":565},{"type":44,"tag":130,"props":5934,"children":5935},{"style":404},[5936],{"type":50,"value":3738},{"type":44,"tag":130,"props":5938,"children":5939},{"style":221},[5940],{"type":50,"value":490},{"type":44,"tag":130,"props":5942,"children":5943},{"style":215},[5944],{"type":50,"value":468},{"type":44,"tag":130,"props":5946,"children":5947},{"class":132,"line":814},[5948,5952,5956,5960,5965,5969],{"type":44,"tag":130,"props":5949,"children":5950},{"style":445},[5951],{"type":50,"value":5805},{"type":44,"tag":130,"props":5953,"children":5954},{"style":215},[5955],{"type":50,"value":339},{"type":44,"tag":130,"props":5957,"children":5958},{"style":215},[5959],{"type":50,"value":249},{"type":44,"tag":130,"props":5961,"children":5962},{"style":143},[5963],{"type":50,"value":5964},"eth_getTransactionCount",{"type":44,"tag":130,"props":5966,"children":5967},{"style":215},[5968],{"type":50,"value":258},{"type":44,"tag":130,"props":5970,"children":5971},{"style":215},[5972],{"type":50,"value":542},{"type":44,"tag":130,"props":5974,"children":5975},{"class":132,"line":831},[5976,5980,5984,5988,5992,5996,6000,6004,6008,6012,6016],{"type":44,"tag":130,"props":5977,"children":5978},{"style":445},[5979],{"type":50,"value":5833},{"type":44,"tag":130,"props":5981,"children":5982},{"style":215},[5983],{"type":50,"value":339},{"type":44,"tag":130,"props":5985,"children":5986},{"style":221},[5987],{"type":50,"value":5842},{"type":44,"tag":130,"props":5989,"children":5990},{"style":3010},[5991],{"type":50,"value":3807},{"type":44,"tag":130,"props":5993,"children":5994},{"style":221},[5995],{"type":50,"value":1515},{"type":44,"tag":130,"props":5997,"children":5998},{"style":215},[5999],{"type":50,"value":229},{"type":44,"tag":130,"props":6001,"children":6002},{"style":215},[6003],{"type":50,"value":249},{"type":44,"tag":130,"props":6005,"children":6006},{"style":143},[6007],{"type":50,"value":3824},{"type":44,"tag":130,"props":6009,"children":6010},{"style":215},[6011],{"type":50,"value":258},{"type":44,"tag":130,"props":6013,"children":6014},{"style":221},[6015],{"type":50,"value":1515},{"type":44,"tag":130,"props":6017,"children":6018},{"style":215},[6019],{"type":50,"value":542},{"type":44,"tag":130,"props":6021,"children":6022},{"class":132,"line":854},[6023,6027,6031],{"type":44,"tag":130,"props":6024,"children":6025},{"style":215},[6026],{"type":50,"value":746},{"type":44,"tag":130,"props":6028,"children":6029},{"style":221},[6030],{"type":50,"value":751},{"type":44,"tag":130,"props":6032,"children":6033},{"style":215},[6034],{"type":50,"value":263},{"type":44,"tag":112,"props":6036,"children":6038},{"id":6037},"step-5-switch-chains",[6039],{"type":50,"value":6040},"Step 5: Switch chains",{"type":44,"tag":60,"props":6042,"children":6043},{},[6044,6045,6051,6053,6059,6061,6067],{"type":50,"value":1159},{"type":44,"tag":76,"props":6046,"children":6048},{"className":6047},[],[6049],{"type":50,"value":6050},"client.switchChain",{"type":50,"value":6052}," to request a network change. The ",{"type":44,"tag":76,"props":6054,"children":6056},{"className":6055},[],[6057],{"type":50,"value":6058},"chainConfiguration",{"type":50,"value":6060}," fallback triggers ",{"type":44,"tag":76,"props":6062,"children":6064},{"className":6063},[],[6065],{"type":50,"value":6066},"wallet_addEthereumChain",{"type":50,"value":6068}," if the chain is not already in the user's wallet:",{"type":44,"tag":119,"props":6070,"children":6072},{"className":188,"code":6071,"language":190,"meta":124,"style":124},"await client.switchChain({\n  chainId: '0xaa36a7', \u002F\u002F Sepolia\n});\n\n\u002F\u002F With fallback configuration for unknown chains\nawait client.switchChain({\n  chainId: '0xa4b1', \u002F\u002F Arbitrum One\n  chainConfiguration: {\n    chainId: '0xa4b1', \u002F\u002F optional in the type, but set it to the target chain — if omitted it falls back to the currently selected chain (likely the wrong chain to add)\n    chainName: 'Arbitrum One',\n    nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },\n    rpcUrls: ['https:\u002F\u002Farb1.arbitrum.io\u002Frpc'],\n    blockExplorerUrls: ['https:\u002F\u002Farbiscan.io'],\n  },\n});\n",[6073],{"type":44,"tag":76,"props":6074,"children":6075},{"__ignoreMap":124},[6076,6104,6137,6152,6159,6167,6194,6226,6242,6275,6304,6386,6422,6459,6467],{"type":44,"tag":130,"props":6077,"children":6078},{"class":132,"line":133},[6079,6084,6088,6092,6096,6100],{"type":44,"tag":130,"props":6080,"children":6081},{"style":209},[6082],{"type":50,"value":6083},"await",{"type":44,"tag":130,"props":6085,"children":6086},{"style":221},[6087],{"type":50,"value":1919},{"type":44,"tag":130,"props":6089,"children":6090},{"style":215},[6091],{"type":50,"value":565},{"type":44,"tag":130,"props":6093,"children":6094},{"style":404},[6095],{"type":50,"value":4169},{"type":44,"tag":130,"props":6097,"children":6098},{"style":221},[6099],{"type":50,"value":490},{"type":44,"tag":130,"props":6101,"children":6102},{"style":215},[6103],{"type":50,"value":468},{"type":44,"tag":130,"props":6105,"children":6106},{"class":132,"line":28},[6107,6112,6116,6120,6124,6128,6132],{"type":44,"tag":130,"props":6108,"children":6109},{"style":445},[6110],{"type":50,"value":6111},"  chainId",{"type":44,"tag":130,"props":6113,"children":6114},{"style":215},[6115],{"type":50,"value":339},{"type":44,"tag":130,"props":6117,"children":6118},{"style":215},[6119],{"type":50,"value":249},{"type":44,"tag":130,"props":6121,"children":6122},{"style":143},[6123],{"type":50,"value":732},{"type":44,"tag":130,"props":6125,"children":6126},{"style":215},[6127],{"type":50,"value":258},{"type":44,"tag":130,"props":6129,"children":6130},{"style":215},[6131],{"type":50,"value":229},{"type":44,"tag":130,"props":6133,"children":6134},{"style":200},[6135],{"type":50,"value":6136}," \u002F\u002F Sepolia\n",{"type":44,"tag":130,"props":6138,"children":6139},{"class":132,"line":266},[6140,6144,6148],{"type":44,"tag":130,"props":6141,"children":6142},{"style":215},[6143],{"type":50,"value":746},{"type":44,"tag":130,"props":6145,"children":6146},{"style":221},[6147],{"type":50,"value":751},{"type":44,"tag":130,"props":6149,"children":6150},{"style":215},[6151],{"type":50,"value":263},{"type":44,"tag":130,"props":6153,"children":6154},{"class":132,"line":312},[6155],{"type":44,"tag":130,"props":6156,"children":6157},{"emptyLinePlaceholder":316},[6158],{"type":50,"value":319},{"type":44,"tag":130,"props":6160,"children":6161},{"class":132,"line":322},[6162],{"type":44,"tag":130,"props":6163,"children":6164},{"style":200},[6165],{"type":50,"value":6166},"\u002F\u002F With fallback configuration for unknown chains\n",{"type":44,"tag":130,"props":6168,"children":6169},{"class":132,"line":382},[6170,6174,6178,6182,6186,6190],{"type":44,"tag":130,"props":6171,"children":6172},{"style":209},[6173],{"type":50,"value":6083},{"type":44,"tag":130,"props":6175,"children":6176},{"style":221},[6177],{"type":50,"value":1919},{"type":44,"tag":130,"props":6179,"children":6180},{"style":215},[6181],{"type":50,"value":565},{"type":44,"tag":130,"props":6183,"children":6184},{"style":404},[6185],{"type":50,"value":4169},{"type":44,"tag":130,"props":6187,"children":6188},{"style":221},[6189],{"type":50,"value":490},{"type":44,"tag":130,"props":6191,"children":6192},{"style":215},[6193],{"type":50,"value":468},{"type":44,"tag":130,"props":6195,"children":6196},{"class":132,"line":390},[6197,6201,6205,6209,6213,6217,6221],{"type":44,"tag":130,"props":6198,"children":6199},{"style":445},[6200],{"type":50,"value":6111},{"type":44,"tag":130,"props":6202,"children":6203},{"style":215},[6204],{"type":50,"value":339},{"type":44,"tag":130,"props":6206,"children":6207},{"style":215},[6208],{"type":50,"value":249},{"type":44,"tag":130,"props":6210,"children":6211},{"style":143},[6212],{"type":50,"value":769},{"type":44,"tag":130,"props":6214,"children":6215},{"style":215},[6216],{"type":50,"value":258},{"type":44,"tag":130,"props":6218,"children":6219},{"style":215},[6220],{"type":50,"value":229},{"type":44,"tag":130,"props":6222,"children":6223},{"style":200},[6224],{"type":50,"value":6225}," \u002F\u002F Arbitrum One\n",{"type":44,"tag":130,"props":6227,"children":6228},{"class":132,"line":436},[6229,6234,6238],{"type":44,"tag":130,"props":6230,"children":6231},{"style":445},[6232],{"type":50,"value":6233},"  chainConfiguration",{"type":44,"tag":130,"props":6235,"children":6236},{"style":215},[6237],{"type":50,"value":339},{"type":44,"tag":130,"props":6239,"children":6240},{"style":215},[6241],{"type":50,"value":433},{"type":44,"tag":130,"props":6243,"children":6244},{"class":132,"line":471},[6245,6250,6254,6258,6262,6266,6270],{"type":44,"tag":130,"props":6246,"children":6247},{"style":445},[6248],{"type":50,"value":6249},"    chainId",{"type":44,"tag":130,"props":6251,"children":6252},{"style":215},[6253],{"type":50,"value":339},{"type":44,"tag":130,"props":6255,"children":6256},{"style":215},[6257],{"type":50,"value":249},{"type":44,"tag":130,"props":6259,"children":6260},{"style":143},[6261],{"type":50,"value":769},{"type":44,"tag":130,"props":6263,"children":6264},{"style":215},[6265],{"type":50,"value":258},{"type":44,"tag":130,"props":6267,"children":6268},{"style":215},[6269],{"type":50,"value":229},{"type":44,"tag":130,"props":6271,"children":6272},{"style":200},[6273],{"type":50,"value":6274}," \u002F\u002F optional in the type, but set it to the target chain — if omitted it falls back to the currently selected chain (likely the wrong chain to add)\n",{"type":44,"tag":130,"props":6276,"children":6277},{"class":132,"line":497},[6278,6283,6287,6291,6296,6300],{"type":44,"tag":130,"props":6279,"children":6280},{"style":445},[6281],{"type":50,"value":6282},"    chainName",{"type":44,"tag":130,"props":6284,"children":6285},{"style":215},[6286],{"type":50,"value":339},{"type":44,"tag":130,"props":6288,"children":6289},{"style":215},[6290],{"type":50,"value":249},{"type":44,"tag":130,"props":6292,"children":6293},{"style":143},[6294],{"type":50,"value":6295},"Arbitrum One",{"type":44,"tag":130,"props":6297,"children":6298},{"style":215},[6299],{"type":50,"value":258},{"type":44,"tag":130,"props":6301,"children":6302},{"style":215},[6303],{"type":50,"value":542},{"type":44,"tag":130,"props":6305,"children":6306},{"class":132,"line":514},[6307,6312,6316,6320,6324,6328,6332,6337,6341,6345,6349,6353,6357,6362,6366,6370,6374,6378,6382],{"type":44,"tag":130,"props":6308,"children":6309},{"style":445},[6310],{"type":50,"value":6311},"    nativeCurrency",{"type":44,"tag":130,"props":6313,"children":6314},{"style":215},[6315],{"type":50,"value":339},{"type":44,"tag":130,"props":6317,"children":6318},{"style":215},[6319],{"type":50,"value":218},{"type":44,"tag":130,"props":6321,"children":6322},{"style":445},[6323],{"type":50,"value":4304},{"type":44,"tag":130,"props":6325,"children":6326},{"style":215},[6327],{"type":50,"value":339},{"type":44,"tag":130,"props":6329,"children":6330},{"style":215},[6331],{"type":50,"value":249},{"type":44,"tag":130,"props":6333,"children":6334},{"style":143},[6335],{"type":50,"value":6336},"Ether",{"type":44,"tag":130,"props":6338,"children":6339},{"style":215},[6340],{"type":50,"value":258},{"type":44,"tag":130,"props":6342,"children":6343},{"style":215},[6344],{"type":50,"value":229},{"type":44,"tag":130,"props":6346,"children":6347},{"style":445},[6348],{"type":50,"value":4330},{"type":44,"tag":130,"props":6350,"children":6351},{"style":215},[6352],{"type":50,"value":339},{"type":44,"tag":130,"props":6354,"children":6355},{"style":215},[6356],{"type":50,"value":249},{"type":44,"tag":130,"props":6358,"children":6359},{"style":143},[6360],{"type":50,"value":6361},"ETH",{"type":44,"tag":130,"props":6363,"children":6364},{"style":215},[6365],{"type":50,"value":258},{"type":44,"tag":130,"props":6367,"children":6368},{"style":215},[6369],{"type":50,"value":229},{"type":44,"tag":130,"props":6371,"children":6372},{"style":445},[6373],{"type":50,"value":4355},{"type":44,"tag":130,"props":6375,"children":6376},{"style":215},[6377],{"type":50,"value":339},{"type":44,"tag":130,"props":6379,"children":6380},{"style":3010},[6381],{"type":50,"value":4364},{"type":44,"tag":130,"props":6383,"children":6384},{"style":215},[6385],{"type":50,"value":4369},{"type":44,"tag":130,"props":6387,"children":6388},{"class":132,"line":545},[6389,6394,6398,6402,6406,6410,6414,6418],{"type":44,"tag":130,"props":6390,"children":6391},{"style":445},[6392],{"type":50,"value":6393},"    rpcUrls",{"type":44,"tag":130,"props":6395,"children":6396},{"style":215},[6397],{"type":50,"value":339},{"type":44,"tag":130,"props":6399,"children":6400},{"style":221},[6401],{"type":50,"value":689},{"type":44,"tag":130,"props":6403,"children":6404},{"style":215},[6405],{"type":50,"value":258},{"type":44,"tag":130,"props":6407,"children":6408},{"style":143},[6409],{"type":50,"value":786},{"type":44,"tag":130,"props":6411,"children":6412},{"style":215},[6413],{"type":50,"value":258},{"type":44,"tag":130,"props":6415,"children":6416},{"style":221},[6417],{"type":50,"value":1515},{"type":44,"tag":130,"props":6419,"children":6420},{"style":215},[6421],{"type":50,"value":542},{"type":44,"tag":130,"props":6423,"children":6424},{"class":132,"line":586},[6425,6430,6434,6438,6442,6447,6451,6455],{"type":44,"tag":130,"props":6426,"children":6427},{"style":445},[6428],{"type":50,"value":6429},"    blockExplorerUrls",{"type":44,"tag":130,"props":6431,"children":6432},{"style":215},[6433],{"type":50,"value":339},{"type":44,"tag":130,"props":6435,"children":6436},{"style":221},[6437],{"type":50,"value":689},{"type":44,"tag":130,"props":6439,"children":6440},{"style":215},[6441],{"type":50,"value":258},{"type":44,"tag":130,"props":6443,"children":6444},{"style":143},[6445],{"type":50,"value":6446},"https:\u002F\u002Farbiscan.io",{"type":44,"tag":130,"props":6448,"children":6449},{"style":215},[6450],{"type":50,"value":258},{"type":44,"tag":130,"props":6452,"children":6453},{"style":221},[6454],{"type":50,"value":1515},{"type":44,"tag":130,"props":6456,"children":6457},{"style":215},[6458],{"type":50,"value":542},{"type":44,"tag":130,"props":6460,"children":6461},{"class":132,"line":595},[6462],{"type":44,"tag":130,"props":6463,"children":6464},{"style":215},[6465],{"type":50,"value":6466},"  },\n",{"type":44,"tag":130,"props":6468,"children":6469},{"class":132,"line":612},[6470,6474,6478],{"type":44,"tag":130,"props":6471,"children":6472},{"style":215},[6473],{"type":50,"value":746},{"type":44,"tag":130,"props":6475,"children":6476},{"style":221},[6477],{"type":50,"value":751},{"type":44,"tag":130,"props":6479,"children":6480},{"style":215},[6481],{"type":50,"value":263},{"type":44,"tag":112,"props":6483,"children":6485},{"id":6484},"step-6-handle-errors",[6486],{"type":50,"value":6487},"Step 6: Handle errors",{"type":44,"tag":60,"props":6489,"children":6490},{},[6491],{"type":50,"value":6492},"Always catch and handle known error codes:",{"type":44,"tag":119,"props":6494,"children":6496},{"className":188,"code":6495,"language":190,"meta":124,"style":124},"try {\n  await client.connect({ chainIds: ['0x1'] });\n} catch (err: any) {\n  switch (err.code) {\n    case 4001:\n      \u002F\u002F User rejected the request — show retry UI\n      break;\n    case -32002:\n      \u002F\u002F Request already pending — tell user to check MetaMask\n      break;\n    default:\n      console.error('Unexpected error:', err);\n  }\n}\n",[6497],{"type":44,"tag":76,"props":6498,"children":6499},{"__ignoreMap":124},[6500,6512,6580,6615,6647,6664,6672,6684,6703,6711,6722,6734,6784,6791],{"type":44,"tag":130,"props":6501,"children":6502},{"class":132,"line":133},[6503,6508],{"type":44,"tag":130,"props":6504,"children":6505},{"style":209},[6506],{"type":50,"value":6507},"try",{"type":44,"tag":130,"props":6509,"children":6510},{"style":215},[6511],{"type":50,"value":433},{"type":44,"tag":130,"props":6513,"children":6514},{"class":132,"line":28},[6515,6520,6524,6528,6532,6536,6540,6544,6548,6552,6556,6560,6564,6568,6572,6576],{"type":44,"tag":130,"props":6516,"children":6517},{"style":209},[6518],{"type":50,"value":6519},"  await",{"type":44,"tag":130,"props":6521,"children":6522},{"style":221},[6523],{"type":50,"value":1919},{"type":44,"tag":130,"props":6525,"children":6526},{"style":215},[6527],{"type":50,"value":565},{"type":44,"tag":130,"props":6529,"children":6530},{"style":404},[6531],{"type":50,"value":2806},{"type":44,"tag":130,"props":6533,"children":6534},{"style":445},[6535],{"type":50,"value":490},{"type":44,"tag":130,"props":6537,"children":6538},{"style":215},[6539],{"type":50,"value":649},{"type":44,"tag":130,"props":6541,"children":6542},{"style":445},[6543],{"type":50,"value":680},{"type":44,"tag":130,"props":6545,"children":6546},{"style":215},[6547],{"type":50,"value":339},{"type":44,"tag":130,"props":6549,"children":6550},{"style":445},[6551],{"type":50,"value":689},{"type":44,"tag":130,"props":6553,"children":6554},{"style":215},[6555],{"type":50,"value":258},{"type":44,"tag":130,"props":6557,"children":6558},{"style":143},[6559],{"type":50,"value":698},{"type":44,"tag":130,"props":6561,"children":6562},{"style":215},[6563],{"type":50,"value":258},{"type":44,"tag":130,"props":6565,"children":6566},{"style":445},[6567],{"type":50,"value":741},{"type":44,"tag":130,"props":6569,"children":6570},{"style":215},[6571],{"type":50,"value":746},{"type":44,"tag":130,"props":6573,"children":6574},{"style":445},[6575],{"type":50,"value":751},{"type":44,"tag":130,"props":6577,"children":6578},{"style":215},[6579],{"type":50,"value":263},{"type":44,"tag":130,"props":6581,"children":6582},{"class":132,"line":266},[6583,6587,6591,6595,6599,6603,6607,6611],{"type":44,"tag":130,"props":6584,"children":6585},{"style":215},[6586],{"type":50,"value":746},{"type":44,"tag":130,"props":6588,"children":6589},{"style":209},[6590],{"type":50,"value":2952},{"type":44,"tag":130,"props":6592,"children":6593},{"style":215},[6594],{"type":50,"value":448},{"type":44,"tag":130,"props":6596,"children":6597},{"style":939},[6598],{"type":50,"value":2961},{"type":44,"tag":130,"props":6600,"children":6601},{"style":215},[6602],{"type":50,"value":339},{"type":44,"tag":130,"props":6604,"children":6605},{"style":137},[6606],{"type":50,"value":2970},{"type":44,"tag":130,"props":6608,"children":6609},{"style":215},[6610],{"type":50,"value":751},{"type":44,"tag":130,"props":6612,"children":6613},{"style":215},[6614],{"type":50,"value":433},{"type":44,"tag":130,"props":6616,"children":6617},{"class":132,"line":312},[6618,6623,6627,6631,6635,6639,6643],{"type":44,"tag":130,"props":6619,"children":6620},{"style":209},[6621],{"type":50,"value":6622},"  switch",{"type":44,"tag":130,"props":6624,"children":6625},{"style":445},[6626],{"type":50,"value":448},{"type":44,"tag":130,"props":6628,"children":6629},{"style":221},[6630],{"type":50,"value":2961},{"type":44,"tag":130,"props":6632,"children":6633},{"style":215},[6634],{"type":50,"value":565},{"type":44,"tag":130,"props":6636,"children":6637},{"style":221},[6638],{"type":50,"value":76},{"type":44,"tag":130,"props":6640,"children":6641},{"style":445},[6642],{"type":50,"value":463},{"type":44,"tag":130,"props":6644,"children":6645},{"style":215},[6646],{"type":50,"value":468},{"type":44,"tag":130,"props":6648,"children":6649},{"class":132,"line":322},[6650,6655,6659],{"type":44,"tag":130,"props":6651,"children":6652},{"style":209},[6653],{"type":50,"value":6654},"    case",{"type":44,"tag":130,"props":6656,"children":6657},{"style":3010},[6658],{"type":50,"value":3013},{"type":44,"tag":130,"props":6660,"children":6661},{"style":215},[6662],{"type":50,"value":6663},":\n",{"type":44,"tag":130,"props":6665,"children":6666},{"class":132,"line":382},[6667],{"type":44,"tag":130,"props":6668,"children":6669},{"style":200},[6670],{"type":50,"value":6671},"      \u002F\u002F User rejected the request — show retry UI\n",{"type":44,"tag":130,"props":6673,"children":6674},{"class":132,"line":390},[6675,6680],{"type":44,"tag":130,"props":6676,"children":6677},{"style":209},[6678],{"type":50,"value":6679},"      break",{"type":44,"tag":130,"props":6681,"children":6682},{"style":215},[6683],{"type":50,"value":263},{"type":44,"tag":130,"props":6685,"children":6686},{"class":132,"line":436},[6687,6691,6695,6699],{"type":44,"tag":130,"props":6688,"children":6689},{"style":209},[6690],{"type":50,"value":6654},{"type":44,"tag":130,"props":6692,"children":6693},{"style":215},[6694],{"type":50,"value":3110},{"type":44,"tag":130,"props":6696,"children":6697},{"style":3010},[6698],{"type":50,"value":3115},{"type":44,"tag":130,"props":6700,"children":6701},{"style":215},[6702],{"type":50,"value":6663},{"type":44,"tag":130,"props":6704,"children":6705},{"class":132,"line":471},[6706],{"type":44,"tag":130,"props":6707,"children":6708},{"style":200},[6709],{"type":50,"value":6710},"      \u002F\u002F Request already pending — tell user to check MetaMask\n",{"type":44,"tag":130,"props":6712,"children":6713},{"class":132,"line":497},[6714,6718],{"type":44,"tag":130,"props":6715,"children":6716},{"style":209},[6717],{"type":50,"value":6679},{"type":44,"tag":130,"props":6719,"children":6720},{"style":215},[6721],{"type":50,"value":263},{"type":44,"tag":130,"props":6723,"children":6724},{"class":132,"line":514},[6725,6730],{"type":44,"tag":130,"props":6726,"children":6727},{"style":209},[6728],{"type":50,"value":6729},"    default",{"type":44,"tag":130,"props":6731,"children":6732},{"style":215},[6733],{"type":50,"value":6663},{"type":44,"tag":130,"props":6735,"children":6736},{"class":132,"line":545},[6737,6742,6746,6750,6754,6758,6763,6767,6771,6776,6780],{"type":44,"tag":130,"props":6738,"children":6739},{"style":221},[6740],{"type":50,"value":6741},"      console",{"type":44,"tag":130,"props":6743,"children":6744},{"style":215},[6745],{"type":50,"value":565},{"type":44,"tag":130,"props":6747,"children":6748},{"style":404},[6749],{"type":50,"value":1761},{"type":44,"tag":130,"props":6751,"children":6752},{"style":445},[6753],{"type":50,"value":490},{"type":44,"tag":130,"props":6755,"children":6756},{"style":215},[6757],{"type":50,"value":258},{"type":44,"tag":130,"props":6759,"children":6760},{"style":143},[6761],{"type":50,"value":6762},"Unexpected error:",{"type":44,"tag":130,"props":6764,"children":6765},{"style":215},[6766],{"type":50,"value":258},{"type":44,"tag":130,"props":6768,"children":6769},{"style":215},[6770],{"type":50,"value":229},{"type":44,"tag":130,"props":6772,"children":6773},{"style":221},[6774],{"type":50,"value":6775}," err",{"type":44,"tag":130,"props":6777,"children":6778},{"style":445},[6779],{"type":50,"value":751},{"type":44,"tag":130,"props":6781,"children":6782},{"style":215},[6783],{"type":50,"value":263},{"type":44,"tag":130,"props":6785,"children":6786},{"class":132,"line":586},[6787],{"type":44,"tag":130,"props":6788,"children":6789},{"style":215},[6790],{"type":50,"value":1079},{"type":44,"tag":130,"props":6792,"children":6793},{"class":132,"line":595},[6794],{"type":44,"tag":130,"props":6795,"children":6796},{"style":215},[6797],{"type":50,"value":1105},{"type":44,"tag":53,"props":6799,"children":6801},{"id":6800},"important-notes",[6802],{"type":50,"value":6803},"Important Notes",{"type":44,"tag":66,"props":6805,"children":6806},{},[6807,6833,6867,6897,6980,7018,7028],{"type":44,"tag":70,"props":6808,"children":6809},{},[6810,6823,6825,6831],{"type":44,"tag":6811,"props":6812,"children":6813},"strong",{},[6814,6816,6821],{"type":50,"value":6815},"Call ",{"type":44,"tag":76,"props":6817,"children":6819},{"className":6818},[],[6820],{"type":50,"value":97},{"type":50,"value":6822}," once at app startup",{"type":50,"value":6824}," — store the promise and reuse it; never call it per render. Each call returns a ",{"type":44,"tag":6826,"props":6827,"children":6828},"em",{},[6829],{"type":50,"value":6830},"new",{"type":50,"value":6832}," EVM client wrapper, but they all share one underlying multichain core (the core is the singleton, and its options are merged across calls).",{"type":44,"tag":70,"props":6834,"children":6835},{},[6836,6841,6843,6849,6851,6857,6859,6865],{"type":44,"tag":6811,"props":6837,"children":6838},{},[6839],{"type":50,"value":6840},"Chain IDs are always hex strings",{"type":50,"value":6842}," — use ",{"type":44,"tag":76,"props":6844,"children":6846},{"className":6845},[],[6847],{"type":50,"value":6848},"'0x1'",{"type":50,"value":6850}," (Ethereum), ",{"type":44,"tag":76,"props":6852,"children":6854},{"className":6853},[],[6855],{"type":50,"value":6856},"'0x89'",{"type":50,"value":6858}," (Polygon), ",{"type":44,"tag":76,"props":6860,"children":6862},{"className":6861},[],[6863],{"type":50,"value":6864},"'0xaa36a7'",{"type":50,"value":6866}," (Sepolia). Never use decimal numbers.",{"type":44,"tag":70,"props":6868,"children":6869},{},[6870,6880,6882,6888,6890,6895],{"type":44,"tag":6811,"props":6871,"children":6872},{},[6873,6878],{"type":44,"tag":76,"props":6874,"children":6876},{"className":6875},[],[6877],{"type":50,"value":698},{"type":50,"value":6879}," (Ethereum mainnet) is always auto-included",{"type":50,"value":6881}," in ",{"type":44,"tag":76,"props":6883,"children":6885},{"className":6884},[],[6886],{"type":50,"value":6887},"connect()",{"type":50,"value":6889}," regardless of the ",{"type":44,"tag":76,"props":6891,"children":6893},{"className":6892},[],[6894],{"type":50,"value":1130},{"type":50,"value":6896}," you pass.",{"type":44,"tag":70,"props":6898,"children":6899},{},[6900,6905,6907,6913,6915,6921,6923,6928,6930,6935,6936,6942,6944,6949,6951,6957,6959,6964,6966,6971,6973,6978],{"type":44,"tag":6811,"props":6901,"children":6902},{},[6903],{"type":50,"value":6904},"The provider exists before connection",{"type":50,"value":6906}," — ",{"type":44,"tag":76,"props":6908,"children":6910},{"className":6909},[],[6911],{"type":50,"value":6912},"client.getProvider()",{"type":50,"value":6914}," never returns ",{"type":44,"tag":76,"props":6916,"children":6918},{"className":6917},[],[6919],{"type":50,"value":6920},"undefined",{"type":50,"value":6922},". But node-routed reads (",{"type":44,"tag":76,"props":6924,"children":6926},{"className":6925},[],[6927],{"type":50,"value":5550},{"type":50,"value":6929},", ",{"type":44,"tag":76,"props":6931,"children":6933},{"className":6932},[],[6934],{"type":50,"value":3768},{"type":50,"value":6929},{"type":44,"tag":76,"props":6937,"children":6939},{"className":6938},[],[6940],{"type":50,"value":6941},"eth_call",{"type":50,"value":6943},", …) require a ",{"type":44,"tag":6811,"props":6945,"children":6946},{},[6947],{"type":50,"value":6948},"selected chain",{"type":50,"value":6950}," and throw ",{"type":44,"tag":76,"props":6952,"children":6954},{"className":6953},[],[6955],{"type":50,"value":6956},"No chain ID selected",{"type":50,"value":6958}," until one is set (after ",{"type":44,"tag":76,"props":6960,"children":6962},{"className":6961},[],[6963],{"type":50,"value":6887},{"type":50,"value":6965}," or a restored session). Only the intercepted methods ",{"type":44,"tag":76,"props":6967,"children":6969},{"className":6968},[],[6970],{"type":50,"value":5638},{"type":50,"value":6972}," and ",{"type":44,"tag":76,"props":6974,"children":6976},{"className":6975},[],[6977],{"type":50,"value":5726},{"type":50,"value":6979}," (served from cached state) are safe before connecting.",{"type":44,"tag":70,"props":6981,"children":6982},{},[6983,6988,6990,6995,6996,7001,7003,7008,7010,7016],{"type":44,"tag":6811,"props":6984,"children":6985},{},[6986],{"type":50,"value":6987},"Register event listeners early",{"type":50,"value":6989}," — set up ",{"type":44,"tag":76,"props":6991,"children":6993},{"className":6992},[],[6994],{"type":50,"value":2084},{"type":50,"value":6929},{"type":44,"tag":76,"props":6997,"children":6999},{"className":6998},[],[7000],{"type":50,"value":2217},{"type":50,"value":7002},", and ",{"type":44,"tag":76,"props":7004,"children":7006},{"className":7005},[],[7007],{"type":50,"value":2344},{"type":50,"value":7009}," listeners in ",{"type":44,"tag":76,"props":7011,"children":7013},{"className":7012},[],[7014],{"type":50,"value":7015},"useEffect",{"type":50,"value":7017}," before the user connects.",{"type":44,"tag":70,"props":7019,"children":7020},{},[7021,7026],{"type":44,"tag":6811,"props":7022,"children":7023},{},[7024],{"type":50,"value":7025},"Error code 4001 is not an application error",{"type":50,"value":7027}," — it means the user deliberately rejected. Handle it gracefully with a retry option.",{"type":44,"tag":70,"props":7029,"children":7030},{},[7031,7036,7038,7043],{"type":44,"tag":6811,"props":7032,"children":7033},{},[7034],{"type":50,"value":7035},"Error code -32002 means a request is pending",{"type":50,"value":7037}," — do not fire another ",{"type":44,"tag":76,"props":7039,"children":7041},{"className":7040},[],[7042],{"type":50,"value":6887},{"type":50,"value":7044}," call. Wait for the user to act in MetaMask.",{"type":44,"tag":7046,"props":7047,"children":7048},"style",{},[7049],{"type":50,"value":7050},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":7052,"total":922},[7053,7070,7084,7096,7105,7115,7131,7147,7162,7173,7183,7193],{"slug":7054,"name":7054,"fn":7055,"description":7056,"org":7057,"tags":7058,"stars":2775,"repoUrl":7068,"updatedAt":7069},"smart-accounts-kit","build dApps with MetaMask Smart Accounts","Build dApps with MetaMask Smart Accounts Kit — ERC-4337 smart accounts, delegations, and Advanced Permissions (ERC-7715)",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7059,7060,7063,7064,7067],{"name":20,"slug":21,"type":15},{"name":7061,"slug":7062,"type":15},"Auth","auth",{"name":23,"slug":24,"type":15},{"name":7065,"slug":7066,"type":15},"Permissions","permissions",{"name":17,"slug":18,"type":15},"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fsmart-accounts-kit","2026-07-13T06:11:32.8327",{"slug":7071,"name":7071,"fn":7072,"description":7073,"org":7074,"tags":7075,"stars":2775,"repoUrl":7068,"updatedAt":7083},"x402-payments","build x402 payment flows","Build x402 payment flows using MetaMask Smart Accounts Kit, machine to machine payments over HTTP with ERC-7710 delegations and ERC-7715 Advanced Permissions",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7076,7077,7080,7081],{"name":20,"slug":21,"type":15},{"name":7078,"slug":7079,"type":15},"Payments","payments",{"name":17,"slug":18,"type":15},{"name":7082,"slug":7082,"type":15},"x402","2026-07-13T06:11:30.877136",{"slug":7085,"name":7085,"fn":7086,"description":7087,"org":7088,"tags":7089,"stars":471,"repoUrl":7094,"updatedAt":7095},"discovery","discover and use services","Use the discovery tools to find and use services through a service matcher. Do not rely on prior knowledge of services, providers, or APIs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7090,7091],{"name":20,"slug":21,"type":15},{"name":7092,"slug":7093,"type":15},"Search","search","https:\u002F\u002Fgithub.com\u002FMetaMask\u002Focap-kernel","2026-07-13T06:12:37.024095",{"slug":8,"name":8,"fn":7097,"description":7098,"org":7099,"tags":7100,"stars":471,"repoUrl":7094,"updatedAt":7104},"interact with MetaMask wallet capabilities","Use the MetaMask tools to request and interact with wallet capabilities from the MetaMask capability vendor.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7101,7102,7103],{"name":20,"slug":21,"type":15},{"name":23,"slug":24,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:12:33.955806",{"slug":7106,"name":7106,"fn":7107,"description":7108,"org":7109,"tags":7110,"stars":471,"repoUrl":7094,"updatedAt":7114},"wallet","manage wallet balances and transactions","Use the wallet tools for all balance, send, and sign operations. Supports both ETH and ERC-20 tokens. The away wallet operates autonomously after setup — the home device does not need to be online.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7111,7112,7113],{"name":23,"slug":24,"type":15},{"name":7078,"slug":7079,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:12:35.380244",{"slug":7116,"name":7116,"fn":7117,"description":7118,"org":7119,"tags":7120,"stars":390,"repoUrl":7129,"updatedAt":7130},"metamask-connect","integrate MetaMask into dApps","Build dApps that integrate MetaMask via the MetaMask Connect SDK — EVM (@metamask\u002Fconnect-evm), Solana (@metamask\u002Fconnect-solana), and multichain (@metamask\u002Fconnect-multichain), plus the wagmi metaMask() connector. Covers client setup across browser\u002FReact\u002FReact Native, connecting, signing messages, sending transactions, multichain invokeMethod across CAIP-2 scopes, migrating from @metamask\u002Fsdk, and troubleshooting connection\u002Fpolyfill issues.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7121,7122,7123,7126,7128],{"name":20,"slug":21,"type":15},{"name":23,"slug":24,"type":15},{"name":7124,"slug":7125,"type":15},"Solana","solana",{"name":7127,"slug":7127,"type":15},"wagmi",{"name":17,"slug":18,"type":15},"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fconnect-monorepo","2026-07-13T06:11:34.445665",{"slug":7132,"name":7132,"fn":7133,"description":7134,"org":7135,"tags":7136,"stars":322,"repoUrl":7145,"updatedAt":7146},"metamask-agent-wallet","manage blockchain wallets and transactions","Use when the user asks anything about blockchain wallets, transactions, signing, token transfers, supported chains, wallet balances, perpetual futures trading, prediction markets, token swaps, cross-chain bridges, market data, token discovery, decoding EVM calldata, DeFi earn\u002Fyield vaults, or authentication via the MetaMask Agentic CLI; also when an HTTP request returns 402 Payment Required (x402) or the agent needs to pay for a paywalled API, endpoint, file, or resource over HTTP. Single entry point for all mm CLI operations.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7137,7140,7143,7144],{"name":7138,"slug":7139,"type":15},"Blockchain","blockchain",{"name":7141,"slug":7142,"type":15},"DeFi","defi",{"name":23,"slug":24,"type":15},{"name":17,"slug":18,"type":15},"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fagent-skills","2026-08-01T05:45:07.976522",{"slug":7148,"name":7148,"fn":7149,"description":7150,"org":7151,"tags":7152,"stars":28,"repoUrl":29,"updatedAt":7161},"migrate-from-sdk","migrate MetaMask SDK to connect-evm and connect-solana","Migrate from @metamask\u002Fsdk to @metamask\u002Fconnect-evm, @metamask\u002Fconnect-multichain, and @metamask\u002Fconnect-solana with step-by-step package, API, and configuration changes",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7153,7154,7157,7160],{"name":23,"slug":24,"type":15},{"name":7155,"slug":7156,"type":15},"Migration","migration",{"name":7158,"slug":7159,"type":15},"SDK","sdk",{"name":17,"slug":18,"type":15},"2026-07-13T06:11:46.427441",{"slug":7163,"name":7163,"fn":7164,"description":7165,"org":7166,"tags":7167,"stars":28,"repoUrl":29,"updatedAt":7172},"migrate-wagmi-metamask-connector","migrate wagmi apps to MetaMask connector","Migrate a wagmi app from @metamask\u002Fsdk to the new @metamask\u002Fconnect-evm connector (wagmi PR",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7168,7169,7170,7171],{"name":23,"slug":24,"type":15},{"name":7155,"slug":7156,"type":15},{"name":7127,"slug":7127,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:12:23.110706",{"slug":7174,"name":7174,"fn":7175,"description":7176,"org":7177,"tags":7178,"stars":28,"repoUrl":29,"updatedAt":7182},"send-evm-transaction","send EVM transactions with MetaMask","Send ETH and contract transactions with MetaMask using eth_sendTransaction via the EIP-1193 provider, gas estimation, receipt polling, and the connectWith shortcut",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7179,7180,7181],{"name":20,"slug":21,"type":15},{"name":23,"slug":24,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:11:56.866623",{"slug":7184,"name":7184,"fn":7185,"description":7186,"org":7187,"tags":7188,"stars":28,"repoUrl":29,"updatedAt":7192},"send-solana-transaction","send Solana transactions via MetaMask","Build and send a Solana transaction using MetaMask Connect. Covers both the React wallet-adapter approach (sendTransaction) and the vanilla browser approach (signAndSendTransaction wallet-standard feature).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7189,7190,7191],{"name":7078,"slug":7079,"type":15},{"name":7124,"slug":7125,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:12:03.942378",{"slug":7194,"name":7194,"fn":7195,"description":7196,"org":7197,"tags":7198,"stars":28,"repoUrl":29,"updatedAt":7207},"setup-evm-browser-app","scaffold EVM browser applications with MetaMask","Scaffold a vanilla JS\u002FTS browser app with MetaMask EVM integration using createEVMClient, EIP-1193 provider event listeners, RPC methods, and chain switching with chainConfiguration fallback",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7199,7200,7201,7204,7206],{"name":23,"slug":24,"type":15},{"name":26,"slug":27,"type":15},{"name":7202,"slug":7203,"type":15},"JavaScript","javascript",{"name":7205,"slug":190,"type":15},"TypeScript",{"name":17,"slug":18,"type":15},"2026-07-13T06:12:01.334051",{"items":7209,"total":797},[7210,7217,7224,7230,7236,7244,7252],{"slug":7148,"name":7148,"fn":7149,"description":7150,"org":7211,"tags":7212,"stars":28,"repoUrl":29,"updatedAt":7161},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7213,7214,7215,7216],{"name":23,"slug":24,"type":15},{"name":7155,"slug":7156,"type":15},{"name":7158,"slug":7159,"type":15},{"name":17,"slug":18,"type":15},{"slug":7163,"name":7163,"fn":7164,"description":7165,"org":7218,"tags":7219,"stars":28,"repoUrl":29,"updatedAt":7172},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7220,7221,7222,7223],{"name":23,"slug":24,"type":15},{"name":7155,"slug":7156,"type":15},{"name":7127,"slug":7127,"type":15},{"name":17,"slug":18,"type":15},{"slug":7174,"name":7174,"fn":7175,"description":7176,"org":7225,"tags":7226,"stars":28,"repoUrl":29,"updatedAt":7182},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7227,7228,7229],{"name":20,"slug":21,"type":15},{"name":23,"slug":24,"type":15},{"name":17,"slug":18,"type":15},{"slug":7184,"name":7184,"fn":7185,"description":7186,"org":7231,"tags":7232,"stars":28,"repoUrl":29,"updatedAt":7192},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7233,7234,7235],{"name":7078,"slug":7079,"type":15},{"name":7124,"slug":7125,"type":15},{"name":17,"slug":18,"type":15},{"slug":7194,"name":7194,"fn":7195,"description":7196,"org":7237,"tags":7238,"stars":28,"repoUrl":29,"updatedAt":7207},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7239,7240,7241,7242,7243],{"name":23,"slug":24,"type":15},{"name":26,"slug":27,"type":15},{"name":7202,"slug":7203,"type":15},{"name":7205,"slug":190,"type":15},{"name":17,"slug":18,"type":15},{"slug":4,"name":4,"fn":5,"description":6,"org":7245,"tags":7246,"stars":28,"repoUrl":29,"updatedAt":30},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7247,7248,7249,7250,7251],{"name":20,"slug":21,"type":15},{"name":23,"slug":24,"type":15},{"name":26,"slug":27,"type":15},{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},{"slug":7253,"name":7253,"fn":7254,"description":7255,"org":7256,"tags":7257,"stars":28,"repoUrl":29,"updatedAt":7266},"setup-evm-react-native-app","scaffold React Native apps with MetaMask","Scaffold a React Native app with MetaMask EVM integration including required polyfills, metro.config.js shims, import order constraints, mobile deeplinks, and a full component example",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7258,7259,7262,7265],{"name":23,"slug":24,"type":15},{"name":7260,"slug":7261,"type":15},"Mobile","mobile",{"name":7263,"slug":7264,"type":15},"React Native","react-native",{"name":17,"slug":18,"type":15},"2026-07-13T06:12:11.764689"]