[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-metamask-setup-evm-browser-app":3,"mdc--1rgp18-key":38,"related-org-metamask-setup-evm-browser-app":7271,"related-repo-metamask-setup-evm-browser-app":7423},{"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-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},"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},"TypeScript","typescript","tag",{"name":17,"slug":18,"type":15},"JavaScript","javascript",{"name":20,"slug":21,"type":15},"Web3","web3",{"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:12:01.334051",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-browser-app","---\nname: setup-evm-browser-app\ndescription: 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\n---\n# Setup EVM Browser App with MetaMask Connect\n\n## When to use\n\nUse this skill when:\n- Building a vanilla JavaScript or TypeScript browser app (no React) with MetaMask\n- Integrating `createEVMClient` into a plain HTML page or a bundler-based project\n- Wiring up EIP-1193 provider event listeners for account and chain changes\n- Performing RPC calls through `provider.request` in a non-framework context\n\n## Workflow\n\n### Step 1: Install dependencies\n\n```bash\nnpm install @metamask\u002Fconnect-evm\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\nOr include via CDN\u002Fscript tag if not using a bundler.\n\n### Step 2: Create the EVM client\n\n```typescript\nimport { createEVMClient, getInfuraRpcUrls } from '@metamask\u002Fconnect-evm';\n\nconst client = await createEVMClient({\n  dapp: {\n    name: 'My Browser DApp',\n    url: window.location.href,\n  },\n  api: {\n    supportedNetworks: {\n      ...getInfuraRpcUrls({ infuraApiKey: 'YOUR_INFURA_KEY', chainIds: ['0x1', '0x89', '0xa4b1', '0xaa36a7'] }),\n    },\n  },\n  ui: {\n    headless: false,\n    preferExtension: true,\n    showInstallModal: true,\n  },\n  eventHandlers: {\n    \u002F\u002F Keys are camelCase — `display_uri`\u002F`wallet_sessionChanged` are NOT valid here\n    displayUri: (uri: string) => {\n      console.log('QR URI:', uri);\n      \u002F\u002F Render QR code for mobile connection\n    },\n    connect: ({ accounts, chainId }) => {\n      \u002F\u002F Fires on connection and on automatic session restore\n      updateUI(accounts, chainId);\n    },\n  },\n  debug: false,\n});\n```\n\nThere is no `wallet_sessionChanged` handler on the EVM client — session restores surface through the `connect` handler \u002F provider event and `accountsChanged`. (`wallet_sessionChanged` is a multichain-client event.)\n\n### Step 3: Register provider event listeners\n\nSet up EIP-1193 event listeners immediately after client creation:\n\n```typescript\nconst provider = client.getProvider();\n\nprovider.on('accountsChanged', (accounts: string[]) => {\n  if (accounts.length === 0) {\n    \u002F\u002F User disconnected their wallet\n    updateUI([], null);\n    return;\n  }\n  updateUI(accounts, null);\n  fetchBalance(accounts[0]);\n});\n\nprovider.on('chainChanged', (chainId: string) => {\n  \u002F\u002F chainId is a hex string, e.g. '0x1'\n  document.getElementById('chain')!.textContent = `Chain: ${chainId}`;\n  \u002F\u002F Refresh balances since the chain changed\n  const currentAccount = document.getElementById('account')?.dataset.address;\n  if (currentAccount) fetchBalance(currentAccount);\n});\n\nprovider.on('disconnect', () => {\n  \u002F\u002F The connect-evm provider emits `disconnect` with no payload\n  console.log('Disconnected');\n  updateUI([], null);\n});\n```\n\n### Step 4: Connect and update UI\n\n```typescript\nconst connectBtn = document.getElementById('connect-btn')!;\nconst disconnectBtn = document.getElementById('disconnect-btn')!;\n\nconnectBtn.addEventListener('click', async () => {\n  try {\n    connectBtn.textContent = 'Connecting...';\n    connectBtn.setAttribute('disabled', 'true');\n\n    const { accounts, chainId } = await client.connect({\n      chainIds: ['0x1'],\n    });\n\n    updateUI(accounts, chainId);\n  } catch (err: any) {\n    if (err.code === 4001) {\n      showError('Connection rejected. Click Connect to try again.');\n      return;\n    }\n    if (err.code === -32002) {\n      showError('A connection request is already pending. Check MetaMask.');\n      return;\n    }\n    showError(err.message ?? 'Connection failed');\n  } finally {\n    connectBtn.textContent = 'Connect MetaMask';\n    connectBtn.removeAttribute('disabled');\n  }\n});\n\ndisconnectBtn.addEventListener('click', async () => {\n  await client.disconnect();\n  updateUI([], null);\n});\n\nfunction updateUI(accounts: string[], chainId: string | null) {\n  const accountEl = document.getElementById('account')!;\n  const chainEl = document.getElementById('chain')!;\n  const connectedSection = document.getElementById('connected')!;\n\n  if (accounts.length === 0) {\n    connectedSection.style.display = 'none';\n    connectBtn.style.display = 'block';\n    return;\n  }\n\n  accountEl.textContent = `Account: ${accounts[0]}`;\n  accountEl.dataset.address = accounts[0];\n  if (chainId) chainEl.textContent = `Chain: ${chainId}`;\n  connectedSection.style.display = 'block';\n  connectBtn.style.display = 'none';\n}\n\nfunction showError(message: string) {\n  const errorEl = document.getElementById('error')!;\n  errorEl.textContent = message;\n  setTimeout(() => { errorEl.textContent = ''; }, 5000);\n}\n```\n\n### Step 5: Make RPC calls via provider.request\n\n```typescript\nconst provider = client.getProvider();\n\n\u002F\u002F Cached\u002Fintercepted reads — safe before connect (no chain selection needed)\nconst chainId = await provider.request({ method: 'eth_chainId' });\nconst accounts = await provider.request({ method: 'eth_accounts' });\n\n\u002F\u002F Node-routed reads need a SELECTED chain — they throw `No chain ID selected`\n\u002F\u002F until after connect() (or a restored session). Call these post-connect.\nconst blockNumber = await provider.request({ method: 'eth_blockNumber' });\n\nasync function fetchBalance(address: string) {\n  const wei = await provider.request({\n    method: 'eth_getBalance',\n    params: [address, 'latest'],\n  }) as string;\n\n  const ethBalance = parseInt(wei, 16) \u002F 1e18;\n  document.getElementById('balance')!.textContent =\n    `Balance: ${ethBalance.toFixed(6)} ETH`;\n}\n\n\u002F\u002F Get gas price\nconst gasPrice = await provider.request({ method: 'eth_gasPrice' });\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\u002F\u002F Call a contract (read-only)\nconst result = await provider.request({\n  method: 'eth_call',\n  params: [\n    {\n      to: '0xContractAddress',\n      data: '0xEncodedFunctionSelector',\n    },\n    'latest',\n  ],\n});\n```\n\n### Step 6: Switch chains with chainConfiguration fallback\n\n```typescript\nasync function switchChain(targetChainId: string) {\n  try {\n    await client.switchChain({ chainId: targetChainId });\n  } catch (err: any) {\n    if (err.code === 4001) {\n      showError('Chain switch rejected by user.');\n    }\n  }\n}\n\n\u002F\u002F Switch to a chain with fallback configuration\n\u002F\u002F chainConfiguration triggers wallet_addEthereumChain if the chain\n\u002F\u002F is not already configured in the user's wallet\nasync function switchToArbitrum() {\n  try {\n    await client.switchChain({\n      chainId: '0xa4b1',\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  } catch (err: any) {\n    if (err.code === 4001) {\n      showError('User rejected the chain addition or switch.');\n    }\n  }\n}\n\n\u002F\u002F Switch to well-known chains\ndocument.getElementById('switch-mainnet')!.addEventListener('click',\n  () => switchChain('0x1'));\ndocument.getElementById('switch-polygon')!.addEventListener('click',\n  () => switchChain('0x89'));\ndocument.getElementById('switch-sepolia')!.addEventListener('click',\n  () => switchChain('0xaa36a7'));\ndocument.getElementById('switch-arbitrum')!.addEventListener('click',\n  () => switchToArbitrum());\n```\n\n### Step 7: Complete HTML structure\n\n```html\n\u003C!DOCTYPE html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n  \u003Cmeta charset=\"UTF-8\" \u002F>\n  \u003Ctitle>MetaMask Connect\u003C\u002Ftitle>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Ch1>MetaMask Connect Demo\u003C\u002Fh1>\n\n  \u003Cbutton id=\"connect-btn\">Connect MetaMask\u003C\u002Fbutton>\n  \u003Cp id=\"error\" style=\"color: red;\">\u003C\u002Fp>\n\n  \u003Cdiv id=\"connected\" style=\"display: none;\">\n    \u003Cp id=\"account\">\u003C\u002Fp>\n    \u003Cp id=\"chain\">\u003C\u002Fp>\n    \u003Cp id=\"balance\">\u003C\u002Fp>\n    \u003Cbutton id=\"switch-mainnet\">Mainnet (0x1)\u003C\u002Fbutton>\n    \u003Cbutton id=\"switch-polygon\">Polygon (0x89)\u003C\u002Fbutton>\n    \u003Cbutton id=\"switch-sepolia\">Sepolia (0xaa36a7)\u003C\u002Fbutton>\n    \u003Cbutton id=\"switch-arbitrum\">Arbitrum (0xa4b1)\u003C\u002Fbutton>\n    \u003Cbutton id=\"disconnect-btn\">Disconnect\u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n\n  \u003Cscript type=\"module\" src=\".\u002Fsrc\u002Fmain.ts\">\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n## Important Notes\n\n- **Call `createEVMClient` once at app startup** — each call returns a *new* EVM client wrapper, but they all share one underlying multichain core (the core is the singleton whose options merge across calls). Don't recreate the client repeatedly.\n- **Chain IDs are always hex strings** — use `'0x1'`, `'0x89'`, `'0xaa36a7'`. Never pass decimal numbers or decimal strings.\n- **`0x1` (Ethereum mainnet) is auto-included** in every `connect()` call regardless of the `chainIds` you specify.\n- **The provider exists before connection** — `client.getProvider()` always returns a valid EIP-1193 provider. 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 `eth_chainId` and `eth_accounts` (intercepted, served from cache) are safe before connecting.\n- **Convenience getters** — use `client.getChainId()` (returns `Hex | undefined`) and `client.getAccount()` (returns `Address | undefined`) instead of `provider.request({ method: 'eth_chainId' })` \u002F `eth_accounts` for cached state.\n- **Connection status** — `client.status` returns `'connecting'` | `'connected'` | `'disconnected'`. (The 5-value `'loaded'`\u002F`'pending'` union belongs to the multichain core, not the EVM client.) Use this for UI state instead of tracking manually.\n- **Register event listeners before connecting** — set up `accountsChanged`, `chainChanged`, and `disconnect` handlers immediately after getting the provider.\n- **`chainConfiguration` is a fallback, not a forced add** — it is only used if the wallet doesn't already have the chain configured. If the chain exists, only `wallet_switchEthereumChain` fires.\n- **Page reloads restore automatically** — the EVM client syncs any persisted session before `createEVMClient` resolves and re-emits `connect`\u002F`accountsChanged` on the provider. The EVM client has no `.on()` method and no `wallet_sessionChanged` handler — use the provider events (or `eventHandlers.connect`) to restore UI state.\n- **Error code 4001** means the user deliberately rejected — show a retry option, not a crash screen.\n- **Error code -32002** means a request is already pending — do not send another `connect()`. Wait for the user to respond in MetaMask.\n",{"data":39,"body":40},{"name":4,"description":6},{"type":41,"children":42},"root",[43,52,59,65,107,113,120,154,173,178,184,973,1009,1015,1020,1774,1780,3615,3621,4747,4753,5918,5924,6850,6856,7266],{"type":44,"tag":45,"props":46,"children":48},"element","h1",{"id":47},"setup-evm-browser-app-with-metamask-connect",[49],{"type":50,"value":51},"text","Setup EVM Browser 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,75,89,94],{"type":44,"tag":70,"props":71,"children":72},"li",{},[73],{"type":50,"value":74},"Building a vanilla JavaScript or TypeScript browser app (no React) with MetaMask",{"type":44,"tag":70,"props":76,"children":77},{},[78,80,87],{"type":50,"value":79},"Integrating ",{"type":44,"tag":81,"props":82,"children":84},"code",{"className":83},[],[85],{"type":50,"value":86},"createEVMClient",{"type":50,"value":88}," into a plain HTML page or a bundler-based project",{"type":44,"tag":70,"props":90,"children":91},{},[92],{"type":50,"value":93},"Wiring up EIP-1193 provider event listeners for account and chain changes",{"type":44,"tag":70,"props":95,"children":96},{},[97,99,105],{"type":50,"value":98},"Performing RPC calls through ",{"type":44,"tag":81,"props":100,"children":102},{"className":101},[],[103],{"type":50,"value":104},"provider.request",{"type":50,"value":106}," in a non-framework context",{"type":44,"tag":53,"props":108,"children":110},{"id":109},"workflow",[111],{"type":50,"value":112},"Workflow",{"type":44,"tag":114,"props":115,"children":117},"h3",{"id":116},"step-1-install-dependencies",[118],{"type":50,"value":119},"Step 1: Install dependencies",{"type":44,"tag":121,"props":122,"children":127},"pre",{"className":123,"code":124,"language":125,"meta":126,"style":126},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install @metamask\u002Fconnect-evm\n","bash","",[128],{"type":44,"tag":81,"props":129,"children":130},{"__ignoreMap":126},[131],{"type":44,"tag":132,"props":133,"children":136},"span",{"class":134,"line":135},"line",1,[137,143,149],{"type":44,"tag":132,"props":138,"children":140},{"style":139},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[141],{"type":50,"value":142},"npm",{"type":44,"tag":132,"props":144,"children":146},{"style":145},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[147],{"type":50,"value":148}," install",{"type":44,"tag":132,"props":150,"children":151},{"style":145},[152],{"type":50,"value":153}," @metamask\u002Fconnect-evm\n",{"type":44,"tag":60,"props":155,"children":156},{},[157,163,165,171],{"type":44,"tag":81,"props":158,"children":160},{"className":159},[],[161],{"type":50,"value":162},"@metamask\u002Fconnect-multichain",{"type":50,"value":164}," is a regular dependency of ",{"type":44,"tag":81,"props":166,"children":168},{"className":167},[],[169],{"type":50,"value":170},"@metamask\u002Fconnect-evm",{"type":50,"value":172}," 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":60,"props":174,"children":175},{},[176],{"type":50,"value":177},"Or include via CDN\u002Fscript tag if not using a bundler.",{"type":44,"tag":114,"props":179,"children":181},{"id":180},"step-2-create-the-evm-client",[182],{"type":50,"value":183},"Step 2: Create the EVM client",{"type":44,"tag":121,"props":185,"children":188},{"className":186,"code":187,"language":14,"meta":126,"style":126},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createEVMClient, getInfuraRpcUrls } from '@metamask\u002Fconnect-evm';\n\nconst client = await createEVMClient({\n  dapp: {\n    name: 'My Browser DApp',\n    url: window.location.href,\n  },\n  api: {\n    supportedNetworks: {\n      ...getInfuraRpcUrls({ infuraApiKey: 'YOUR_INFURA_KEY', chainIds: ['0x1', '0x89', '0xa4b1', '0xaa36a7'] }),\n    },\n  },\n  ui: {\n    headless: false,\n    preferExtension: true,\n    showInstallModal: true,\n  },\n  eventHandlers: {\n    \u002F\u002F Keys are camelCase — `display_uri`\u002F`wallet_sessionChanged` are NOT valid here\n    displayUri: (uri: string) => {\n      console.log('QR URI:', uri);\n      \u002F\u002F Render QR code for mobile connection\n    },\n    connect: ({ accounts, chainId }) => {\n      \u002F\u002F Fires on connection and on automatic session restore\n      updateUI(accounts, chainId);\n    },\n  },\n  debug: false,\n});\n",[189],{"type":44,"tag":81,"props":190,"children":191},{"__ignoreMap":126},[192,252,261,301,321,352,393,402,419,436,582,591,599,616,639,661,682,690,707,717,763,815,824,832,877,886,920,928,936,957],{"type":44,"tag":132,"props":193,"children":194},{"class":134,"line":135},[195,201,207,213,218,223,228,233,238,242,247],{"type":44,"tag":132,"props":196,"children":198},{"style":197},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[199],{"type":50,"value":200},"import",{"type":44,"tag":132,"props":202,"children":204},{"style":203},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[205],{"type":50,"value":206}," {",{"type":44,"tag":132,"props":208,"children":210},{"style":209},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[211],{"type":50,"value":212}," createEVMClient",{"type":44,"tag":132,"props":214,"children":215},{"style":203},[216],{"type":50,"value":217},",",{"type":44,"tag":132,"props":219,"children":220},{"style":209},[221],{"type":50,"value":222}," getInfuraRpcUrls",{"type":44,"tag":132,"props":224,"children":225},{"style":203},[226],{"type":50,"value":227}," }",{"type":44,"tag":132,"props":229,"children":230},{"style":197},[231],{"type":50,"value":232}," from",{"type":44,"tag":132,"props":234,"children":235},{"style":203},[236],{"type":50,"value":237}," '",{"type":44,"tag":132,"props":239,"children":240},{"style":145},[241],{"type":50,"value":170},{"type":44,"tag":132,"props":243,"children":244},{"style":203},[245],{"type":50,"value":246},"'",{"type":44,"tag":132,"props":248,"children":249},{"style":203},[250],{"type":50,"value":251},";\n",{"type":44,"tag":132,"props":253,"children":254},{"class":134,"line":28},[255],{"type":44,"tag":132,"props":256,"children":258},{"emptyLinePlaceholder":257},true,[259],{"type":50,"value":260},"\n",{"type":44,"tag":132,"props":262,"children":264},{"class":134,"line":263},3,[265,271,276,281,286,291,296],{"type":44,"tag":132,"props":266,"children":268},{"style":267},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[269],{"type":50,"value":270},"const",{"type":44,"tag":132,"props":272,"children":273},{"style":209},[274],{"type":50,"value":275}," client ",{"type":44,"tag":132,"props":277,"children":278},{"style":203},[279],{"type":50,"value":280},"=",{"type":44,"tag":132,"props":282,"children":283},{"style":197},[284],{"type":50,"value":285}," await",{"type":44,"tag":132,"props":287,"children":289},{"style":288},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[290],{"type":50,"value":212},{"type":44,"tag":132,"props":292,"children":293},{"style":209},[294],{"type":50,"value":295},"(",{"type":44,"tag":132,"props":297,"children":298},{"style":203},[299],{"type":50,"value":300},"{\n",{"type":44,"tag":132,"props":302,"children":304},{"class":134,"line":303},4,[305,311,316],{"type":44,"tag":132,"props":306,"children":308},{"style":307},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[309],{"type":50,"value":310},"  dapp",{"type":44,"tag":132,"props":312,"children":313},{"style":203},[314],{"type":50,"value":315},":",{"type":44,"tag":132,"props":317,"children":318},{"style":203},[319],{"type":50,"value":320}," {\n",{"type":44,"tag":132,"props":322,"children":324},{"class":134,"line":323},5,[325,330,334,338,343,347],{"type":44,"tag":132,"props":326,"children":327},{"style":307},[328],{"type":50,"value":329},"    name",{"type":44,"tag":132,"props":331,"children":332},{"style":203},[333],{"type":50,"value":315},{"type":44,"tag":132,"props":335,"children":336},{"style":203},[337],{"type":50,"value":237},{"type":44,"tag":132,"props":339,"children":340},{"style":145},[341],{"type":50,"value":342},"My Browser DApp",{"type":44,"tag":132,"props":344,"children":345},{"style":203},[346],{"type":50,"value":246},{"type":44,"tag":132,"props":348,"children":349},{"style":203},[350],{"type":50,"value":351},",\n",{"type":44,"tag":132,"props":353,"children":355},{"class":134,"line":354},6,[356,361,365,370,375,380,384,389],{"type":44,"tag":132,"props":357,"children":358},{"style":307},[359],{"type":50,"value":360},"    url",{"type":44,"tag":132,"props":362,"children":363},{"style":203},[364],{"type":50,"value":315},{"type":44,"tag":132,"props":366,"children":367},{"style":209},[368],{"type":50,"value":369}," window",{"type":44,"tag":132,"props":371,"children":372},{"style":203},[373],{"type":50,"value":374},".",{"type":44,"tag":132,"props":376,"children":377},{"style":209},[378],{"type":50,"value":379},"location",{"type":44,"tag":132,"props":381,"children":382},{"style":203},[383],{"type":50,"value":374},{"type":44,"tag":132,"props":385,"children":386},{"style":209},[387],{"type":50,"value":388},"href",{"type":44,"tag":132,"props":390,"children":391},{"style":203},[392],{"type":50,"value":351},{"type":44,"tag":132,"props":394,"children":396},{"class":134,"line":395},7,[397],{"type":44,"tag":132,"props":398,"children":399},{"style":203},[400],{"type":50,"value":401},"  },\n",{"type":44,"tag":132,"props":403,"children":405},{"class":134,"line":404},8,[406,411,415],{"type":44,"tag":132,"props":407,"children":408},{"style":307},[409],{"type":50,"value":410},"  api",{"type":44,"tag":132,"props":412,"children":413},{"style":203},[414],{"type":50,"value":315},{"type":44,"tag":132,"props":416,"children":417},{"style":203},[418],{"type":50,"value":320},{"type":44,"tag":132,"props":420,"children":422},{"class":134,"line":421},9,[423,428,432],{"type":44,"tag":132,"props":424,"children":425},{"style":307},[426],{"type":50,"value":427},"    supportedNetworks",{"type":44,"tag":132,"props":429,"children":430},{"style":203},[431],{"type":50,"value":315},{"type":44,"tag":132,"props":433,"children":434},{"style":203},[435],{"type":50,"value":320},{"type":44,"tag":132,"props":437,"children":439},{"class":134,"line":438},10,[440,445,450,454,459,464,468,472,477,481,485,490,494,499,503,508,512,516,520,525,529,533,537,542,546,550,554,559,563,568,573,578],{"type":44,"tag":132,"props":441,"children":442},{"style":203},[443],{"type":50,"value":444},"      ...",{"type":44,"tag":132,"props":446,"children":447},{"style":288},[448],{"type":50,"value":449},"getInfuraRpcUrls",{"type":44,"tag":132,"props":451,"children":452},{"style":209},[453],{"type":50,"value":295},{"type":44,"tag":132,"props":455,"children":456},{"style":203},[457],{"type":50,"value":458},"{",{"type":44,"tag":132,"props":460,"children":461},{"style":307},[462],{"type":50,"value":463}," infuraApiKey",{"type":44,"tag":132,"props":465,"children":466},{"style":203},[467],{"type":50,"value":315},{"type":44,"tag":132,"props":469,"children":470},{"style":203},[471],{"type":50,"value":237},{"type":44,"tag":132,"props":473,"children":474},{"style":145},[475],{"type":50,"value":476},"YOUR_INFURA_KEY",{"type":44,"tag":132,"props":478,"children":479},{"style":203},[480],{"type":50,"value":246},{"type":44,"tag":132,"props":482,"children":483},{"style":203},[484],{"type":50,"value":217},{"type":44,"tag":132,"props":486,"children":487},{"style":307},[488],{"type":50,"value":489}," chainIds",{"type":44,"tag":132,"props":491,"children":492},{"style":203},[493],{"type":50,"value":315},{"type":44,"tag":132,"props":495,"children":496},{"style":209},[497],{"type":50,"value":498}," [",{"type":44,"tag":132,"props":500,"children":501},{"style":203},[502],{"type":50,"value":246},{"type":44,"tag":132,"props":504,"children":505},{"style":145},[506],{"type":50,"value":507},"0x1",{"type":44,"tag":132,"props":509,"children":510},{"style":203},[511],{"type":50,"value":246},{"type":44,"tag":132,"props":513,"children":514},{"style":203},[515],{"type":50,"value":217},{"type":44,"tag":132,"props":517,"children":518},{"style":203},[519],{"type":50,"value":237},{"type":44,"tag":132,"props":521,"children":522},{"style":145},[523],{"type":50,"value":524},"0x89",{"type":44,"tag":132,"props":526,"children":527},{"style":203},[528],{"type":50,"value":246},{"type":44,"tag":132,"props":530,"children":531},{"style":203},[532],{"type":50,"value":217},{"type":44,"tag":132,"props":534,"children":535},{"style":203},[536],{"type":50,"value":237},{"type":44,"tag":132,"props":538,"children":539},{"style":145},[540],{"type":50,"value":541},"0xa4b1",{"type":44,"tag":132,"props":543,"children":544},{"style":203},[545],{"type":50,"value":246},{"type":44,"tag":132,"props":547,"children":548},{"style":203},[549],{"type":50,"value":217},{"type":44,"tag":132,"props":551,"children":552},{"style":203},[553],{"type":50,"value":237},{"type":44,"tag":132,"props":555,"children":556},{"style":145},[557],{"type":50,"value":558},"0xaa36a7",{"type":44,"tag":132,"props":560,"children":561},{"style":203},[562],{"type":50,"value":246},{"type":44,"tag":132,"props":564,"children":565},{"style":209},[566],{"type":50,"value":567},"] ",{"type":44,"tag":132,"props":569,"children":570},{"style":203},[571],{"type":50,"value":572},"}",{"type":44,"tag":132,"props":574,"children":575},{"style":209},[576],{"type":50,"value":577},")",{"type":44,"tag":132,"props":579,"children":580},{"style":203},[581],{"type":50,"value":351},{"type":44,"tag":132,"props":583,"children":585},{"class":134,"line":584},11,[586],{"type":44,"tag":132,"props":587,"children":588},{"style":203},[589],{"type":50,"value":590},"    },\n",{"type":44,"tag":132,"props":592,"children":594},{"class":134,"line":593},12,[595],{"type":44,"tag":132,"props":596,"children":597},{"style":203},[598],{"type":50,"value":401},{"type":44,"tag":132,"props":600,"children":602},{"class":134,"line":601},13,[603,608,612],{"type":44,"tag":132,"props":604,"children":605},{"style":307},[606],{"type":50,"value":607},"  ui",{"type":44,"tag":132,"props":609,"children":610},{"style":203},[611],{"type":50,"value":315},{"type":44,"tag":132,"props":613,"children":614},{"style":203},[615],{"type":50,"value":320},{"type":44,"tag":132,"props":617,"children":619},{"class":134,"line":618},14,[620,625,629,635],{"type":44,"tag":132,"props":621,"children":622},{"style":307},[623],{"type":50,"value":624},"    headless",{"type":44,"tag":132,"props":626,"children":627},{"style":203},[628],{"type":50,"value":315},{"type":44,"tag":132,"props":630,"children":632},{"style":631},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[633],{"type":50,"value":634}," false",{"type":44,"tag":132,"props":636,"children":637},{"style":203},[638],{"type":50,"value":351},{"type":44,"tag":132,"props":640,"children":642},{"class":134,"line":641},15,[643,648,652,657],{"type":44,"tag":132,"props":644,"children":645},{"style":307},[646],{"type":50,"value":647},"    preferExtension",{"type":44,"tag":132,"props":649,"children":650},{"style":203},[651],{"type":50,"value":315},{"type":44,"tag":132,"props":653,"children":654},{"style":631},[655],{"type":50,"value":656}," true",{"type":44,"tag":132,"props":658,"children":659},{"style":203},[660],{"type":50,"value":351},{"type":44,"tag":132,"props":662,"children":664},{"class":134,"line":663},16,[665,670,674,678],{"type":44,"tag":132,"props":666,"children":667},{"style":307},[668],{"type":50,"value":669},"    showInstallModal",{"type":44,"tag":132,"props":671,"children":672},{"style":203},[673],{"type":50,"value":315},{"type":44,"tag":132,"props":675,"children":676},{"style":631},[677],{"type":50,"value":656},{"type":44,"tag":132,"props":679,"children":680},{"style":203},[681],{"type":50,"value":351},{"type":44,"tag":132,"props":683,"children":685},{"class":134,"line":684},17,[686],{"type":44,"tag":132,"props":687,"children":688},{"style":203},[689],{"type":50,"value":401},{"type":44,"tag":132,"props":691,"children":693},{"class":134,"line":692},18,[694,699,703],{"type":44,"tag":132,"props":695,"children":696},{"style":307},[697],{"type":50,"value":698},"  eventHandlers",{"type":44,"tag":132,"props":700,"children":701},{"style":203},[702],{"type":50,"value":315},{"type":44,"tag":132,"props":704,"children":705},{"style":203},[706],{"type":50,"value":320},{"type":44,"tag":132,"props":708,"children":710},{"class":134,"line":709},19,[711],{"type":44,"tag":132,"props":712,"children":714},{"style":713},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[715],{"type":50,"value":716},"    \u002F\u002F Keys are camelCase — `display_uri`\u002F`wallet_sessionChanged` are NOT valid here\n",{"type":44,"tag":132,"props":718,"children":720},{"class":134,"line":719},20,[721,726,730,735,741,745,750,754,759],{"type":44,"tag":132,"props":722,"children":723},{"style":288},[724],{"type":50,"value":725},"    displayUri",{"type":44,"tag":132,"props":727,"children":728},{"style":203},[729],{"type":50,"value":315},{"type":44,"tag":132,"props":731,"children":732},{"style":203},[733],{"type":50,"value":734}," (",{"type":44,"tag":132,"props":736,"children":738},{"style":737},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[739],{"type":50,"value":740},"uri",{"type":44,"tag":132,"props":742,"children":743},{"style":203},[744],{"type":50,"value":315},{"type":44,"tag":132,"props":746,"children":747},{"style":139},[748],{"type":50,"value":749}," string",{"type":44,"tag":132,"props":751,"children":752},{"style":203},[753],{"type":50,"value":577},{"type":44,"tag":132,"props":755,"children":756},{"style":267},[757],{"type":50,"value":758}," =>",{"type":44,"tag":132,"props":760,"children":761},{"style":203},[762],{"type":50,"value":320},{"type":44,"tag":132,"props":764,"children":766},{"class":134,"line":765},21,[767,772,776,781,785,789,794,798,802,807,811],{"type":44,"tag":132,"props":768,"children":769},{"style":209},[770],{"type":50,"value":771},"      console",{"type":44,"tag":132,"props":773,"children":774},{"style":203},[775],{"type":50,"value":374},{"type":44,"tag":132,"props":777,"children":778},{"style":288},[779],{"type":50,"value":780},"log",{"type":44,"tag":132,"props":782,"children":783},{"style":307},[784],{"type":50,"value":295},{"type":44,"tag":132,"props":786,"children":787},{"style":203},[788],{"type":50,"value":246},{"type":44,"tag":132,"props":790,"children":791},{"style":145},[792],{"type":50,"value":793},"QR URI:",{"type":44,"tag":132,"props":795,"children":796},{"style":203},[797],{"type":50,"value":246},{"type":44,"tag":132,"props":799,"children":800},{"style":203},[801],{"type":50,"value":217},{"type":44,"tag":132,"props":803,"children":804},{"style":209},[805],{"type":50,"value":806}," uri",{"type":44,"tag":132,"props":808,"children":809},{"style":307},[810],{"type":50,"value":577},{"type":44,"tag":132,"props":812,"children":813},{"style":203},[814],{"type":50,"value":251},{"type":44,"tag":132,"props":816,"children":818},{"class":134,"line":817},22,[819],{"type":44,"tag":132,"props":820,"children":821},{"style":713},[822],{"type":50,"value":823},"      \u002F\u002F Render QR code for mobile connection\n",{"type":44,"tag":132,"props":825,"children":827},{"class":134,"line":826},23,[828],{"type":44,"tag":132,"props":829,"children":830},{"style":203},[831],{"type":50,"value":590},{"type":44,"tag":132,"props":833,"children":835},{"class":134,"line":834},24,[836,841,845,850,855,859,864,869,873],{"type":44,"tag":132,"props":837,"children":838},{"style":288},[839],{"type":50,"value":840},"    connect",{"type":44,"tag":132,"props":842,"children":843},{"style":203},[844],{"type":50,"value":315},{"type":44,"tag":132,"props":846,"children":847},{"style":203},[848],{"type":50,"value":849}," ({",{"type":44,"tag":132,"props":851,"children":852},{"style":737},[853],{"type":50,"value":854}," accounts",{"type":44,"tag":132,"props":856,"children":857},{"style":203},[858],{"type":50,"value":217},{"type":44,"tag":132,"props":860,"children":861},{"style":737},[862],{"type":50,"value":863}," chainId",{"type":44,"tag":132,"props":865,"children":866},{"style":203},[867],{"type":50,"value":868}," })",{"type":44,"tag":132,"props":870,"children":871},{"style":267},[872],{"type":50,"value":758},{"type":44,"tag":132,"props":874,"children":875},{"style":203},[876],{"type":50,"value":320},{"type":44,"tag":132,"props":878,"children":880},{"class":134,"line":879},25,[881],{"type":44,"tag":132,"props":882,"children":883},{"style":713},[884],{"type":50,"value":885},"      \u002F\u002F Fires on connection and on automatic session restore\n",{"type":44,"tag":132,"props":887,"children":889},{"class":134,"line":888},26,[890,895,899,904,908,912,916],{"type":44,"tag":132,"props":891,"children":892},{"style":288},[893],{"type":50,"value":894},"      updateUI",{"type":44,"tag":132,"props":896,"children":897},{"style":307},[898],{"type":50,"value":295},{"type":44,"tag":132,"props":900,"children":901},{"style":209},[902],{"type":50,"value":903},"accounts",{"type":44,"tag":132,"props":905,"children":906},{"style":203},[907],{"type":50,"value":217},{"type":44,"tag":132,"props":909,"children":910},{"style":209},[911],{"type":50,"value":863},{"type":44,"tag":132,"props":913,"children":914},{"style":307},[915],{"type":50,"value":577},{"type":44,"tag":132,"props":917,"children":918},{"style":203},[919],{"type":50,"value":251},{"type":44,"tag":132,"props":921,"children":923},{"class":134,"line":922},27,[924],{"type":44,"tag":132,"props":925,"children":926},{"style":203},[927],{"type":50,"value":590},{"type":44,"tag":132,"props":929,"children":931},{"class":134,"line":930},28,[932],{"type":44,"tag":132,"props":933,"children":934},{"style":203},[935],{"type":50,"value":401},{"type":44,"tag":132,"props":937,"children":939},{"class":134,"line":938},29,[940,945,949,953],{"type":44,"tag":132,"props":941,"children":942},{"style":307},[943],{"type":50,"value":944},"  debug",{"type":44,"tag":132,"props":946,"children":947},{"style":203},[948],{"type":50,"value":315},{"type":44,"tag":132,"props":950,"children":951},{"style":631},[952],{"type":50,"value":634},{"type":44,"tag":132,"props":954,"children":955},{"style":203},[956],{"type":50,"value":351},{"type":44,"tag":132,"props":958,"children":960},{"class":134,"line":959},30,[961,965,969],{"type":44,"tag":132,"props":962,"children":963},{"style":203},[964],{"type":50,"value":572},{"type":44,"tag":132,"props":966,"children":967},{"style":209},[968],{"type":50,"value":577},{"type":44,"tag":132,"props":970,"children":971},{"style":203},[972],{"type":50,"value":251},{"type":44,"tag":60,"props":974,"children":975},{},[976,978,984,986,992,994,1000,1002,1007],{"type":50,"value":977},"There is no ",{"type":44,"tag":81,"props":979,"children":981},{"className":980},[],[982],{"type":50,"value":983},"wallet_sessionChanged",{"type":50,"value":985}," handler on the EVM client — session restores surface through the ",{"type":44,"tag":81,"props":987,"children":989},{"className":988},[],[990],{"type":50,"value":991},"connect",{"type":50,"value":993}," handler \u002F provider event and ",{"type":44,"tag":81,"props":995,"children":997},{"className":996},[],[998],{"type":50,"value":999},"accountsChanged",{"type":50,"value":1001},". (",{"type":44,"tag":81,"props":1003,"children":1005},{"className":1004},[],[1006],{"type":50,"value":983},{"type":50,"value":1008}," is a multichain-client event.)",{"type":44,"tag":114,"props":1010,"children":1012},{"id":1011},"step-3-register-provider-event-listeners",[1013],{"type":50,"value":1014},"Step 3: Register provider event listeners",{"type":44,"tag":60,"props":1016,"children":1017},{},[1018],{"type":50,"value":1019},"Set up EIP-1193 event listeners immediately after client creation:",{"type":44,"tag":121,"props":1021,"children":1023},{"className":186,"code":1022,"language":14,"meta":126,"style":126},"const provider = client.getProvider();\n\nprovider.on('accountsChanged', (accounts: string[]) => {\n  if (accounts.length === 0) {\n    \u002F\u002F User disconnected their wallet\n    updateUI([], null);\n    return;\n  }\n  updateUI(accounts, null);\n  fetchBalance(accounts[0]);\n});\n\nprovider.on('chainChanged', (chainId: string) => {\n  \u002F\u002F chainId is a hex string, e.g. '0x1'\n  document.getElementById('chain')!.textContent = `Chain: ${chainId}`;\n  \u002F\u002F Refresh balances since the chain changed\n  const currentAccount = document.getElementById('account')?.dataset.address;\n  if (currentAccount) fetchBalance(currentAccount);\n});\n\nprovider.on('disconnect', () => {\n  \u002F\u002F The connect-evm provider emits `disconnect` with no payload\n  console.log('Disconnected');\n  updateUI([], null);\n});\n",[1024],{"type":44,"tag":81,"props":1025,"children":1026},{"__ignoreMap":126},[1027,1066,1073,1143,1188,1196,1226,1238,1246,1278,1313,1328,1335,1400,1408,1489,1497,1571,1612,1627,1634,1683,1691,1732,1759],{"type":44,"tag":132,"props":1028,"children":1029},{"class":134,"line":135},[1030,1034,1039,1043,1048,1052,1057,1062],{"type":44,"tag":132,"props":1031,"children":1032},{"style":267},[1033],{"type":50,"value":270},{"type":44,"tag":132,"props":1035,"children":1036},{"style":209},[1037],{"type":50,"value":1038}," provider ",{"type":44,"tag":132,"props":1040,"children":1041},{"style":203},[1042],{"type":50,"value":280},{"type":44,"tag":132,"props":1044,"children":1045},{"style":209},[1046],{"type":50,"value":1047}," client",{"type":44,"tag":132,"props":1049,"children":1050},{"style":203},[1051],{"type":50,"value":374},{"type":44,"tag":132,"props":1053,"children":1054},{"style":288},[1055],{"type":50,"value":1056},"getProvider",{"type":44,"tag":132,"props":1058,"children":1059},{"style":209},[1060],{"type":50,"value":1061},"()",{"type":44,"tag":132,"props":1063,"children":1064},{"style":203},[1065],{"type":50,"value":251},{"type":44,"tag":132,"props":1067,"children":1068},{"class":134,"line":28},[1069],{"type":44,"tag":132,"props":1070,"children":1071},{"emptyLinePlaceholder":257},[1072],{"type":50,"value":260},{"type":44,"tag":132,"props":1074,"children":1075},{"class":134,"line":263},[1076,1081,1085,1090,1094,1098,1102,1106,1110,1114,1118,1122,1126,1131,1135,1139],{"type":44,"tag":132,"props":1077,"children":1078},{"style":209},[1079],{"type":50,"value":1080},"provider",{"type":44,"tag":132,"props":1082,"children":1083},{"style":203},[1084],{"type":50,"value":374},{"type":44,"tag":132,"props":1086,"children":1087},{"style":288},[1088],{"type":50,"value":1089},"on",{"type":44,"tag":132,"props":1091,"children":1092},{"style":209},[1093],{"type":50,"value":295},{"type":44,"tag":132,"props":1095,"children":1096},{"style":203},[1097],{"type":50,"value":246},{"type":44,"tag":132,"props":1099,"children":1100},{"style":145},[1101],{"type":50,"value":999},{"type":44,"tag":132,"props":1103,"children":1104},{"style":203},[1105],{"type":50,"value":246},{"type":44,"tag":132,"props":1107,"children":1108},{"style":203},[1109],{"type":50,"value":217},{"type":44,"tag":132,"props":1111,"children":1112},{"style":203},[1113],{"type":50,"value":734},{"type":44,"tag":132,"props":1115,"children":1116},{"style":737},[1117],{"type":50,"value":903},{"type":44,"tag":132,"props":1119,"children":1120},{"style":203},[1121],{"type":50,"value":315},{"type":44,"tag":132,"props":1123,"children":1124},{"style":139},[1125],{"type":50,"value":749},{"type":44,"tag":132,"props":1127,"children":1128},{"style":209},[1129],{"type":50,"value":1130},"[]",{"type":44,"tag":132,"props":1132,"children":1133},{"style":203},[1134],{"type":50,"value":577},{"type":44,"tag":132,"props":1136,"children":1137},{"style":267},[1138],{"type":50,"value":758},{"type":44,"tag":132,"props":1140,"children":1141},{"style":203},[1142],{"type":50,"value":320},{"type":44,"tag":132,"props":1144,"children":1145},{"class":134,"line":303},[1146,1151,1155,1159,1163,1168,1173,1179,1184],{"type":44,"tag":132,"props":1147,"children":1148},{"style":197},[1149],{"type":50,"value":1150},"  if",{"type":44,"tag":132,"props":1152,"children":1153},{"style":307},[1154],{"type":50,"value":734},{"type":44,"tag":132,"props":1156,"children":1157},{"style":209},[1158],{"type":50,"value":903},{"type":44,"tag":132,"props":1160,"children":1161},{"style":203},[1162],{"type":50,"value":374},{"type":44,"tag":132,"props":1164,"children":1165},{"style":209},[1166],{"type":50,"value":1167},"length",{"type":44,"tag":132,"props":1169,"children":1170},{"style":203},[1171],{"type":50,"value":1172}," ===",{"type":44,"tag":132,"props":1174,"children":1176},{"style":1175},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1177],{"type":50,"value":1178}," 0",{"type":44,"tag":132,"props":1180,"children":1181},{"style":307},[1182],{"type":50,"value":1183},") ",{"type":44,"tag":132,"props":1185,"children":1186},{"style":203},[1187],{"type":50,"value":300},{"type":44,"tag":132,"props":1189,"children":1190},{"class":134,"line":323},[1191],{"type":44,"tag":132,"props":1192,"children":1193},{"style":713},[1194],{"type":50,"value":1195},"    \u002F\u002F User disconnected their wallet\n",{"type":44,"tag":132,"props":1197,"children":1198},{"class":134,"line":354},[1199,1204,1209,1213,1218,1222],{"type":44,"tag":132,"props":1200,"children":1201},{"style":288},[1202],{"type":50,"value":1203},"    updateUI",{"type":44,"tag":132,"props":1205,"children":1206},{"style":307},[1207],{"type":50,"value":1208},"([]",{"type":44,"tag":132,"props":1210,"children":1211},{"style":203},[1212],{"type":50,"value":217},{"type":44,"tag":132,"props":1214,"children":1215},{"style":203},[1216],{"type":50,"value":1217}," null",{"type":44,"tag":132,"props":1219,"children":1220},{"style":307},[1221],{"type":50,"value":577},{"type":44,"tag":132,"props":1223,"children":1224},{"style":203},[1225],{"type":50,"value":251},{"type":44,"tag":132,"props":1227,"children":1228},{"class":134,"line":395},[1229,1234],{"type":44,"tag":132,"props":1230,"children":1231},{"style":197},[1232],{"type":50,"value":1233},"    return",{"type":44,"tag":132,"props":1235,"children":1236},{"style":203},[1237],{"type":50,"value":251},{"type":44,"tag":132,"props":1239,"children":1240},{"class":134,"line":404},[1241],{"type":44,"tag":132,"props":1242,"children":1243},{"style":203},[1244],{"type":50,"value":1245},"  }\n",{"type":44,"tag":132,"props":1247,"children":1248},{"class":134,"line":421},[1249,1254,1258,1262,1266,1270,1274],{"type":44,"tag":132,"props":1250,"children":1251},{"style":288},[1252],{"type":50,"value":1253},"  updateUI",{"type":44,"tag":132,"props":1255,"children":1256},{"style":307},[1257],{"type":50,"value":295},{"type":44,"tag":132,"props":1259,"children":1260},{"style":209},[1261],{"type":50,"value":903},{"type":44,"tag":132,"props":1263,"children":1264},{"style":203},[1265],{"type":50,"value":217},{"type":44,"tag":132,"props":1267,"children":1268},{"style":203},[1269],{"type":50,"value":1217},{"type":44,"tag":132,"props":1271,"children":1272},{"style":307},[1273],{"type":50,"value":577},{"type":44,"tag":132,"props":1275,"children":1276},{"style":203},[1277],{"type":50,"value":251},{"type":44,"tag":132,"props":1279,"children":1280},{"class":134,"line":438},[1281,1286,1290,1294,1299,1304,1309],{"type":44,"tag":132,"props":1282,"children":1283},{"style":288},[1284],{"type":50,"value":1285},"  fetchBalance",{"type":44,"tag":132,"props":1287,"children":1288},{"style":307},[1289],{"type":50,"value":295},{"type":44,"tag":132,"props":1291,"children":1292},{"style":209},[1293],{"type":50,"value":903},{"type":44,"tag":132,"props":1295,"children":1296},{"style":307},[1297],{"type":50,"value":1298},"[",{"type":44,"tag":132,"props":1300,"children":1301},{"style":1175},[1302],{"type":50,"value":1303},"0",{"type":44,"tag":132,"props":1305,"children":1306},{"style":307},[1307],{"type":50,"value":1308},"])",{"type":44,"tag":132,"props":1310,"children":1311},{"style":203},[1312],{"type":50,"value":251},{"type":44,"tag":132,"props":1314,"children":1315},{"class":134,"line":584},[1316,1320,1324],{"type":44,"tag":132,"props":1317,"children":1318},{"style":203},[1319],{"type":50,"value":572},{"type":44,"tag":132,"props":1321,"children":1322},{"style":209},[1323],{"type":50,"value":577},{"type":44,"tag":132,"props":1325,"children":1326},{"style":203},[1327],{"type":50,"value":251},{"type":44,"tag":132,"props":1329,"children":1330},{"class":134,"line":593},[1331],{"type":44,"tag":132,"props":1332,"children":1333},{"emptyLinePlaceholder":257},[1334],{"type":50,"value":260},{"type":44,"tag":132,"props":1336,"children":1337},{"class":134,"line":601},[1338,1342,1346,1350,1354,1358,1363,1367,1371,1375,1380,1384,1388,1392,1396],{"type":44,"tag":132,"props":1339,"children":1340},{"style":209},[1341],{"type":50,"value":1080},{"type":44,"tag":132,"props":1343,"children":1344},{"style":203},[1345],{"type":50,"value":374},{"type":44,"tag":132,"props":1347,"children":1348},{"style":288},[1349],{"type":50,"value":1089},{"type":44,"tag":132,"props":1351,"children":1352},{"style":209},[1353],{"type":50,"value":295},{"type":44,"tag":132,"props":1355,"children":1356},{"style":203},[1357],{"type":50,"value":246},{"type":44,"tag":132,"props":1359,"children":1360},{"style":145},[1361],{"type":50,"value":1362},"chainChanged",{"type":44,"tag":132,"props":1364,"children":1365},{"style":203},[1366],{"type":50,"value":246},{"type":44,"tag":132,"props":1368,"children":1369},{"style":203},[1370],{"type":50,"value":217},{"type":44,"tag":132,"props":1372,"children":1373},{"style":203},[1374],{"type":50,"value":734},{"type":44,"tag":132,"props":1376,"children":1377},{"style":737},[1378],{"type":50,"value":1379},"chainId",{"type":44,"tag":132,"props":1381,"children":1382},{"style":203},[1383],{"type":50,"value":315},{"type":44,"tag":132,"props":1385,"children":1386},{"style":139},[1387],{"type":50,"value":749},{"type":44,"tag":132,"props":1389,"children":1390},{"style":203},[1391],{"type":50,"value":577},{"type":44,"tag":132,"props":1393,"children":1394},{"style":267},[1395],{"type":50,"value":758},{"type":44,"tag":132,"props":1397,"children":1398},{"style":203},[1399],{"type":50,"value":320},{"type":44,"tag":132,"props":1401,"children":1402},{"class":134,"line":618},[1403],{"type":44,"tag":132,"props":1404,"children":1405},{"style":713},[1406],{"type":50,"value":1407},"  \u002F\u002F chainId is a hex string, e.g. '0x1'\n",{"type":44,"tag":132,"props":1409,"children":1410},{"class":134,"line":641},[1411,1416,1420,1425,1429,1433,1438,1442,1446,1451,1456,1461,1466,1471,1476,1480,1485],{"type":44,"tag":132,"props":1412,"children":1413},{"style":209},[1414],{"type":50,"value":1415},"  document",{"type":44,"tag":132,"props":1417,"children":1418},{"style":203},[1419],{"type":50,"value":374},{"type":44,"tag":132,"props":1421,"children":1422},{"style":288},[1423],{"type":50,"value":1424},"getElementById",{"type":44,"tag":132,"props":1426,"children":1427},{"style":307},[1428],{"type":50,"value":295},{"type":44,"tag":132,"props":1430,"children":1431},{"style":203},[1432],{"type":50,"value":246},{"type":44,"tag":132,"props":1434,"children":1435},{"style":145},[1436],{"type":50,"value":1437},"chain",{"type":44,"tag":132,"props":1439,"children":1440},{"style":203},[1441],{"type":50,"value":246},{"type":44,"tag":132,"props":1443,"children":1444},{"style":307},[1445],{"type":50,"value":577},{"type":44,"tag":132,"props":1447,"children":1448},{"style":203},[1449],{"type":50,"value":1450},"!.",{"type":44,"tag":132,"props":1452,"children":1453},{"style":209},[1454],{"type":50,"value":1455},"textContent",{"type":44,"tag":132,"props":1457,"children":1458},{"style":203},[1459],{"type":50,"value":1460}," =",{"type":44,"tag":132,"props":1462,"children":1463},{"style":203},[1464],{"type":50,"value":1465}," `",{"type":44,"tag":132,"props":1467,"children":1468},{"style":145},[1469],{"type":50,"value":1470},"Chain: ",{"type":44,"tag":132,"props":1472,"children":1473},{"style":203},[1474],{"type":50,"value":1475},"${",{"type":44,"tag":132,"props":1477,"children":1478},{"style":209},[1479],{"type":50,"value":1379},{"type":44,"tag":132,"props":1481,"children":1482},{"style":203},[1483],{"type":50,"value":1484},"}`",{"type":44,"tag":132,"props":1486,"children":1487},{"style":203},[1488],{"type":50,"value":251},{"type":44,"tag":132,"props":1490,"children":1491},{"class":134,"line":663},[1492],{"type":44,"tag":132,"props":1493,"children":1494},{"style":713},[1495],{"type":50,"value":1496},"  \u002F\u002F Refresh balances since the chain changed\n",{"type":44,"tag":132,"props":1498,"children":1499},{"class":134,"line":684},[1500,1505,1510,1514,1519,1523,1527,1531,1535,1540,1544,1548,1553,1558,1562,1567],{"type":44,"tag":132,"props":1501,"children":1502},{"style":267},[1503],{"type":50,"value":1504},"  const",{"type":44,"tag":132,"props":1506,"children":1507},{"style":209},[1508],{"type":50,"value":1509}," currentAccount",{"type":44,"tag":132,"props":1511,"children":1512},{"style":203},[1513],{"type":50,"value":1460},{"type":44,"tag":132,"props":1515,"children":1516},{"style":209},[1517],{"type":50,"value":1518}," document",{"type":44,"tag":132,"props":1520,"children":1521},{"style":203},[1522],{"type":50,"value":374},{"type":44,"tag":132,"props":1524,"children":1525},{"style":288},[1526],{"type":50,"value":1424},{"type":44,"tag":132,"props":1528,"children":1529},{"style":307},[1530],{"type":50,"value":295},{"type":44,"tag":132,"props":1532,"children":1533},{"style":203},[1534],{"type":50,"value":246},{"type":44,"tag":132,"props":1536,"children":1537},{"style":145},[1538],{"type":50,"value":1539},"account",{"type":44,"tag":132,"props":1541,"children":1542},{"style":203},[1543],{"type":50,"value":246},{"type":44,"tag":132,"props":1545,"children":1546},{"style":307},[1547],{"type":50,"value":577},{"type":44,"tag":132,"props":1549,"children":1550},{"style":203},[1551],{"type":50,"value":1552},"?.",{"type":44,"tag":132,"props":1554,"children":1555},{"style":209},[1556],{"type":50,"value":1557},"dataset",{"type":44,"tag":132,"props":1559,"children":1560},{"style":203},[1561],{"type":50,"value":374},{"type":44,"tag":132,"props":1563,"children":1564},{"style":209},[1565],{"type":50,"value":1566},"address",{"type":44,"tag":132,"props":1568,"children":1569},{"style":203},[1570],{"type":50,"value":251},{"type":44,"tag":132,"props":1572,"children":1573},{"class":134,"line":692},[1574,1578,1582,1587,1591,1596,1600,1604,1608],{"type":44,"tag":132,"props":1575,"children":1576},{"style":197},[1577],{"type":50,"value":1150},{"type":44,"tag":132,"props":1579,"children":1580},{"style":307},[1581],{"type":50,"value":734},{"type":44,"tag":132,"props":1583,"children":1584},{"style":209},[1585],{"type":50,"value":1586},"currentAccount",{"type":44,"tag":132,"props":1588,"children":1589},{"style":307},[1590],{"type":50,"value":1183},{"type":44,"tag":132,"props":1592,"children":1593},{"style":288},[1594],{"type":50,"value":1595},"fetchBalance",{"type":44,"tag":132,"props":1597,"children":1598},{"style":307},[1599],{"type":50,"value":295},{"type":44,"tag":132,"props":1601,"children":1602},{"style":209},[1603],{"type":50,"value":1586},{"type":44,"tag":132,"props":1605,"children":1606},{"style":307},[1607],{"type":50,"value":577},{"type":44,"tag":132,"props":1609,"children":1610},{"style":203},[1611],{"type":50,"value":251},{"type":44,"tag":132,"props":1613,"children":1614},{"class":134,"line":709},[1615,1619,1623],{"type":44,"tag":132,"props":1616,"children":1617},{"style":203},[1618],{"type":50,"value":572},{"type":44,"tag":132,"props":1620,"children":1621},{"style":209},[1622],{"type":50,"value":577},{"type":44,"tag":132,"props":1624,"children":1625},{"style":203},[1626],{"type":50,"value":251},{"type":44,"tag":132,"props":1628,"children":1629},{"class":134,"line":719},[1630],{"type":44,"tag":132,"props":1631,"children":1632},{"emptyLinePlaceholder":257},[1633],{"type":50,"value":260},{"type":44,"tag":132,"props":1635,"children":1636},{"class":134,"line":765},[1637,1641,1645,1649,1653,1657,1662,1666,1670,1675,1679],{"type":44,"tag":132,"props":1638,"children":1639},{"style":209},[1640],{"type":50,"value":1080},{"type":44,"tag":132,"props":1642,"children":1643},{"style":203},[1644],{"type":50,"value":374},{"type":44,"tag":132,"props":1646,"children":1647},{"style":288},[1648],{"type":50,"value":1089},{"type":44,"tag":132,"props":1650,"children":1651},{"style":209},[1652],{"type":50,"value":295},{"type":44,"tag":132,"props":1654,"children":1655},{"style":203},[1656],{"type":50,"value":246},{"type":44,"tag":132,"props":1658,"children":1659},{"style":145},[1660],{"type":50,"value":1661},"disconnect",{"type":44,"tag":132,"props":1663,"children":1664},{"style":203},[1665],{"type":50,"value":246},{"type":44,"tag":132,"props":1667,"children":1668},{"style":203},[1669],{"type":50,"value":217},{"type":44,"tag":132,"props":1671,"children":1672},{"style":203},[1673],{"type":50,"value":1674}," ()",{"type":44,"tag":132,"props":1676,"children":1677},{"style":267},[1678],{"type":50,"value":758},{"type":44,"tag":132,"props":1680,"children":1681},{"style":203},[1682],{"type":50,"value":320},{"type":44,"tag":132,"props":1684,"children":1685},{"class":134,"line":817},[1686],{"type":44,"tag":132,"props":1687,"children":1688},{"style":713},[1689],{"type":50,"value":1690},"  \u002F\u002F The connect-evm provider emits `disconnect` with no payload\n",{"type":44,"tag":132,"props":1692,"children":1693},{"class":134,"line":826},[1694,1699,1703,1707,1711,1715,1720,1724,1728],{"type":44,"tag":132,"props":1695,"children":1696},{"style":209},[1697],{"type":50,"value":1698},"  console",{"type":44,"tag":132,"props":1700,"children":1701},{"style":203},[1702],{"type":50,"value":374},{"type":44,"tag":132,"props":1704,"children":1705},{"style":288},[1706],{"type":50,"value":780},{"type":44,"tag":132,"props":1708,"children":1709},{"style":307},[1710],{"type":50,"value":295},{"type":44,"tag":132,"props":1712,"children":1713},{"style":203},[1714],{"type":50,"value":246},{"type":44,"tag":132,"props":1716,"children":1717},{"style":145},[1718],{"type":50,"value":1719},"Disconnected",{"type":44,"tag":132,"props":1721,"children":1722},{"style":203},[1723],{"type":50,"value":246},{"type":44,"tag":132,"props":1725,"children":1726},{"style":307},[1727],{"type":50,"value":577},{"type":44,"tag":132,"props":1729,"children":1730},{"style":203},[1731],{"type":50,"value":251},{"type":44,"tag":132,"props":1733,"children":1734},{"class":134,"line":834},[1735,1739,1743,1747,1751,1755],{"type":44,"tag":132,"props":1736,"children":1737},{"style":288},[1738],{"type":50,"value":1253},{"type":44,"tag":132,"props":1740,"children":1741},{"style":307},[1742],{"type":50,"value":1208},{"type":44,"tag":132,"props":1744,"children":1745},{"style":203},[1746],{"type":50,"value":217},{"type":44,"tag":132,"props":1748,"children":1749},{"style":203},[1750],{"type":50,"value":1217},{"type":44,"tag":132,"props":1752,"children":1753},{"style":307},[1754],{"type":50,"value":577},{"type":44,"tag":132,"props":1756,"children":1757},{"style":203},[1758],{"type":50,"value":251},{"type":44,"tag":132,"props":1760,"children":1761},{"class":134,"line":879},[1762,1766,1770],{"type":44,"tag":132,"props":1763,"children":1764},{"style":203},[1765],{"type":50,"value":572},{"type":44,"tag":132,"props":1767,"children":1768},{"style":209},[1769],{"type":50,"value":577},{"type":44,"tag":132,"props":1771,"children":1772},{"style":203},[1773],{"type":50,"value":251},{"type":44,"tag":114,"props":1775,"children":1777},{"id":1776},"step-4-connect-and-update-ui",[1778],{"type":50,"value":1779},"Step 4: Connect and update UI",{"type":44,"tag":121,"props":1781,"children":1783},{"className":186,"code":1782,"language":14,"meta":126,"style":126},"const connectBtn = document.getElementById('connect-btn')!;\nconst disconnectBtn = document.getElementById('disconnect-btn')!;\n\nconnectBtn.addEventListener('click', async () => {\n  try {\n    connectBtn.textContent = 'Connecting...';\n    connectBtn.setAttribute('disabled', 'true');\n\n    const { accounts, chainId } = await client.connect({\n      chainIds: ['0x1'],\n    });\n\n    updateUI(accounts, chainId);\n  } catch (err: any) {\n    if (err.code === 4001) {\n      showError('Connection rejected. Click Connect to try again.');\n      return;\n    }\n    if (err.code === -32002) {\n      showError('A connection request is already pending. Check MetaMask.');\n      return;\n    }\n    showError(err.message ?? 'Connection failed');\n  } finally {\n    connectBtn.textContent = 'Connect MetaMask';\n    connectBtn.removeAttribute('disabled');\n  }\n});\n\ndisconnectBtn.addEventListener('click', async () => {\n  await client.disconnect();\n  updateUI([], null);\n});\n\nfunction updateUI(accounts: string[], chainId: string | null) {\n  const accountEl = document.getElementById('account')!;\n  const chainEl = document.getElementById('chain')!;\n  const connectedSection = document.getElementById('connected')!;\n\n  if (accounts.length === 0) {\n    connectedSection.style.display = 'none';\n    connectBtn.style.display = 'block';\n    return;\n  }\n\n  accountEl.textContent = `Account: ${accounts[0]}`;\n  accountEl.dataset.address = accounts[0];\n  if (chainId) chainEl.textContent = `Chain: ${chainId}`;\n  connectedSection.style.display = 'block';\n  connectBtn.style.display = 'none';\n}\n\nfunction showError(message: string) {\n  const errorEl = document.getElementById('error')!;\n  errorEl.textContent = message;\n  setTimeout(() => { errorEl.textContent = ''; }, 5000);\n}\n",[1784],{"type":44,"tag":81,"props":1785,"children":1786},{"__ignoreMap":126},[1787,1841,1894,1901,1956,1968,2005,2063,2070,2126,2163,2179,2186,2217,2256,2297,2330,2342,2350,2395,2427,2438,2445,2496,2512,2548,2588,2595,2610,2617,2669,2698,2726,2742,2750,2817,2870,2923,2977,2985,3025,3073,3118,3130,3138,3146,3201,3249,3310,3355,3400,3409,3417,3454,3508,3538,3607],{"type":44,"tag":132,"props":1788,"children":1789},{"class":134,"line":135},[1790,1794,1799,1803,1807,1811,1815,1819,1823,1828,1832,1836],{"type":44,"tag":132,"props":1791,"children":1792},{"style":267},[1793],{"type":50,"value":270},{"type":44,"tag":132,"props":1795,"children":1796},{"style":209},[1797],{"type":50,"value":1798}," connectBtn ",{"type":44,"tag":132,"props":1800,"children":1801},{"style":203},[1802],{"type":50,"value":280},{"type":44,"tag":132,"props":1804,"children":1805},{"style":209},[1806],{"type":50,"value":1518},{"type":44,"tag":132,"props":1808,"children":1809},{"style":203},[1810],{"type":50,"value":374},{"type":44,"tag":132,"props":1812,"children":1813},{"style":288},[1814],{"type":50,"value":1424},{"type":44,"tag":132,"props":1816,"children":1817},{"style":209},[1818],{"type":50,"value":295},{"type":44,"tag":132,"props":1820,"children":1821},{"style":203},[1822],{"type":50,"value":246},{"type":44,"tag":132,"props":1824,"children":1825},{"style":145},[1826],{"type":50,"value":1827},"connect-btn",{"type":44,"tag":132,"props":1829,"children":1830},{"style":203},[1831],{"type":50,"value":246},{"type":44,"tag":132,"props":1833,"children":1834},{"style":209},[1835],{"type":50,"value":577},{"type":44,"tag":132,"props":1837,"children":1838},{"style":203},[1839],{"type":50,"value":1840},"!;\n",{"type":44,"tag":132,"props":1842,"children":1843},{"class":134,"line":28},[1844,1848,1853,1857,1861,1865,1869,1873,1877,1882,1886,1890],{"type":44,"tag":132,"props":1845,"children":1846},{"style":267},[1847],{"type":50,"value":270},{"type":44,"tag":132,"props":1849,"children":1850},{"style":209},[1851],{"type":50,"value":1852}," disconnectBtn ",{"type":44,"tag":132,"props":1854,"children":1855},{"style":203},[1856],{"type":50,"value":280},{"type":44,"tag":132,"props":1858,"children":1859},{"style":209},[1860],{"type":50,"value":1518},{"type":44,"tag":132,"props":1862,"children":1863},{"style":203},[1864],{"type":50,"value":374},{"type":44,"tag":132,"props":1866,"children":1867},{"style":288},[1868],{"type":50,"value":1424},{"type":44,"tag":132,"props":1870,"children":1871},{"style":209},[1872],{"type":50,"value":295},{"type":44,"tag":132,"props":1874,"children":1875},{"style":203},[1876],{"type":50,"value":246},{"type":44,"tag":132,"props":1878,"children":1879},{"style":145},[1880],{"type":50,"value":1881},"disconnect-btn",{"type":44,"tag":132,"props":1883,"children":1884},{"style":203},[1885],{"type":50,"value":246},{"type":44,"tag":132,"props":1887,"children":1888},{"style":209},[1889],{"type":50,"value":577},{"type":44,"tag":132,"props":1891,"children":1892},{"style":203},[1893],{"type":50,"value":1840},{"type":44,"tag":132,"props":1895,"children":1896},{"class":134,"line":263},[1897],{"type":44,"tag":132,"props":1898,"children":1899},{"emptyLinePlaceholder":257},[1900],{"type":50,"value":260},{"type":44,"tag":132,"props":1902,"children":1903},{"class":134,"line":303},[1904,1909,1913,1918,1922,1926,1931,1935,1939,1944,1948,1952],{"type":44,"tag":132,"props":1905,"children":1906},{"style":209},[1907],{"type":50,"value":1908},"connectBtn",{"type":44,"tag":132,"props":1910,"children":1911},{"style":203},[1912],{"type":50,"value":374},{"type":44,"tag":132,"props":1914,"children":1915},{"style":288},[1916],{"type":50,"value":1917},"addEventListener",{"type":44,"tag":132,"props":1919,"children":1920},{"style":209},[1921],{"type":50,"value":295},{"type":44,"tag":132,"props":1923,"children":1924},{"style":203},[1925],{"type":50,"value":246},{"type":44,"tag":132,"props":1927,"children":1928},{"style":145},[1929],{"type":50,"value":1930},"click",{"type":44,"tag":132,"props":1932,"children":1933},{"style":203},[1934],{"type":50,"value":246},{"type":44,"tag":132,"props":1936,"children":1937},{"style":203},[1938],{"type":50,"value":217},{"type":44,"tag":132,"props":1940,"children":1941},{"style":267},[1942],{"type":50,"value":1943}," async",{"type":44,"tag":132,"props":1945,"children":1946},{"style":203},[1947],{"type":50,"value":1674},{"type":44,"tag":132,"props":1949,"children":1950},{"style":267},[1951],{"type":50,"value":758},{"type":44,"tag":132,"props":1953,"children":1954},{"style":203},[1955],{"type":50,"value":320},{"type":44,"tag":132,"props":1957,"children":1958},{"class":134,"line":323},[1959,1964],{"type":44,"tag":132,"props":1960,"children":1961},{"style":197},[1962],{"type":50,"value":1963},"  try",{"type":44,"tag":132,"props":1965,"children":1966},{"style":203},[1967],{"type":50,"value":320},{"type":44,"tag":132,"props":1969,"children":1970},{"class":134,"line":354},[1971,1976,1980,1984,1988,1992,1997,2001],{"type":44,"tag":132,"props":1972,"children":1973},{"style":209},[1974],{"type":50,"value":1975},"    connectBtn",{"type":44,"tag":132,"props":1977,"children":1978},{"style":203},[1979],{"type":50,"value":374},{"type":44,"tag":132,"props":1981,"children":1982},{"style":209},[1983],{"type":50,"value":1455},{"type":44,"tag":132,"props":1985,"children":1986},{"style":203},[1987],{"type":50,"value":1460},{"type":44,"tag":132,"props":1989,"children":1990},{"style":203},[1991],{"type":50,"value":237},{"type":44,"tag":132,"props":1993,"children":1994},{"style":145},[1995],{"type":50,"value":1996},"Connecting...",{"type":44,"tag":132,"props":1998,"children":1999},{"style":203},[2000],{"type":50,"value":246},{"type":44,"tag":132,"props":2002,"children":2003},{"style":203},[2004],{"type":50,"value":251},{"type":44,"tag":132,"props":2006,"children":2007},{"class":134,"line":395},[2008,2012,2016,2021,2025,2029,2034,2038,2042,2046,2051,2055,2059],{"type":44,"tag":132,"props":2009,"children":2010},{"style":209},[2011],{"type":50,"value":1975},{"type":44,"tag":132,"props":2013,"children":2014},{"style":203},[2015],{"type":50,"value":374},{"type":44,"tag":132,"props":2017,"children":2018},{"style":288},[2019],{"type":50,"value":2020},"setAttribute",{"type":44,"tag":132,"props":2022,"children":2023},{"style":307},[2024],{"type":50,"value":295},{"type":44,"tag":132,"props":2026,"children":2027},{"style":203},[2028],{"type":50,"value":246},{"type":44,"tag":132,"props":2030,"children":2031},{"style":145},[2032],{"type":50,"value":2033},"disabled",{"type":44,"tag":132,"props":2035,"children":2036},{"style":203},[2037],{"type":50,"value":246},{"type":44,"tag":132,"props":2039,"children":2040},{"style":203},[2041],{"type":50,"value":217},{"type":44,"tag":132,"props":2043,"children":2044},{"style":203},[2045],{"type":50,"value":237},{"type":44,"tag":132,"props":2047,"children":2048},{"style":145},[2049],{"type":50,"value":2050},"true",{"type":44,"tag":132,"props":2052,"children":2053},{"style":203},[2054],{"type":50,"value":246},{"type":44,"tag":132,"props":2056,"children":2057},{"style":307},[2058],{"type":50,"value":577},{"type":44,"tag":132,"props":2060,"children":2061},{"style":203},[2062],{"type":50,"value":251},{"type":44,"tag":132,"props":2064,"children":2065},{"class":134,"line":404},[2066],{"type":44,"tag":132,"props":2067,"children":2068},{"emptyLinePlaceholder":257},[2069],{"type":50,"value":260},{"type":44,"tag":132,"props":2071,"children":2072},{"class":134,"line":421},[2073,2078,2082,2086,2090,2094,2098,2102,2106,2110,2114,2118,2122],{"type":44,"tag":132,"props":2074,"children":2075},{"style":267},[2076],{"type":50,"value":2077},"    const",{"type":44,"tag":132,"props":2079,"children":2080},{"style":203},[2081],{"type":50,"value":206},{"type":44,"tag":132,"props":2083,"children":2084},{"style":209},[2085],{"type":50,"value":854},{"type":44,"tag":132,"props":2087,"children":2088},{"style":203},[2089],{"type":50,"value":217},{"type":44,"tag":132,"props":2091,"children":2092},{"style":209},[2093],{"type":50,"value":863},{"type":44,"tag":132,"props":2095,"children":2096},{"style":203},[2097],{"type":50,"value":227},{"type":44,"tag":132,"props":2099,"children":2100},{"style":203},[2101],{"type":50,"value":1460},{"type":44,"tag":132,"props":2103,"children":2104},{"style":197},[2105],{"type":50,"value":285},{"type":44,"tag":132,"props":2107,"children":2108},{"style":209},[2109],{"type":50,"value":1047},{"type":44,"tag":132,"props":2111,"children":2112},{"style":203},[2113],{"type":50,"value":374},{"type":44,"tag":132,"props":2115,"children":2116},{"style":288},[2117],{"type":50,"value":991},{"type":44,"tag":132,"props":2119,"children":2120},{"style":307},[2121],{"type":50,"value":295},{"type":44,"tag":132,"props":2123,"children":2124},{"style":203},[2125],{"type":50,"value":300},{"type":44,"tag":132,"props":2127,"children":2128},{"class":134,"line":438},[2129,2134,2138,2142,2146,2150,2154,2159],{"type":44,"tag":132,"props":2130,"children":2131},{"style":307},[2132],{"type":50,"value":2133},"      chainIds",{"type":44,"tag":132,"props":2135,"children":2136},{"style":203},[2137],{"type":50,"value":315},{"type":44,"tag":132,"props":2139,"children":2140},{"style":307},[2141],{"type":50,"value":498},{"type":44,"tag":132,"props":2143,"children":2144},{"style":203},[2145],{"type":50,"value":246},{"type":44,"tag":132,"props":2147,"children":2148},{"style":145},[2149],{"type":50,"value":507},{"type":44,"tag":132,"props":2151,"children":2152},{"style":203},[2153],{"type":50,"value":246},{"type":44,"tag":132,"props":2155,"children":2156},{"style":307},[2157],{"type":50,"value":2158},"]",{"type":44,"tag":132,"props":2160,"children":2161},{"style":203},[2162],{"type":50,"value":351},{"type":44,"tag":132,"props":2164,"children":2165},{"class":134,"line":584},[2166,2171,2175],{"type":44,"tag":132,"props":2167,"children":2168},{"style":203},[2169],{"type":50,"value":2170},"    }",{"type":44,"tag":132,"props":2172,"children":2173},{"style":307},[2174],{"type":50,"value":577},{"type":44,"tag":132,"props":2176,"children":2177},{"style":203},[2178],{"type":50,"value":251},{"type":44,"tag":132,"props":2180,"children":2181},{"class":134,"line":593},[2182],{"type":44,"tag":132,"props":2183,"children":2184},{"emptyLinePlaceholder":257},[2185],{"type":50,"value":260},{"type":44,"tag":132,"props":2187,"children":2188},{"class":134,"line":601},[2189,2193,2197,2201,2205,2209,2213],{"type":44,"tag":132,"props":2190,"children":2191},{"style":288},[2192],{"type":50,"value":1203},{"type":44,"tag":132,"props":2194,"children":2195},{"style":307},[2196],{"type":50,"value":295},{"type":44,"tag":132,"props":2198,"children":2199},{"style":209},[2200],{"type":50,"value":903},{"type":44,"tag":132,"props":2202,"children":2203},{"style":203},[2204],{"type":50,"value":217},{"type":44,"tag":132,"props":2206,"children":2207},{"style":209},[2208],{"type":50,"value":863},{"type":44,"tag":132,"props":2210,"children":2211},{"style":307},[2212],{"type":50,"value":577},{"type":44,"tag":132,"props":2214,"children":2215},{"style":203},[2216],{"type":50,"value":251},{"type":44,"tag":132,"props":2218,"children":2219},{"class":134,"line":618},[2220,2225,2230,2234,2239,2243,2248,2252],{"type":44,"tag":132,"props":2221,"children":2222},{"style":203},[2223],{"type":50,"value":2224},"  }",{"type":44,"tag":132,"props":2226,"children":2227},{"style":197},[2228],{"type":50,"value":2229}," catch",{"type":44,"tag":132,"props":2231,"children":2232},{"style":203},[2233],{"type":50,"value":734},{"type":44,"tag":132,"props":2235,"children":2236},{"style":737},[2237],{"type":50,"value":2238},"err",{"type":44,"tag":132,"props":2240,"children":2241},{"style":203},[2242],{"type":50,"value":315},{"type":44,"tag":132,"props":2244,"children":2245},{"style":139},[2246],{"type":50,"value":2247}," any",{"type":44,"tag":132,"props":2249,"children":2250},{"style":203},[2251],{"type":50,"value":577},{"type":44,"tag":132,"props":2253,"children":2254},{"style":203},[2255],{"type":50,"value":320},{"type":44,"tag":132,"props":2257,"children":2258},{"class":134,"line":641},[2259,2264,2268,2272,2276,2280,2284,2289,2293],{"type":44,"tag":132,"props":2260,"children":2261},{"style":197},[2262],{"type":50,"value":2263},"    if",{"type":44,"tag":132,"props":2265,"children":2266},{"style":307},[2267],{"type":50,"value":734},{"type":44,"tag":132,"props":2269,"children":2270},{"style":209},[2271],{"type":50,"value":2238},{"type":44,"tag":132,"props":2273,"children":2274},{"style":203},[2275],{"type":50,"value":374},{"type":44,"tag":132,"props":2277,"children":2278},{"style":209},[2279],{"type":50,"value":81},{"type":44,"tag":132,"props":2281,"children":2282},{"style":203},[2283],{"type":50,"value":1172},{"type":44,"tag":132,"props":2285,"children":2286},{"style":1175},[2287],{"type":50,"value":2288}," 4001",{"type":44,"tag":132,"props":2290,"children":2291},{"style":307},[2292],{"type":50,"value":1183},{"type":44,"tag":132,"props":2294,"children":2295},{"style":203},[2296],{"type":50,"value":300},{"type":44,"tag":132,"props":2298,"children":2299},{"class":134,"line":663},[2300,2305,2309,2313,2318,2322,2326],{"type":44,"tag":132,"props":2301,"children":2302},{"style":288},[2303],{"type":50,"value":2304},"      showError",{"type":44,"tag":132,"props":2306,"children":2307},{"style":307},[2308],{"type":50,"value":295},{"type":44,"tag":132,"props":2310,"children":2311},{"style":203},[2312],{"type":50,"value":246},{"type":44,"tag":132,"props":2314,"children":2315},{"style":145},[2316],{"type":50,"value":2317},"Connection rejected. Click Connect to try again.",{"type":44,"tag":132,"props":2319,"children":2320},{"style":203},[2321],{"type":50,"value":246},{"type":44,"tag":132,"props":2323,"children":2324},{"style":307},[2325],{"type":50,"value":577},{"type":44,"tag":132,"props":2327,"children":2328},{"style":203},[2329],{"type":50,"value":251},{"type":44,"tag":132,"props":2331,"children":2332},{"class":134,"line":684},[2333,2338],{"type":44,"tag":132,"props":2334,"children":2335},{"style":197},[2336],{"type":50,"value":2337},"      return",{"type":44,"tag":132,"props":2339,"children":2340},{"style":203},[2341],{"type":50,"value":251},{"type":44,"tag":132,"props":2343,"children":2344},{"class":134,"line":692},[2345],{"type":44,"tag":132,"props":2346,"children":2347},{"style":203},[2348],{"type":50,"value":2349},"    }\n",{"type":44,"tag":132,"props":2351,"children":2352},{"class":134,"line":709},[2353,2357,2361,2365,2369,2373,2377,2382,2387,2391],{"type":44,"tag":132,"props":2354,"children":2355},{"style":197},[2356],{"type":50,"value":2263},{"type":44,"tag":132,"props":2358,"children":2359},{"style":307},[2360],{"type":50,"value":734},{"type":44,"tag":132,"props":2362,"children":2363},{"style":209},[2364],{"type":50,"value":2238},{"type":44,"tag":132,"props":2366,"children":2367},{"style":203},[2368],{"type":50,"value":374},{"type":44,"tag":132,"props":2370,"children":2371},{"style":209},[2372],{"type":50,"value":81},{"type":44,"tag":132,"props":2374,"children":2375},{"style":203},[2376],{"type":50,"value":1172},{"type":44,"tag":132,"props":2378,"children":2379},{"style":203},[2380],{"type":50,"value":2381}," -",{"type":44,"tag":132,"props":2383,"children":2384},{"style":1175},[2385],{"type":50,"value":2386},"32002",{"type":44,"tag":132,"props":2388,"children":2389},{"style":307},[2390],{"type":50,"value":1183},{"type":44,"tag":132,"props":2392,"children":2393},{"style":203},[2394],{"type":50,"value":300},{"type":44,"tag":132,"props":2396,"children":2397},{"class":134,"line":719},[2398,2402,2406,2410,2415,2419,2423],{"type":44,"tag":132,"props":2399,"children":2400},{"style":288},[2401],{"type":50,"value":2304},{"type":44,"tag":132,"props":2403,"children":2404},{"style":307},[2405],{"type":50,"value":295},{"type":44,"tag":132,"props":2407,"children":2408},{"style":203},[2409],{"type":50,"value":246},{"type":44,"tag":132,"props":2411,"children":2412},{"style":145},[2413],{"type":50,"value":2414},"A connection request is already pending. Check MetaMask.",{"type":44,"tag":132,"props":2416,"children":2417},{"style":203},[2418],{"type":50,"value":246},{"type":44,"tag":132,"props":2420,"children":2421},{"style":307},[2422],{"type":50,"value":577},{"type":44,"tag":132,"props":2424,"children":2425},{"style":203},[2426],{"type":50,"value":251},{"type":44,"tag":132,"props":2428,"children":2429},{"class":134,"line":765},[2430,2434],{"type":44,"tag":132,"props":2431,"children":2432},{"style":197},[2433],{"type":50,"value":2337},{"type":44,"tag":132,"props":2435,"children":2436},{"style":203},[2437],{"type":50,"value":251},{"type":44,"tag":132,"props":2439,"children":2440},{"class":134,"line":817},[2441],{"type":44,"tag":132,"props":2442,"children":2443},{"style":203},[2444],{"type":50,"value":2349},{"type":44,"tag":132,"props":2446,"children":2447},{"class":134,"line":826},[2448,2453,2457,2461,2465,2470,2475,2479,2484,2488,2492],{"type":44,"tag":132,"props":2449,"children":2450},{"style":288},[2451],{"type":50,"value":2452},"    showError",{"type":44,"tag":132,"props":2454,"children":2455},{"style":307},[2456],{"type":50,"value":295},{"type":44,"tag":132,"props":2458,"children":2459},{"style":209},[2460],{"type":50,"value":2238},{"type":44,"tag":132,"props":2462,"children":2463},{"style":203},[2464],{"type":50,"value":374},{"type":44,"tag":132,"props":2466,"children":2467},{"style":209},[2468],{"type":50,"value":2469},"message",{"type":44,"tag":132,"props":2471,"children":2472},{"style":203},[2473],{"type":50,"value":2474}," ??",{"type":44,"tag":132,"props":2476,"children":2477},{"style":203},[2478],{"type":50,"value":237},{"type":44,"tag":132,"props":2480,"children":2481},{"style":145},[2482],{"type":50,"value":2483},"Connection failed",{"type":44,"tag":132,"props":2485,"children":2486},{"style":203},[2487],{"type":50,"value":246},{"type":44,"tag":132,"props":2489,"children":2490},{"style":307},[2491],{"type":50,"value":577},{"type":44,"tag":132,"props":2493,"children":2494},{"style":203},[2495],{"type":50,"value":251},{"type":44,"tag":132,"props":2497,"children":2498},{"class":134,"line":834},[2499,2503,2508],{"type":44,"tag":132,"props":2500,"children":2501},{"style":203},[2502],{"type":50,"value":2224},{"type":44,"tag":132,"props":2504,"children":2505},{"style":197},[2506],{"type":50,"value":2507}," finally",{"type":44,"tag":132,"props":2509,"children":2510},{"style":203},[2511],{"type":50,"value":320},{"type":44,"tag":132,"props":2513,"children":2514},{"class":134,"line":879},[2515,2519,2523,2527,2531,2535,2540,2544],{"type":44,"tag":132,"props":2516,"children":2517},{"style":209},[2518],{"type":50,"value":1975},{"type":44,"tag":132,"props":2520,"children":2521},{"style":203},[2522],{"type":50,"value":374},{"type":44,"tag":132,"props":2524,"children":2525},{"style":209},[2526],{"type":50,"value":1455},{"type":44,"tag":132,"props":2528,"children":2529},{"style":203},[2530],{"type":50,"value":1460},{"type":44,"tag":132,"props":2532,"children":2533},{"style":203},[2534],{"type":50,"value":237},{"type":44,"tag":132,"props":2536,"children":2537},{"style":145},[2538],{"type":50,"value":2539},"Connect MetaMask",{"type":44,"tag":132,"props":2541,"children":2542},{"style":203},[2543],{"type":50,"value":246},{"type":44,"tag":132,"props":2545,"children":2546},{"style":203},[2547],{"type":50,"value":251},{"type":44,"tag":132,"props":2549,"children":2550},{"class":134,"line":888},[2551,2555,2559,2564,2568,2572,2576,2580,2584],{"type":44,"tag":132,"props":2552,"children":2553},{"style":209},[2554],{"type":50,"value":1975},{"type":44,"tag":132,"props":2556,"children":2557},{"style":203},[2558],{"type":50,"value":374},{"type":44,"tag":132,"props":2560,"children":2561},{"style":288},[2562],{"type":50,"value":2563},"removeAttribute",{"type":44,"tag":132,"props":2565,"children":2566},{"style":307},[2567],{"type":50,"value":295},{"type":44,"tag":132,"props":2569,"children":2570},{"style":203},[2571],{"type":50,"value":246},{"type":44,"tag":132,"props":2573,"children":2574},{"style":145},[2575],{"type":50,"value":2033},{"type":44,"tag":132,"props":2577,"children":2578},{"style":203},[2579],{"type":50,"value":246},{"type":44,"tag":132,"props":2581,"children":2582},{"style":307},[2583],{"type":50,"value":577},{"type":44,"tag":132,"props":2585,"children":2586},{"style":203},[2587],{"type":50,"value":251},{"type":44,"tag":132,"props":2589,"children":2590},{"class":134,"line":922},[2591],{"type":44,"tag":132,"props":2592,"children":2593},{"style":203},[2594],{"type":50,"value":1245},{"type":44,"tag":132,"props":2596,"children":2597},{"class":134,"line":930},[2598,2602,2606],{"type":44,"tag":132,"props":2599,"children":2600},{"style":203},[2601],{"type":50,"value":572},{"type":44,"tag":132,"props":2603,"children":2604},{"style":209},[2605],{"type":50,"value":577},{"type":44,"tag":132,"props":2607,"children":2608},{"style":203},[2609],{"type":50,"value":251},{"type":44,"tag":132,"props":2611,"children":2612},{"class":134,"line":938},[2613],{"type":44,"tag":132,"props":2614,"children":2615},{"emptyLinePlaceholder":257},[2616],{"type":50,"value":260},{"type":44,"tag":132,"props":2618,"children":2619},{"class":134,"line":959},[2620,2625,2629,2633,2637,2641,2645,2649,2653,2657,2661,2665],{"type":44,"tag":132,"props":2621,"children":2622},{"style":209},[2623],{"type":50,"value":2624},"disconnectBtn",{"type":44,"tag":132,"props":2626,"children":2627},{"style":203},[2628],{"type":50,"value":374},{"type":44,"tag":132,"props":2630,"children":2631},{"style":288},[2632],{"type":50,"value":1917},{"type":44,"tag":132,"props":2634,"children":2635},{"style":209},[2636],{"type":50,"value":295},{"type":44,"tag":132,"props":2638,"children":2639},{"style":203},[2640],{"type":50,"value":246},{"type":44,"tag":132,"props":2642,"children":2643},{"style":145},[2644],{"type":50,"value":1930},{"type":44,"tag":132,"props":2646,"children":2647},{"style":203},[2648],{"type":50,"value":246},{"type":44,"tag":132,"props":2650,"children":2651},{"style":203},[2652],{"type":50,"value":217},{"type":44,"tag":132,"props":2654,"children":2655},{"style":267},[2656],{"type":50,"value":1943},{"type":44,"tag":132,"props":2658,"children":2659},{"style":203},[2660],{"type":50,"value":1674},{"type":44,"tag":132,"props":2662,"children":2663},{"style":267},[2664],{"type":50,"value":758},{"type":44,"tag":132,"props":2666,"children":2667},{"style":203},[2668],{"type":50,"value":320},{"type":44,"tag":132,"props":2670,"children":2672},{"class":134,"line":2671},31,[2673,2678,2682,2686,2690,2694],{"type":44,"tag":132,"props":2674,"children":2675},{"style":197},[2676],{"type":50,"value":2677},"  await",{"type":44,"tag":132,"props":2679,"children":2680},{"style":209},[2681],{"type":50,"value":1047},{"type":44,"tag":132,"props":2683,"children":2684},{"style":203},[2685],{"type":50,"value":374},{"type":44,"tag":132,"props":2687,"children":2688},{"style":288},[2689],{"type":50,"value":1661},{"type":44,"tag":132,"props":2691,"children":2692},{"style":307},[2693],{"type":50,"value":1061},{"type":44,"tag":132,"props":2695,"children":2696},{"style":203},[2697],{"type":50,"value":251},{"type":44,"tag":132,"props":2699,"children":2701},{"class":134,"line":2700},32,[2702,2706,2710,2714,2718,2722],{"type":44,"tag":132,"props":2703,"children":2704},{"style":288},[2705],{"type":50,"value":1253},{"type":44,"tag":132,"props":2707,"children":2708},{"style":307},[2709],{"type":50,"value":1208},{"type":44,"tag":132,"props":2711,"children":2712},{"style":203},[2713],{"type":50,"value":217},{"type":44,"tag":132,"props":2715,"children":2716},{"style":203},[2717],{"type":50,"value":1217},{"type":44,"tag":132,"props":2719,"children":2720},{"style":307},[2721],{"type":50,"value":577},{"type":44,"tag":132,"props":2723,"children":2724},{"style":203},[2725],{"type":50,"value":251},{"type":44,"tag":132,"props":2727,"children":2729},{"class":134,"line":2728},33,[2730,2734,2738],{"type":44,"tag":132,"props":2731,"children":2732},{"style":203},[2733],{"type":50,"value":572},{"type":44,"tag":132,"props":2735,"children":2736},{"style":209},[2737],{"type":50,"value":577},{"type":44,"tag":132,"props":2739,"children":2740},{"style":203},[2741],{"type":50,"value":251},{"type":44,"tag":132,"props":2743,"children":2745},{"class":134,"line":2744},34,[2746],{"type":44,"tag":132,"props":2747,"children":2748},{"emptyLinePlaceholder":257},[2749],{"type":50,"value":260},{"type":44,"tag":132,"props":2751,"children":2753},{"class":134,"line":2752},35,[2754,2759,2764,2768,2772,2776,2780,2784,2788,2792,2796,2800,2805,2809,2813],{"type":44,"tag":132,"props":2755,"children":2756},{"style":267},[2757],{"type":50,"value":2758},"function",{"type":44,"tag":132,"props":2760,"children":2761},{"style":288},[2762],{"type":50,"value":2763}," updateUI",{"type":44,"tag":132,"props":2765,"children":2766},{"style":203},[2767],{"type":50,"value":295},{"type":44,"tag":132,"props":2769,"children":2770},{"style":737},[2771],{"type":50,"value":903},{"type":44,"tag":132,"props":2773,"children":2774},{"style":203},[2775],{"type":50,"value":315},{"type":44,"tag":132,"props":2777,"children":2778},{"style":139},[2779],{"type":50,"value":749},{"type":44,"tag":132,"props":2781,"children":2782},{"style":209},[2783],{"type":50,"value":1130},{"type":44,"tag":132,"props":2785,"children":2786},{"style":203},[2787],{"type":50,"value":217},{"type":44,"tag":132,"props":2789,"children":2790},{"style":737},[2791],{"type":50,"value":863},{"type":44,"tag":132,"props":2793,"children":2794},{"style":203},[2795],{"type":50,"value":315},{"type":44,"tag":132,"props":2797,"children":2798},{"style":139},[2799],{"type":50,"value":749},{"type":44,"tag":132,"props":2801,"children":2802},{"style":203},[2803],{"type":50,"value":2804}," |",{"type":44,"tag":132,"props":2806,"children":2807},{"style":139},[2808],{"type":50,"value":1217},{"type":44,"tag":132,"props":2810,"children":2811},{"style":203},[2812],{"type":50,"value":577},{"type":44,"tag":132,"props":2814,"children":2815},{"style":203},[2816],{"type":50,"value":320},{"type":44,"tag":132,"props":2818,"children":2820},{"class":134,"line":2819},36,[2821,2825,2830,2834,2838,2842,2846,2850,2854,2858,2862,2866],{"type":44,"tag":132,"props":2822,"children":2823},{"style":267},[2824],{"type":50,"value":1504},{"type":44,"tag":132,"props":2826,"children":2827},{"style":209},[2828],{"type":50,"value":2829}," accountEl",{"type":44,"tag":132,"props":2831,"children":2832},{"style":203},[2833],{"type":50,"value":1460},{"type":44,"tag":132,"props":2835,"children":2836},{"style":209},[2837],{"type":50,"value":1518},{"type":44,"tag":132,"props":2839,"children":2840},{"style":203},[2841],{"type":50,"value":374},{"type":44,"tag":132,"props":2843,"children":2844},{"style":288},[2845],{"type":50,"value":1424},{"type":44,"tag":132,"props":2847,"children":2848},{"style":307},[2849],{"type":50,"value":295},{"type":44,"tag":132,"props":2851,"children":2852},{"style":203},[2853],{"type":50,"value":246},{"type":44,"tag":132,"props":2855,"children":2856},{"style":145},[2857],{"type":50,"value":1539},{"type":44,"tag":132,"props":2859,"children":2860},{"style":203},[2861],{"type":50,"value":246},{"type":44,"tag":132,"props":2863,"children":2864},{"style":307},[2865],{"type":50,"value":577},{"type":44,"tag":132,"props":2867,"children":2868},{"style":203},[2869],{"type":50,"value":1840},{"type":44,"tag":132,"props":2871,"children":2873},{"class":134,"line":2872},37,[2874,2878,2883,2887,2891,2895,2899,2903,2907,2911,2915,2919],{"type":44,"tag":132,"props":2875,"children":2876},{"style":267},[2877],{"type":50,"value":1504},{"type":44,"tag":132,"props":2879,"children":2880},{"style":209},[2881],{"type":50,"value":2882}," chainEl",{"type":44,"tag":132,"props":2884,"children":2885},{"style":203},[2886],{"type":50,"value":1460},{"type":44,"tag":132,"props":2888,"children":2889},{"style":209},[2890],{"type":50,"value":1518},{"type":44,"tag":132,"props":2892,"children":2893},{"style":203},[2894],{"type":50,"value":374},{"type":44,"tag":132,"props":2896,"children":2897},{"style":288},[2898],{"type":50,"value":1424},{"type":44,"tag":132,"props":2900,"children":2901},{"style":307},[2902],{"type":50,"value":295},{"type":44,"tag":132,"props":2904,"children":2905},{"style":203},[2906],{"type":50,"value":246},{"type":44,"tag":132,"props":2908,"children":2909},{"style":145},[2910],{"type":50,"value":1437},{"type":44,"tag":132,"props":2912,"children":2913},{"style":203},[2914],{"type":50,"value":246},{"type":44,"tag":132,"props":2916,"children":2917},{"style":307},[2918],{"type":50,"value":577},{"type":44,"tag":132,"props":2920,"children":2921},{"style":203},[2922],{"type":50,"value":1840},{"type":44,"tag":132,"props":2924,"children":2926},{"class":134,"line":2925},38,[2927,2931,2936,2940,2944,2948,2952,2956,2960,2965,2969,2973],{"type":44,"tag":132,"props":2928,"children":2929},{"style":267},[2930],{"type":50,"value":1504},{"type":44,"tag":132,"props":2932,"children":2933},{"style":209},[2934],{"type":50,"value":2935}," connectedSection",{"type":44,"tag":132,"props":2937,"children":2938},{"style":203},[2939],{"type":50,"value":1460},{"type":44,"tag":132,"props":2941,"children":2942},{"style":209},[2943],{"type":50,"value":1518},{"type":44,"tag":132,"props":2945,"children":2946},{"style":203},[2947],{"type":50,"value":374},{"type":44,"tag":132,"props":2949,"children":2950},{"style":288},[2951],{"type":50,"value":1424},{"type":44,"tag":132,"props":2953,"children":2954},{"style":307},[2955],{"type":50,"value":295},{"type":44,"tag":132,"props":2957,"children":2958},{"style":203},[2959],{"type":50,"value":246},{"type":44,"tag":132,"props":2961,"children":2962},{"style":145},[2963],{"type":50,"value":2964},"connected",{"type":44,"tag":132,"props":2966,"children":2967},{"style":203},[2968],{"type":50,"value":246},{"type":44,"tag":132,"props":2970,"children":2971},{"style":307},[2972],{"type":50,"value":577},{"type":44,"tag":132,"props":2974,"children":2975},{"style":203},[2976],{"type":50,"value":1840},{"type":44,"tag":132,"props":2978,"children":2980},{"class":134,"line":2979},39,[2981],{"type":44,"tag":132,"props":2982,"children":2983},{"emptyLinePlaceholder":257},[2984],{"type":50,"value":260},{"type":44,"tag":132,"props":2986,"children":2988},{"class":134,"line":2987},40,[2989,2993,2997,3001,3005,3009,3013,3017,3021],{"type":44,"tag":132,"props":2990,"children":2991},{"style":197},[2992],{"type":50,"value":1150},{"type":44,"tag":132,"props":2994,"children":2995},{"style":307},[2996],{"type":50,"value":734},{"type":44,"tag":132,"props":2998,"children":2999},{"style":209},[3000],{"type":50,"value":903},{"type":44,"tag":132,"props":3002,"children":3003},{"style":203},[3004],{"type":50,"value":374},{"type":44,"tag":132,"props":3006,"children":3007},{"style":209},[3008],{"type":50,"value":1167},{"type":44,"tag":132,"props":3010,"children":3011},{"style":203},[3012],{"type":50,"value":1172},{"type":44,"tag":132,"props":3014,"children":3015},{"style":1175},[3016],{"type":50,"value":1178},{"type":44,"tag":132,"props":3018,"children":3019},{"style":307},[3020],{"type":50,"value":1183},{"type":44,"tag":132,"props":3022,"children":3023},{"style":203},[3024],{"type":50,"value":300},{"type":44,"tag":132,"props":3026,"children":3028},{"class":134,"line":3027},41,[3029,3034,3038,3043,3047,3052,3056,3060,3065,3069],{"type":44,"tag":132,"props":3030,"children":3031},{"style":209},[3032],{"type":50,"value":3033},"    connectedSection",{"type":44,"tag":132,"props":3035,"children":3036},{"style":203},[3037],{"type":50,"value":374},{"type":44,"tag":132,"props":3039,"children":3040},{"style":209},[3041],{"type":50,"value":3042},"style",{"type":44,"tag":132,"props":3044,"children":3045},{"style":203},[3046],{"type":50,"value":374},{"type":44,"tag":132,"props":3048,"children":3049},{"style":209},[3050],{"type":50,"value":3051},"display",{"type":44,"tag":132,"props":3053,"children":3054},{"style":203},[3055],{"type":50,"value":1460},{"type":44,"tag":132,"props":3057,"children":3058},{"style":203},[3059],{"type":50,"value":237},{"type":44,"tag":132,"props":3061,"children":3062},{"style":145},[3063],{"type":50,"value":3064},"none",{"type":44,"tag":132,"props":3066,"children":3067},{"style":203},[3068],{"type":50,"value":246},{"type":44,"tag":132,"props":3070,"children":3071},{"style":203},[3072],{"type":50,"value":251},{"type":44,"tag":132,"props":3074,"children":3076},{"class":134,"line":3075},42,[3077,3081,3085,3089,3093,3097,3101,3105,3110,3114],{"type":44,"tag":132,"props":3078,"children":3079},{"style":209},[3080],{"type":50,"value":1975},{"type":44,"tag":132,"props":3082,"children":3083},{"style":203},[3084],{"type":50,"value":374},{"type":44,"tag":132,"props":3086,"children":3087},{"style":209},[3088],{"type":50,"value":3042},{"type":44,"tag":132,"props":3090,"children":3091},{"style":203},[3092],{"type":50,"value":374},{"type":44,"tag":132,"props":3094,"children":3095},{"style":209},[3096],{"type":50,"value":3051},{"type":44,"tag":132,"props":3098,"children":3099},{"style":203},[3100],{"type":50,"value":1460},{"type":44,"tag":132,"props":3102,"children":3103},{"style":203},[3104],{"type":50,"value":237},{"type":44,"tag":132,"props":3106,"children":3107},{"style":145},[3108],{"type":50,"value":3109},"block",{"type":44,"tag":132,"props":3111,"children":3112},{"style":203},[3113],{"type":50,"value":246},{"type":44,"tag":132,"props":3115,"children":3116},{"style":203},[3117],{"type":50,"value":251},{"type":44,"tag":132,"props":3119,"children":3121},{"class":134,"line":3120},43,[3122,3126],{"type":44,"tag":132,"props":3123,"children":3124},{"style":197},[3125],{"type":50,"value":1233},{"type":44,"tag":132,"props":3127,"children":3128},{"style":203},[3129],{"type":50,"value":251},{"type":44,"tag":132,"props":3131,"children":3133},{"class":134,"line":3132},44,[3134],{"type":44,"tag":132,"props":3135,"children":3136},{"style":203},[3137],{"type":50,"value":1245},{"type":44,"tag":132,"props":3139,"children":3141},{"class":134,"line":3140},45,[3142],{"type":44,"tag":132,"props":3143,"children":3144},{"emptyLinePlaceholder":257},[3145],{"type":50,"value":260},{"type":44,"tag":132,"props":3147,"children":3149},{"class":134,"line":3148},46,[3150,3155,3159,3163,3167,3171,3176,3180,3185,3189,3193,3197],{"type":44,"tag":132,"props":3151,"children":3152},{"style":209},[3153],{"type":50,"value":3154},"  accountEl",{"type":44,"tag":132,"props":3156,"children":3157},{"style":203},[3158],{"type":50,"value":374},{"type":44,"tag":132,"props":3160,"children":3161},{"style":209},[3162],{"type":50,"value":1455},{"type":44,"tag":132,"props":3164,"children":3165},{"style":203},[3166],{"type":50,"value":1460},{"type":44,"tag":132,"props":3168,"children":3169},{"style":203},[3170],{"type":50,"value":1465},{"type":44,"tag":132,"props":3172,"children":3173},{"style":145},[3174],{"type":50,"value":3175},"Account: ",{"type":44,"tag":132,"props":3177,"children":3178},{"style":203},[3179],{"type":50,"value":1475},{"type":44,"tag":132,"props":3181,"children":3182},{"style":209},[3183],{"type":50,"value":3184},"accounts[",{"type":44,"tag":132,"props":3186,"children":3187},{"style":1175},[3188],{"type":50,"value":1303},{"type":44,"tag":132,"props":3190,"children":3191},{"style":209},[3192],{"type":50,"value":2158},{"type":44,"tag":132,"props":3194,"children":3195},{"style":203},[3196],{"type":50,"value":1484},{"type":44,"tag":132,"props":3198,"children":3199},{"style":203},[3200],{"type":50,"value":251},{"type":44,"tag":132,"props":3202,"children":3204},{"class":134,"line":3203},47,[3205,3209,3213,3217,3221,3225,3229,3233,3237,3241,3245],{"type":44,"tag":132,"props":3206,"children":3207},{"style":209},[3208],{"type":50,"value":3154},{"type":44,"tag":132,"props":3210,"children":3211},{"style":203},[3212],{"type":50,"value":374},{"type":44,"tag":132,"props":3214,"children":3215},{"style":209},[3216],{"type":50,"value":1557},{"type":44,"tag":132,"props":3218,"children":3219},{"style":203},[3220],{"type":50,"value":374},{"type":44,"tag":132,"props":3222,"children":3223},{"style":209},[3224],{"type":50,"value":1566},{"type":44,"tag":132,"props":3226,"children":3227},{"style":203},[3228],{"type":50,"value":1460},{"type":44,"tag":132,"props":3230,"children":3231},{"style":209},[3232],{"type":50,"value":854},{"type":44,"tag":132,"props":3234,"children":3235},{"style":307},[3236],{"type":50,"value":1298},{"type":44,"tag":132,"props":3238,"children":3239},{"style":1175},[3240],{"type":50,"value":1303},{"type":44,"tag":132,"props":3242,"children":3243},{"style":307},[3244],{"type":50,"value":2158},{"type":44,"tag":132,"props":3246,"children":3247},{"style":203},[3248],{"type":50,"value":251},{"type":44,"tag":132,"props":3250,"children":3252},{"class":134,"line":3251},48,[3253,3257,3261,3265,3269,3274,3278,3282,3286,3290,3294,3298,3302,3306],{"type":44,"tag":132,"props":3254,"children":3255},{"style":197},[3256],{"type":50,"value":1150},{"type":44,"tag":132,"props":3258,"children":3259},{"style":307},[3260],{"type":50,"value":734},{"type":44,"tag":132,"props":3262,"children":3263},{"style":209},[3264],{"type":50,"value":1379},{"type":44,"tag":132,"props":3266,"children":3267},{"style":307},[3268],{"type":50,"value":1183},{"type":44,"tag":132,"props":3270,"children":3271},{"style":209},[3272],{"type":50,"value":3273},"chainEl",{"type":44,"tag":132,"props":3275,"children":3276},{"style":203},[3277],{"type":50,"value":374},{"type":44,"tag":132,"props":3279,"children":3280},{"style":209},[3281],{"type":50,"value":1455},{"type":44,"tag":132,"props":3283,"children":3284},{"style":203},[3285],{"type":50,"value":1460},{"type":44,"tag":132,"props":3287,"children":3288},{"style":203},[3289],{"type":50,"value":1465},{"type":44,"tag":132,"props":3291,"children":3292},{"style":145},[3293],{"type":50,"value":1470},{"type":44,"tag":132,"props":3295,"children":3296},{"style":203},[3297],{"type":50,"value":1475},{"type":44,"tag":132,"props":3299,"children":3300},{"style":209},[3301],{"type":50,"value":1379},{"type":44,"tag":132,"props":3303,"children":3304},{"style":203},[3305],{"type":50,"value":1484},{"type":44,"tag":132,"props":3307,"children":3308},{"style":203},[3309],{"type":50,"value":251},{"type":44,"tag":132,"props":3311,"children":3313},{"class":134,"line":3312},49,[3314,3319,3323,3327,3331,3335,3339,3343,3347,3351],{"type":44,"tag":132,"props":3315,"children":3316},{"style":209},[3317],{"type":50,"value":3318},"  connectedSection",{"type":44,"tag":132,"props":3320,"children":3321},{"style":203},[3322],{"type":50,"value":374},{"type":44,"tag":132,"props":3324,"children":3325},{"style":209},[3326],{"type":50,"value":3042},{"type":44,"tag":132,"props":3328,"children":3329},{"style":203},[3330],{"type":50,"value":374},{"type":44,"tag":132,"props":3332,"children":3333},{"style":209},[3334],{"type":50,"value":3051},{"type":44,"tag":132,"props":3336,"children":3337},{"style":203},[3338],{"type":50,"value":1460},{"type":44,"tag":132,"props":3340,"children":3341},{"style":203},[3342],{"type":50,"value":237},{"type":44,"tag":132,"props":3344,"children":3345},{"style":145},[3346],{"type":50,"value":3109},{"type":44,"tag":132,"props":3348,"children":3349},{"style":203},[3350],{"type":50,"value":246},{"type":44,"tag":132,"props":3352,"children":3353},{"style":203},[3354],{"type":50,"value":251},{"type":44,"tag":132,"props":3356,"children":3358},{"class":134,"line":3357},50,[3359,3364,3368,3372,3376,3380,3384,3388,3392,3396],{"type":44,"tag":132,"props":3360,"children":3361},{"style":209},[3362],{"type":50,"value":3363},"  connectBtn",{"type":44,"tag":132,"props":3365,"children":3366},{"style":203},[3367],{"type":50,"value":374},{"type":44,"tag":132,"props":3369,"children":3370},{"style":209},[3371],{"type":50,"value":3042},{"type":44,"tag":132,"props":3373,"children":3374},{"style":203},[3375],{"type":50,"value":374},{"type":44,"tag":132,"props":3377,"children":3378},{"style":209},[3379],{"type":50,"value":3051},{"type":44,"tag":132,"props":3381,"children":3382},{"style":203},[3383],{"type":50,"value":1460},{"type":44,"tag":132,"props":3385,"children":3386},{"style":203},[3387],{"type":50,"value":237},{"type":44,"tag":132,"props":3389,"children":3390},{"style":145},[3391],{"type":50,"value":3064},{"type":44,"tag":132,"props":3393,"children":3394},{"style":203},[3395],{"type":50,"value":246},{"type":44,"tag":132,"props":3397,"children":3398},{"style":203},[3399],{"type":50,"value":251},{"type":44,"tag":132,"props":3401,"children":3403},{"class":134,"line":3402},51,[3404],{"type":44,"tag":132,"props":3405,"children":3406},{"style":203},[3407],{"type":50,"value":3408},"}\n",{"type":44,"tag":132,"props":3410,"children":3412},{"class":134,"line":3411},52,[3413],{"type":44,"tag":132,"props":3414,"children":3415},{"emptyLinePlaceholder":257},[3416],{"type":50,"value":260},{"type":44,"tag":132,"props":3418,"children":3420},{"class":134,"line":3419},53,[3421,3425,3430,3434,3438,3442,3446,3450],{"type":44,"tag":132,"props":3422,"children":3423},{"style":267},[3424],{"type":50,"value":2758},{"type":44,"tag":132,"props":3426,"children":3427},{"style":288},[3428],{"type":50,"value":3429}," showError",{"type":44,"tag":132,"props":3431,"children":3432},{"style":203},[3433],{"type":50,"value":295},{"type":44,"tag":132,"props":3435,"children":3436},{"style":737},[3437],{"type":50,"value":2469},{"type":44,"tag":132,"props":3439,"children":3440},{"style":203},[3441],{"type":50,"value":315},{"type":44,"tag":132,"props":3443,"children":3444},{"style":139},[3445],{"type":50,"value":749},{"type":44,"tag":132,"props":3447,"children":3448},{"style":203},[3449],{"type":50,"value":577},{"type":44,"tag":132,"props":3451,"children":3452},{"style":203},[3453],{"type":50,"value":320},{"type":44,"tag":132,"props":3455,"children":3457},{"class":134,"line":3456},54,[3458,3462,3467,3471,3475,3479,3483,3487,3491,3496,3500,3504],{"type":44,"tag":132,"props":3459,"children":3460},{"style":267},[3461],{"type":50,"value":1504},{"type":44,"tag":132,"props":3463,"children":3464},{"style":209},[3465],{"type":50,"value":3466}," errorEl",{"type":44,"tag":132,"props":3468,"children":3469},{"style":203},[3470],{"type":50,"value":1460},{"type":44,"tag":132,"props":3472,"children":3473},{"style":209},[3474],{"type":50,"value":1518},{"type":44,"tag":132,"props":3476,"children":3477},{"style":203},[3478],{"type":50,"value":374},{"type":44,"tag":132,"props":3480,"children":3481},{"style":288},[3482],{"type":50,"value":1424},{"type":44,"tag":132,"props":3484,"children":3485},{"style":307},[3486],{"type":50,"value":295},{"type":44,"tag":132,"props":3488,"children":3489},{"style":203},[3490],{"type":50,"value":246},{"type":44,"tag":132,"props":3492,"children":3493},{"style":145},[3494],{"type":50,"value":3495},"error",{"type":44,"tag":132,"props":3497,"children":3498},{"style":203},[3499],{"type":50,"value":246},{"type":44,"tag":132,"props":3501,"children":3502},{"style":307},[3503],{"type":50,"value":577},{"type":44,"tag":132,"props":3505,"children":3506},{"style":203},[3507],{"type":50,"value":1840},{"type":44,"tag":132,"props":3509,"children":3511},{"class":134,"line":3510},55,[3512,3517,3521,3525,3529,3534],{"type":44,"tag":132,"props":3513,"children":3514},{"style":209},[3515],{"type":50,"value":3516},"  errorEl",{"type":44,"tag":132,"props":3518,"children":3519},{"style":203},[3520],{"type":50,"value":374},{"type":44,"tag":132,"props":3522,"children":3523},{"style":209},[3524],{"type":50,"value":1455},{"type":44,"tag":132,"props":3526,"children":3527},{"style":203},[3528],{"type":50,"value":1460},{"type":44,"tag":132,"props":3530,"children":3531},{"style":209},[3532],{"type":50,"value":3533}," message",{"type":44,"tag":132,"props":3535,"children":3536},{"style":203},[3537],{"type":50,"value":251},{"type":44,"tag":132,"props":3539,"children":3541},{"class":134,"line":3540},56,[3542,3547,3551,3555,3559,3563,3567,3571,3575,3579,3584,3589,3594,3599,3603],{"type":44,"tag":132,"props":3543,"children":3544},{"style":288},[3545],{"type":50,"value":3546},"  setTimeout",{"type":44,"tag":132,"props":3548,"children":3549},{"style":307},[3550],{"type":50,"value":295},{"type":44,"tag":132,"props":3552,"children":3553},{"style":203},[3554],{"type":50,"value":1061},{"type":44,"tag":132,"props":3556,"children":3557},{"style":267},[3558],{"type":50,"value":758},{"type":44,"tag":132,"props":3560,"children":3561},{"style":203},[3562],{"type":50,"value":206},{"type":44,"tag":132,"props":3564,"children":3565},{"style":209},[3566],{"type":50,"value":3466},{"type":44,"tag":132,"props":3568,"children":3569},{"style":203},[3570],{"type":50,"value":374},{"type":44,"tag":132,"props":3572,"children":3573},{"style":209},[3574],{"type":50,"value":1455},{"type":44,"tag":132,"props":3576,"children":3577},{"style":203},[3578],{"type":50,"value":1460},{"type":44,"tag":132,"props":3580,"children":3581},{"style":203},[3582],{"type":50,"value":3583}," ''",{"type":44,"tag":132,"props":3585,"children":3586},{"style":203},[3587],{"type":50,"value":3588},";",{"type":44,"tag":132,"props":3590,"children":3591},{"style":203},[3592],{"type":50,"value":3593}," },",{"type":44,"tag":132,"props":3595,"children":3596},{"style":1175},[3597],{"type":50,"value":3598}," 5000",{"type":44,"tag":132,"props":3600,"children":3601},{"style":307},[3602],{"type":50,"value":577},{"type":44,"tag":132,"props":3604,"children":3605},{"style":203},[3606],{"type":50,"value":251},{"type":44,"tag":132,"props":3608,"children":3610},{"class":134,"line":3609},57,[3611],{"type":44,"tag":132,"props":3612,"children":3613},{"style":203},[3614],{"type":50,"value":3408},{"type":44,"tag":114,"props":3616,"children":3618},{"id":3617},"step-5-make-rpc-calls-via-providerrequest",[3619],{"type":50,"value":3620},"Step 5: Make RPC calls via provider.request",{"type":44,"tag":121,"props":3622,"children":3624},{"className":186,"code":3623,"language":14,"meta":126,"style":126},"const provider = client.getProvider();\n\n\u002F\u002F Cached\u002Fintercepted reads — safe before connect (no chain selection needed)\nconst chainId = await provider.request({ method: 'eth_chainId' });\nconst accounts = await provider.request({ method: 'eth_accounts' });\n\n\u002F\u002F Node-routed reads need a SELECTED chain — they throw `No chain ID selected`\n\u002F\u002F until after connect() (or a restored session). Call these post-connect.\nconst blockNumber = await provider.request({ method: 'eth_blockNumber' });\n\nasync function fetchBalance(address: string) {\n  const wei = await provider.request({\n    method: 'eth_getBalance',\n    params: [address, 'latest'],\n  }) as string;\n\n  const ethBalance = parseInt(wei, 16) \u002F 1e18;\n  document.getElementById('balance')!.textContent =\n    `Balance: ${ethBalance.toFixed(6)} ETH`;\n}\n\n\u002F\u002F Get gas price\nconst gasPrice = await provider.request({ method: 'eth_gasPrice' });\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\u002F\u002F Call a contract (read-only)\nconst result = await provider.request({\n  method: 'eth_call',\n  params: [\n    {\n      to: '0xContractAddress',\n      data: '0xEncodedFunctionSelector',\n    },\n    'latest',\n  ],\n});\n",[3625],{"type":44,"tag":81,"props":3626,"children":3627},{"__ignoreMap":126},[3628,3663,3670,3678,3754,3827,3834,3842,3850,3923,3930,3972,4012,4041,4086,4110,4117,4174,4223,4285,4292,4299,4307,4380,4387,4395,4435,4464,4513,4528,4535,4543,4583,4611,4627,4635,4664,4693,4700,4720,4732],{"type":44,"tag":132,"props":3629,"children":3630},{"class":134,"line":135},[3631,3635,3639,3643,3647,3651,3655,3659],{"type":44,"tag":132,"props":3632,"children":3633},{"style":267},[3634],{"type":50,"value":270},{"type":44,"tag":132,"props":3636,"children":3637},{"style":209},[3638],{"type":50,"value":1038},{"type":44,"tag":132,"props":3640,"children":3641},{"style":203},[3642],{"type":50,"value":280},{"type":44,"tag":132,"props":3644,"children":3645},{"style":209},[3646],{"type":50,"value":1047},{"type":44,"tag":132,"props":3648,"children":3649},{"style":203},[3650],{"type":50,"value":374},{"type":44,"tag":132,"props":3652,"children":3653},{"style":288},[3654],{"type":50,"value":1056},{"type":44,"tag":132,"props":3656,"children":3657},{"style":209},[3658],{"type":50,"value":1061},{"type":44,"tag":132,"props":3660,"children":3661},{"style":203},[3662],{"type":50,"value":251},{"type":44,"tag":132,"props":3664,"children":3665},{"class":134,"line":28},[3666],{"type":44,"tag":132,"props":3667,"children":3668},{"emptyLinePlaceholder":257},[3669],{"type":50,"value":260},{"type":44,"tag":132,"props":3671,"children":3672},{"class":134,"line":263},[3673],{"type":44,"tag":132,"props":3674,"children":3675},{"style":713},[3676],{"type":50,"value":3677},"\u002F\u002F Cached\u002Fintercepted reads — safe before connect (no chain selection needed)\n",{"type":44,"tag":132,"props":3679,"children":3680},{"class":134,"line":303},[3681,3685,3690,3694,3698,3703,3707,3712,3716,3720,3725,3729,3733,3738,3742,3746,3750],{"type":44,"tag":132,"props":3682,"children":3683},{"style":267},[3684],{"type":50,"value":270},{"type":44,"tag":132,"props":3686,"children":3687},{"style":209},[3688],{"type":50,"value":3689}," chainId ",{"type":44,"tag":132,"props":3691,"children":3692},{"style":203},[3693],{"type":50,"value":280},{"type":44,"tag":132,"props":3695,"children":3696},{"style":197},[3697],{"type":50,"value":285},{"type":44,"tag":132,"props":3699,"children":3700},{"style":209},[3701],{"type":50,"value":3702}," provider",{"type":44,"tag":132,"props":3704,"children":3705},{"style":203},[3706],{"type":50,"value":374},{"type":44,"tag":132,"props":3708,"children":3709},{"style":288},[3710],{"type":50,"value":3711},"request",{"type":44,"tag":132,"props":3713,"children":3714},{"style":209},[3715],{"type":50,"value":295},{"type":44,"tag":132,"props":3717,"children":3718},{"style":203},[3719],{"type":50,"value":458},{"type":44,"tag":132,"props":3721,"children":3722},{"style":307},[3723],{"type":50,"value":3724}," method",{"type":44,"tag":132,"props":3726,"children":3727},{"style":203},[3728],{"type":50,"value":315},{"type":44,"tag":132,"props":3730,"children":3731},{"style":203},[3732],{"type":50,"value":237},{"type":44,"tag":132,"props":3734,"children":3735},{"style":145},[3736],{"type":50,"value":3737},"eth_chainId",{"type":44,"tag":132,"props":3739,"children":3740},{"style":203},[3741],{"type":50,"value":246},{"type":44,"tag":132,"props":3743,"children":3744},{"style":203},[3745],{"type":50,"value":227},{"type":44,"tag":132,"props":3747,"children":3748},{"style":209},[3749],{"type":50,"value":577},{"type":44,"tag":132,"props":3751,"children":3752},{"style":203},[3753],{"type":50,"value":251},{"type":44,"tag":132,"props":3755,"children":3756},{"class":134,"line":323},[3757,3761,3766,3770,3774,3778,3782,3786,3790,3794,3798,3802,3806,3811,3815,3819,3823],{"type":44,"tag":132,"props":3758,"children":3759},{"style":267},[3760],{"type":50,"value":270},{"type":44,"tag":132,"props":3762,"children":3763},{"style":209},[3764],{"type":50,"value":3765}," accounts ",{"type":44,"tag":132,"props":3767,"children":3768},{"style":203},[3769],{"type":50,"value":280},{"type":44,"tag":132,"props":3771,"children":3772},{"style":197},[3773],{"type":50,"value":285},{"type":44,"tag":132,"props":3775,"children":3776},{"style":209},[3777],{"type":50,"value":3702},{"type":44,"tag":132,"props":3779,"children":3780},{"style":203},[3781],{"type":50,"value":374},{"type":44,"tag":132,"props":3783,"children":3784},{"style":288},[3785],{"type":50,"value":3711},{"type":44,"tag":132,"props":3787,"children":3788},{"style":209},[3789],{"type":50,"value":295},{"type":44,"tag":132,"props":3791,"children":3792},{"style":203},[3793],{"type":50,"value":458},{"type":44,"tag":132,"props":3795,"children":3796},{"style":307},[3797],{"type":50,"value":3724},{"type":44,"tag":132,"props":3799,"children":3800},{"style":203},[3801],{"type":50,"value":315},{"type":44,"tag":132,"props":3803,"children":3804},{"style":203},[3805],{"type":50,"value":237},{"type":44,"tag":132,"props":3807,"children":3808},{"style":145},[3809],{"type":50,"value":3810},"eth_accounts",{"type":44,"tag":132,"props":3812,"children":3813},{"style":203},[3814],{"type":50,"value":246},{"type":44,"tag":132,"props":3816,"children":3817},{"style":203},[3818],{"type":50,"value":227},{"type":44,"tag":132,"props":3820,"children":3821},{"style":209},[3822],{"type":50,"value":577},{"type":44,"tag":132,"props":3824,"children":3825},{"style":203},[3826],{"type":50,"value":251},{"type":44,"tag":132,"props":3828,"children":3829},{"class":134,"line":354},[3830],{"type":44,"tag":132,"props":3831,"children":3832},{"emptyLinePlaceholder":257},[3833],{"type":50,"value":260},{"type":44,"tag":132,"props":3835,"children":3836},{"class":134,"line":395},[3837],{"type":44,"tag":132,"props":3838,"children":3839},{"style":713},[3840],{"type":50,"value":3841},"\u002F\u002F Node-routed reads need a SELECTED chain — they throw `No chain ID selected`\n",{"type":44,"tag":132,"props":3843,"children":3844},{"class":134,"line":404},[3845],{"type":44,"tag":132,"props":3846,"children":3847},{"style":713},[3848],{"type":50,"value":3849},"\u002F\u002F until after connect() (or a restored session). Call these post-connect.\n",{"type":44,"tag":132,"props":3851,"children":3852},{"class":134,"line":421},[3853,3857,3862,3866,3870,3874,3878,3882,3886,3890,3894,3898,3902,3907,3911,3915,3919],{"type":44,"tag":132,"props":3854,"children":3855},{"style":267},[3856],{"type":50,"value":270},{"type":44,"tag":132,"props":3858,"children":3859},{"style":209},[3860],{"type":50,"value":3861}," blockNumber ",{"type":44,"tag":132,"props":3863,"children":3864},{"style":203},[3865],{"type":50,"value":280},{"type":44,"tag":132,"props":3867,"children":3868},{"style":197},[3869],{"type":50,"value":285},{"type":44,"tag":132,"props":3871,"children":3872},{"style":209},[3873],{"type":50,"value":3702},{"type":44,"tag":132,"props":3875,"children":3876},{"style":203},[3877],{"type":50,"value":374},{"type":44,"tag":132,"props":3879,"children":3880},{"style":288},[3881],{"type":50,"value":3711},{"type":44,"tag":132,"props":3883,"children":3884},{"style":209},[3885],{"type":50,"value":295},{"type":44,"tag":132,"props":3887,"children":3888},{"style":203},[3889],{"type":50,"value":458},{"type":44,"tag":132,"props":3891,"children":3892},{"style":307},[3893],{"type":50,"value":3724},{"type":44,"tag":132,"props":3895,"children":3896},{"style":203},[3897],{"type":50,"value":315},{"type":44,"tag":132,"props":3899,"children":3900},{"style":203},[3901],{"type":50,"value":237},{"type":44,"tag":132,"props":3903,"children":3904},{"style":145},[3905],{"type":50,"value":3906},"eth_blockNumber",{"type":44,"tag":132,"props":3908,"children":3909},{"style":203},[3910],{"type":50,"value":246},{"type":44,"tag":132,"props":3912,"children":3913},{"style":203},[3914],{"type":50,"value":227},{"type":44,"tag":132,"props":3916,"children":3917},{"style":209},[3918],{"type":50,"value":577},{"type":44,"tag":132,"props":3920,"children":3921},{"style":203},[3922],{"type":50,"value":251},{"type":44,"tag":132,"props":3924,"children":3925},{"class":134,"line":438},[3926],{"type":44,"tag":132,"props":3927,"children":3928},{"emptyLinePlaceholder":257},[3929],{"type":50,"value":260},{"type":44,"tag":132,"props":3931,"children":3932},{"class":134,"line":584},[3933,3938,3943,3948,3952,3956,3960,3964,3968],{"type":44,"tag":132,"props":3934,"children":3935},{"style":267},[3936],{"type":50,"value":3937},"async",{"type":44,"tag":132,"props":3939,"children":3940},{"style":267},[3941],{"type":50,"value":3942}," function",{"type":44,"tag":132,"props":3944,"children":3945},{"style":288},[3946],{"type":50,"value":3947}," fetchBalance",{"type":44,"tag":132,"props":3949,"children":3950},{"style":203},[3951],{"type":50,"value":295},{"type":44,"tag":132,"props":3953,"children":3954},{"style":737},[3955],{"type":50,"value":1566},{"type":44,"tag":132,"props":3957,"children":3958},{"style":203},[3959],{"type":50,"value":315},{"type":44,"tag":132,"props":3961,"children":3962},{"style":139},[3963],{"type":50,"value":749},{"type":44,"tag":132,"props":3965,"children":3966},{"style":203},[3967],{"type":50,"value":577},{"type":44,"tag":132,"props":3969,"children":3970},{"style":203},[3971],{"type":50,"value":320},{"type":44,"tag":132,"props":3973,"children":3974},{"class":134,"line":593},[3975,3979,3984,3988,3992,3996,4000,4004,4008],{"type":44,"tag":132,"props":3976,"children":3977},{"style":267},[3978],{"type":50,"value":1504},{"type":44,"tag":132,"props":3980,"children":3981},{"style":209},[3982],{"type":50,"value":3983}," wei",{"type":44,"tag":132,"props":3985,"children":3986},{"style":203},[3987],{"type":50,"value":1460},{"type":44,"tag":132,"props":3989,"children":3990},{"style":197},[3991],{"type":50,"value":285},{"type":44,"tag":132,"props":3993,"children":3994},{"style":209},[3995],{"type":50,"value":3702},{"type":44,"tag":132,"props":3997,"children":3998},{"style":203},[3999],{"type":50,"value":374},{"type":44,"tag":132,"props":4001,"children":4002},{"style":288},[4003],{"type":50,"value":3711},{"type":44,"tag":132,"props":4005,"children":4006},{"style":307},[4007],{"type":50,"value":295},{"type":44,"tag":132,"props":4009,"children":4010},{"style":203},[4011],{"type":50,"value":300},{"type":44,"tag":132,"props":4013,"children":4014},{"class":134,"line":601},[4015,4020,4024,4028,4033,4037],{"type":44,"tag":132,"props":4016,"children":4017},{"style":307},[4018],{"type":50,"value":4019},"    method",{"type":44,"tag":132,"props":4021,"children":4022},{"style":203},[4023],{"type":50,"value":315},{"type":44,"tag":132,"props":4025,"children":4026},{"style":203},[4027],{"type":50,"value":237},{"type":44,"tag":132,"props":4029,"children":4030},{"style":145},[4031],{"type":50,"value":4032},"eth_getBalance",{"type":44,"tag":132,"props":4034,"children":4035},{"style":203},[4036],{"type":50,"value":246},{"type":44,"tag":132,"props":4038,"children":4039},{"style":203},[4040],{"type":50,"value":351},{"type":44,"tag":132,"props":4042,"children":4043},{"class":134,"line":618},[4044,4049,4053,4057,4061,4065,4069,4074,4078,4082],{"type":44,"tag":132,"props":4045,"children":4046},{"style":307},[4047],{"type":50,"value":4048},"    params",{"type":44,"tag":132,"props":4050,"children":4051},{"style":203},[4052],{"type":50,"value":315},{"type":44,"tag":132,"props":4054,"children":4055},{"style":307},[4056],{"type":50,"value":498},{"type":44,"tag":132,"props":4058,"children":4059},{"style":209},[4060],{"type":50,"value":1566},{"type":44,"tag":132,"props":4062,"children":4063},{"style":203},[4064],{"type":50,"value":217},{"type":44,"tag":132,"props":4066,"children":4067},{"style":203},[4068],{"type":50,"value":237},{"type":44,"tag":132,"props":4070,"children":4071},{"style":145},[4072],{"type":50,"value":4073},"latest",{"type":44,"tag":132,"props":4075,"children":4076},{"style":203},[4077],{"type":50,"value":246},{"type":44,"tag":132,"props":4079,"children":4080},{"style":307},[4081],{"type":50,"value":2158},{"type":44,"tag":132,"props":4083,"children":4084},{"style":203},[4085],{"type":50,"value":351},{"type":44,"tag":132,"props":4087,"children":4088},{"class":134,"line":641},[4089,4093,4097,4102,4106],{"type":44,"tag":132,"props":4090,"children":4091},{"style":203},[4092],{"type":50,"value":2224},{"type":44,"tag":132,"props":4094,"children":4095},{"style":307},[4096],{"type":50,"value":1183},{"type":44,"tag":132,"props":4098,"children":4099},{"style":197},[4100],{"type":50,"value":4101},"as",{"type":44,"tag":132,"props":4103,"children":4104},{"style":139},[4105],{"type":50,"value":749},{"type":44,"tag":132,"props":4107,"children":4108},{"style":203},[4109],{"type":50,"value":251},{"type":44,"tag":132,"props":4111,"children":4112},{"class":134,"line":663},[4113],{"type":44,"tag":132,"props":4114,"children":4115},{"emptyLinePlaceholder":257},[4116],{"type":50,"value":260},{"type":44,"tag":132,"props":4118,"children":4119},{"class":134,"line":684},[4120,4124,4129,4133,4138,4142,4147,4151,4156,4160,4165,4170],{"type":44,"tag":132,"props":4121,"children":4122},{"style":267},[4123],{"type":50,"value":1504},{"type":44,"tag":132,"props":4125,"children":4126},{"style":209},[4127],{"type":50,"value":4128}," ethBalance",{"type":44,"tag":132,"props":4130,"children":4131},{"style":203},[4132],{"type":50,"value":1460},{"type":44,"tag":132,"props":4134,"children":4135},{"style":288},[4136],{"type":50,"value":4137}," parseInt",{"type":44,"tag":132,"props":4139,"children":4140},{"style":307},[4141],{"type":50,"value":295},{"type":44,"tag":132,"props":4143,"children":4144},{"style":209},[4145],{"type":50,"value":4146},"wei",{"type":44,"tag":132,"props":4148,"children":4149},{"style":203},[4150],{"type":50,"value":217},{"type":44,"tag":132,"props":4152,"children":4153},{"style":1175},[4154],{"type":50,"value":4155}," 16",{"type":44,"tag":132,"props":4157,"children":4158},{"style":307},[4159],{"type":50,"value":1183},{"type":44,"tag":132,"props":4161,"children":4162},{"style":203},[4163],{"type":50,"value":4164},"\u002F",{"type":44,"tag":132,"props":4166,"children":4167},{"style":1175},[4168],{"type":50,"value":4169}," 1e18",{"type":44,"tag":132,"props":4171,"children":4172},{"style":203},[4173],{"type":50,"value":251},{"type":44,"tag":132,"props":4175,"children":4176},{"class":134,"line":692},[4177,4181,4185,4189,4193,4197,4202,4206,4210,4214,4218],{"type":44,"tag":132,"props":4178,"children":4179},{"style":209},[4180],{"type":50,"value":1415},{"type":44,"tag":132,"props":4182,"children":4183},{"style":203},[4184],{"type":50,"value":374},{"type":44,"tag":132,"props":4186,"children":4187},{"style":288},[4188],{"type":50,"value":1424},{"type":44,"tag":132,"props":4190,"children":4191},{"style":307},[4192],{"type":50,"value":295},{"type":44,"tag":132,"props":4194,"children":4195},{"style":203},[4196],{"type":50,"value":246},{"type":44,"tag":132,"props":4198,"children":4199},{"style":145},[4200],{"type":50,"value":4201},"balance",{"type":44,"tag":132,"props":4203,"children":4204},{"style":203},[4205],{"type":50,"value":246},{"type":44,"tag":132,"props":4207,"children":4208},{"style":307},[4209],{"type":50,"value":577},{"type":44,"tag":132,"props":4211,"children":4212},{"style":203},[4213],{"type":50,"value":1450},{"type":44,"tag":132,"props":4215,"children":4216},{"style":209},[4217],{"type":50,"value":1455},{"type":44,"tag":132,"props":4219,"children":4220},{"style":203},[4221],{"type":50,"value":4222}," =\n",{"type":44,"tag":132,"props":4224,"children":4225},{"class":134,"line":709},[4226,4231,4236,4240,4245,4249,4254,4258,4263,4267,4271,4276,4281],{"type":44,"tag":132,"props":4227,"children":4228},{"style":203},[4229],{"type":50,"value":4230},"    `",{"type":44,"tag":132,"props":4232,"children":4233},{"style":145},[4234],{"type":50,"value":4235},"Balance: ",{"type":44,"tag":132,"props":4237,"children":4238},{"style":203},[4239],{"type":50,"value":1475},{"type":44,"tag":132,"props":4241,"children":4242},{"style":209},[4243],{"type":50,"value":4244},"ethBalance",{"type":44,"tag":132,"props":4246,"children":4247},{"style":203},[4248],{"type":50,"value":374},{"type":44,"tag":132,"props":4250,"children":4251},{"style":288},[4252],{"type":50,"value":4253},"toFixed",{"type":44,"tag":132,"props":4255,"children":4256},{"style":209},[4257],{"type":50,"value":295},{"type":44,"tag":132,"props":4259,"children":4260},{"style":1175},[4261],{"type":50,"value":4262},"6",{"type":44,"tag":132,"props":4264,"children":4265},{"style":209},[4266],{"type":50,"value":577},{"type":44,"tag":132,"props":4268,"children":4269},{"style":203},[4270],{"type":50,"value":572},{"type":44,"tag":132,"props":4272,"children":4273},{"style":145},[4274],{"type":50,"value":4275}," ETH",{"type":44,"tag":132,"props":4277,"children":4278},{"style":203},[4279],{"type":50,"value":4280},"`",{"type":44,"tag":132,"props":4282,"children":4283},{"style":203},[4284],{"type":50,"value":251},{"type":44,"tag":132,"props":4286,"children":4287},{"class":134,"line":719},[4288],{"type":44,"tag":132,"props":4289,"children":4290},{"style":203},[4291],{"type":50,"value":3408},{"type":44,"tag":132,"props":4293,"children":4294},{"class":134,"line":765},[4295],{"type":44,"tag":132,"props":4296,"children":4297},{"emptyLinePlaceholder":257},[4298],{"type":50,"value":260},{"type":44,"tag":132,"props":4300,"children":4301},{"class":134,"line":817},[4302],{"type":44,"tag":132,"props":4303,"children":4304},{"style":713},[4305],{"type":50,"value":4306},"\u002F\u002F Get gas price\n",{"type":44,"tag":132,"props":4308,"children":4309},{"class":134,"line":826},[4310,4314,4319,4323,4327,4331,4335,4339,4343,4347,4351,4355,4359,4364,4368,4372,4376],{"type":44,"tag":132,"props":4311,"children":4312},{"style":267},[4313],{"type":50,"value":270},{"type":44,"tag":132,"props":4315,"children":4316},{"style":209},[4317],{"type":50,"value":4318}," gasPrice ",{"type":44,"tag":132,"props":4320,"children":4321},{"style":203},[4322],{"type":50,"value":280},{"type":44,"tag":132,"props":4324,"children":4325},{"style":197},[4326],{"type":50,"value":285},{"type":44,"tag":132,"props":4328,"children":4329},{"style":209},[4330],{"type":50,"value":3702},{"type":44,"tag":132,"props":4332,"children":4333},{"style":203},[4334],{"type":50,"value":374},{"type":44,"tag":132,"props":4336,"children":4337},{"style":288},[4338],{"type":50,"value":3711},{"type":44,"tag":132,"props":4340,"children":4341},{"style":209},[4342],{"type":50,"value":295},{"type":44,"tag":132,"props":4344,"children":4345},{"style":203},[4346],{"type":50,"value":458},{"type":44,"tag":132,"props":4348,"children":4349},{"style":307},[4350],{"type":50,"value":3724},{"type":44,"tag":132,"props":4352,"children":4353},{"style":203},[4354],{"type":50,"value":315},{"type":44,"tag":132,"props":4356,"children":4357},{"style":203},[4358],{"type":50,"value":237},{"type":44,"tag":132,"props":4360,"children":4361},{"style":145},[4362],{"type":50,"value":4363},"eth_gasPrice",{"type":44,"tag":132,"props":4365,"children":4366},{"style":203},[4367],{"type":50,"value":246},{"type":44,"tag":132,"props":4369,"children":4370},{"style":203},[4371],{"type":50,"value":227},{"type":44,"tag":132,"props":4373,"children":4374},{"style":209},[4375],{"type":50,"value":577},{"type":44,"tag":132,"props":4377,"children":4378},{"style":203},[4379],{"type":50,"value":251},{"type":44,"tag":132,"props":4381,"children":4382},{"class":134,"line":834},[4383],{"type":44,"tag":132,"props":4384,"children":4385},{"emptyLinePlaceholder":257},[4386],{"type":50,"value":260},{"type":44,"tag":132,"props":4388,"children":4389},{"class":134,"line":879},[4390],{"type":44,"tag":132,"props":4391,"children":4392},{"style":713},[4393],{"type":50,"value":4394},"\u002F\u002F Get transaction count (nonce)\n",{"type":44,"tag":132,"props":4396,"children":4397},{"class":134,"line":888},[4398,4402,4407,4411,4415,4419,4423,4427,4431],{"type":44,"tag":132,"props":4399,"children":4400},{"style":267},[4401],{"type":50,"value":270},{"type":44,"tag":132,"props":4403,"children":4404},{"style":209},[4405],{"type":50,"value":4406}," nonce ",{"type":44,"tag":132,"props":4408,"children":4409},{"style":203},[4410],{"type":50,"value":280},{"type":44,"tag":132,"props":4412,"children":4413},{"style":197},[4414],{"type":50,"value":285},{"type":44,"tag":132,"props":4416,"children":4417},{"style":209},[4418],{"type":50,"value":3702},{"type":44,"tag":132,"props":4420,"children":4421},{"style":203},[4422],{"type":50,"value":374},{"type":44,"tag":132,"props":4424,"children":4425},{"style":288},[4426],{"type":50,"value":3711},{"type":44,"tag":132,"props":4428,"children":4429},{"style":209},[4430],{"type":50,"value":295},{"type":44,"tag":132,"props":4432,"children":4433},{"style":203},[4434],{"type":50,"value":300},{"type":44,"tag":132,"props":4436,"children":4437},{"class":134,"line":922},[4438,4443,4447,4451,4456,4460],{"type":44,"tag":132,"props":4439,"children":4440},{"style":307},[4441],{"type":50,"value":4442},"  method",{"type":44,"tag":132,"props":4444,"children":4445},{"style":203},[4446],{"type":50,"value":315},{"type":44,"tag":132,"props":4448,"children":4449},{"style":203},[4450],{"type":50,"value":237},{"type":44,"tag":132,"props":4452,"children":4453},{"style":145},[4454],{"type":50,"value":4455},"eth_getTransactionCount",{"type":44,"tag":132,"props":4457,"children":4458},{"style":203},[4459],{"type":50,"value":246},{"type":44,"tag":132,"props":4461,"children":4462},{"style":203},[4463],{"type":50,"value":351},{"type":44,"tag":132,"props":4465,"children":4466},{"class":134,"line":930},[4467,4472,4476,4481,4485,4489,4493,4497,4501,4505,4509],{"type":44,"tag":132,"props":4468,"children":4469},{"style":307},[4470],{"type":50,"value":4471},"  params",{"type":44,"tag":132,"props":4473,"children":4474},{"style":203},[4475],{"type":50,"value":315},{"type":44,"tag":132,"props":4477,"children":4478},{"style":209},[4479],{"type":50,"value":4480}," [accounts[",{"type":44,"tag":132,"props":4482,"children":4483},{"style":1175},[4484],{"type":50,"value":1303},{"type":44,"tag":132,"props":4486,"children":4487},{"style":209},[4488],{"type":50,"value":2158},{"type":44,"tag":132,"props":4490,"children":4491},{"style":203},[4492],{"type":50,"value":217},{"type":44,"tag":132,"props":4494,"children":4495},{"style":203},[4496],{"type":50,"value":237},{"type":44,"tag":132,"props":4498,"children":4499},{"style":145},[4500],{"type":50,"value":4073},{"type":44,"tag":132,"props":4502,"children":4503},{"style":203},[4504],{"type":50,"value":246},{"type":44,"tag":132,"props":4506,"children":4507},{"style":209},[4508],{"type":50,"value":2158},{"type":44,"tag":132,"props":4510,"children":4511},{"style":203},[4512],{"type":50,"value":351},{"type":44,"tag":132,"props":4514,"children":4515},{"class":134,"line":938},[4516,4520,4524],{"type":44,"tag":132,"props":4517,"children":4518},{"style":203},[4519],{"type":50,"value":572},{"type":44,"tag":132,"props":4521,"children":4522},{"style":209},[4523],{"type":50,"value":577},{"type":44,"tag":132,"props":4525,"children":4526},{"style":203},[4527],{"type":50,"value":251},{"type":44,"tag":132,"props":4529,"children":4530},{"class":134,"line":959},[4531],{"type":44,"tag":132,"props":4532,"children":4533},{"emptyLinePlaceholder":257},[4534],{"type":50,"value":260},{"type":44,"tag":132,"props":4536,"children":4537},{"class":134,"line":2671},[4538],{"type":44,"tag":132,"props":4539,"children":4540},{"style":713},[4541],{"type":50,"value":4542},"\u002F\u002F Call a contract (read-only)\n",{"type":44,"tag":132,"props":4544,"children":4545},{"class":134,"line":2700},[4546,4550,4555,4559,4563,4567,4571,4575,4579],{"type":44,"tag":132,"props":4547,"children":4548},{"style":267},[4549],{"type":50,"value":270},{"type":44,"tag":132,"props":4551,"children":4552},{"style":209},[4553],{"type":50,"value":4554}," result ",{"type":44,"tag":132,"props":4556,"children":4557},{"style":203},[4558],{"type":50,"value":280},{"type":44,"tag":132,"props":4560,"children":4561},{"style":197},[4562],{"type":50,"value":285},{"type":44,"tag":132,"props":4564,"children":4565},{"style":209},[4566],{"type":50,"value":3702},{"type":44,"tag":132,"props":4568,"children":4569},{"style":203},[4570],{"type":50,"value":374},{"type":44,"tag":132,"props":4572,"children":4573},{"style":288},[4574],{"type":50,"value":3711},{"type":44,"tag":132,"props":4576,"children":4577},{"style":209},[4578],{"type":50,"value":295},{"type":44,"tag":132,"props":4580,"children":4581},{"style":203},[4582],{"type":50,"value":300},{"type":44,"tag":132,"props":4584,"children":4585},{"class":134,"line":2728},[4586,4590,4594,4598,4603,4607],{"type":44,"tag":132,"props":4587,"children":4588},{"style":307},[4589],{"type":50,"value":4442},{"type":44,"tag":132,"props":4591,"children":4592},{"style":203},[4593],{"type":50,"value":315},{"type":44,"tag":132,"props":4595,"children":4596},{"style":203},[4597],{"type":50,"value":237},{"type":44,"tag":132,"props":4599,"children":4600},{"style":145},[4601],{"type":50,"value":4602},"eth_call",{"type":44,"tag":132,"props":4604,"children":4605},{"style":203},[4606],{"type":50,"value":246},{"type":44,"tag":132,"props":4608,"children":4609},{"style":203},[4610],{"type":50,"value":351},{"type":44,"tag":132,"props":4612,"children":4613},{"class":134,"line":2744},[4614,4618,4622],{"type":44,"tag":132,"props":4615,"children":4616},{"style":307},[4617],{"type":50,"value":4471},{"type":44,"tag":132,"props":4619,"children":4620},{"style":203},[4621],{"type":50,"value":315},{"type":44,"tag":132,"props":4623,"children":4624},{"style":209},[4625],{"type":50,"value":4626}," [\n",{"type":44,"tag":132,"props":4628,"children":4629},{"class":134,"line":2752},[4630],{"type":44,"tag":132,"props":4631,"children":4632},{"style":203},[4633],{"type":50,"value":4634},"    {\n",{"type":44,"tag":132,"props":4636,"children":4637},{"class":134,"line":2819},[4638,4643,4647,4651,4656,4660],{"type":44,"tag":132,"props":4639,"children":4640},{"style":307},[4641],{"type":50,"value":4642},"      to",{"type":44,"tag":132,"props":4644,"children":4645},{"style":203},[4646],{"type":50,"value":315},{"type":44,"tag":132,"props":4648,"children":4649},{"style":203},[4650],{"type":50,"value":237},{"type":44,"tag":132,"props":4652,"children":4653},{"style":145},[4654],{"type":50,"value":4655},"0xContractAddress",{"type":44,"tag":132,"props":4657,"children":4658},{"style":203},[4659],{"type":50,"value":246},{"type":44,"tag":132,"props":4661,"children":4662},{"style":203},[4663],{"type":50,"value":351},{"type":44,"tag":132,"props":4665,"children":4666},{"class":134,"line":2872},[4667,4672,4676,4680,4685,4689],{"type":44,"tag":132,"props":4668,"children":4669},{"style":307},[4670],{"type":50,"value":4671},"      data",{"type":44,"tag":132,"props":4673,"children":4674},{"style":203},[4675],{"type":50,"value":315},{"type":44,"tag":132,"props":4677,"children":4678},{"style":203},[4679],{"type":50,"value":237},{"type":44,"tag":132,"props":4681,"children":4682},{"style":145},[4683],{"type":50,"value":4684},"0xEncodedFunctionSelector",{"type":44,"tag":132,"props":4686,"children":4687},{"style":203},[4688],{"type":50,"value":246},{"type":44,"tag":132,"props":4690,"children":4691},{"style":203},[4692],{"type":50,"value":351},{"type":44,"tag":132,"props":4694,"children":4695},{"class":134,"line":2925},[4696],{"type":44,"tag":132,"props":4697,"children":4698},{"style":203},[4699],{"type":50,"value":590},{"type":44,"tag":132,"props":4701,"children":4702},{"class":134,"line":2979},[4703,4708,4712,4716],{"type":44,"tag":132,"props":4704,"children":4705},{"style":203},[4706],{"type":50,"value":4707},"    '",{"type":44,"tag":132,"props":4709,"children":4710},{"style":145},[4711],{"type":50,"value":4073},{"type":44,"tag":132,"props":4713,"children":4714},{"style":203},[4715],{"type":50,"value":246},{"type":44,"tag":132,"props":4717,"children":4718},{"style":203},[4719],{"type":50,"value":351},{"type":44,"tag":132,"props":4721,"children":4722},{"class":134,"line":2987},[4723,4728],{"type":44,"tag":132,"props":4724,"children":4725},{"style":209},[4726],{"type":50,"value":4727},"  ]",{"type":44,"tag":132,"props":4729,"children":4730},{"style":203},[4731],{"type":50,"value":351},{"type":44,"tag":132,"props":4733,"children":4734},{"class":134,"line":3027},[4735,4739,4743],{"type":44,"tag":132,"props":4736,"children":4737},{"style":203},[4738],{"type":50,"value":572},{"type":44,"tag":132,"props":4740,"children":4741},{"style":209},[4742],{"type":50,"value":577},{"type":44,"tag":132,"props":4744,"children":4745},{"style":203},[4746],{"type":50,"value":251},{"type":44,"tag":114,"props":4748,"children":4750},{"id":4749},"step-6-switch-chains-with-chainconfiguration-fallback",[4751],{"type":50,"value":4752},"Step 6: Switch chains with chainConfiguration fallback",{"type":44,"tag":121,"props":4754,"children":4756},{"className":186,"code":4755,"language":14,"meta":126,"style":126},"async function switchChain(targetChainId: string) {\n  try {\n    await client.switchChain({ chainId: targetChainId });\n  } catch (err: any) {\n    if (err.code === 4001) {\n      showError('Chain switch rejected by user.');\n    }\n  }\n}\n\n\u002F\u002F Switch to a chain with fallback configuration\n\u002F\u002F chainConfiguration triggers wallet_addEthereumChain if the chain\n\u002F\u002F is not already configured in the user's wallet\nasync function switchToArbitrum() {\n  try {\n    await client.switchChain({\n      chainId: '0xa4b1',\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  } catch (err: any) {\n    if (err.code === 4001) {\n      showError('User rejected the chain addition or switch.');\n    }\n  }\n}\n\n\u002F\u002F Switch to well-known chains\ndocument.getElementById('switch-mainnet')!.addEventListener('click',\n  () => switchChain('0x1'));\ndocument.getElementById('switch-polygon')!.addEventListener('click',\n  () => switchChain('0x89'));\ndocument.getElementById('switch-sepolia')!.addEventListener('click',\n  () => switchChain('0xaa36a7'));\ndocument.getElementById('switch-arbitrum')!.addEventListener('click',\n  () => switchToArbitrum());\n",[4757],{"type":44,"tag":81,"props":4758,"children":4759},{"__ignoreMap":126},[4760,4801,4812,4866,4901,4940,4972,4979,4986,4993,5000,5008,5016,5024,5048,5059,5086,5114,5130,5163,5192,5279,5316,5353,5361,5376,5411,5450,5482,5489,5496,5503,5510,5518,5583,5624,5688,5727,5791,5830,5894],{"type":44,"tag":132,"props":4761,"children":4762},{"class":134,"line":135},[4763,4767,4771,4776,4780,4785,4789,4793,4797],{"type":44,"tag":132,"props":4764,"children":4765},{"style":267},[4766],{"type":50,"value":3937},{"type":44,"tag":132,"props":4768,"children":4769},{"style":267},[4770],{"type":50,"value":3942},{"type":44,"tag":132,"props":4772,"children":4773},{"style":288},[4774],{"type":50,"value":4775}," switchChain",{"type":44,"tag":132,"props":4777,"children":4778},{"style":203},[4779],{"type":50,"value":295},{"type":44,"tag":132,"props":4781,"children":4782},{"style":737},[4783],{"type":50,"value":4784},"targetChainId",{"type":44,"tag":132,"props":4786,"children":4787},{"style":203},[4788],{"type":50,"value":315},{"type":44,"tag":132,"props":4790,"children":4791},{"style":139},[4792],{"type":50,"value":749},{"type":44,"tag":132,"props":4794,"children":4795},{"style":203},[4796],{"type":50,"value":577},{"type":44,"tag":132,"props":4798,"children":4799},{"style":203},[4800],{"type":50,"value":320},{"type":44,"tag":132,"props":4802,"children":4803},{"class":134,"line":28},[4804,4808],{"type":44,"tag":132,"props":4805,"children":4806},{"style":197},[4807],{"type":50,"value":1963},{"type":44,"tag":132,"props":4809,"children":4810},{"style":203},[4811],{"type":50,"value":320},{"type":44,"tag":132,"props":4813,"children":4814},{"class":134,"line":263},[4815,4820,4824,4828,4833,4837,4841,4845,4849,4854,4858,4862],{"type":44,"tag":132,"props":4816,"children":4817},{"style":197},[4818],{"type":50,"value":4819},"    await",{"type":44,"tag":132,"props":4821,"children":4822},{"style":209},[4823],{"type":50,"value":1047},{"type":44,"tag":132,"props":4825,"children":4826},{"style":203},[4827],{"type":50,"value":374},{"type":44,"tag":132,"props":4829,"children":4830},{"style":288},[4831],{"type":50,"value":4832},"switchChain",{"type":44,"tag":132,"props":4834,"children":4835},{"style":307},[4836],{"type":50,"value":295},{"type":44,"tag":132,"props":4838,"children":4839},{"style":203},[4840],{"type":50,"value":458},{"type":44,"tag":132,"props":4842,"children":4843},{"style":307},[4844],{"type":50,"value":863},{"type":44,"tag":132,"props":4846,"children":4847},{"style":203},[4848],{"type":50,"value":315},{"type":44,"tag":132,"props":4850,"children":4851},{"style":209},[4852],{"type":50,"value":4853}," targetChainId",{"type":44,"tag":132,"props":4855,"children":4856},{"style":203},[4857],{"type":50,"value":227},{"type":44,"tag":132,"props":4859,"children":4860},{"style":307},[4861],{"type":50,"value":577},{"type":44,"tag":132,"props":4863,"children":4864},{"style":203},[4865],{"type":50,"value":251},{"type":44,"tag":132,"props":4867,"children":4868},{"class":134,"line":303},[4869,4873,4877,4881,4885,4889,4893,4897],{"type":44,"tag":132,"props":4870,"children":4871},{"style":203},[4872],{"type":50,"value":2224},{"type":44,"tag":132,"props":4874,"children":4875},{"style":197},[4876],{"type":50,"value":2229},{"type":44,"tag":132,"props":4878,"children":4879},{"style":203},[4880],{"type":50,"value":734},{"type":44,"tag":132,"props":4882,"children":4883},{"style":737},[4884],{"type":50,"value":2238},{"type":44,"tag":132,"props":4886,"children":4887},{"style":203},[4888],{"type":50,"value":315},{"type":44,"tag":132,"props":4890,"children":4891},{"style":139},[4892],{"type":50,"value":2247},{"type":44,"tag":132,"props":4894,"children":4895},{"style":203},[4896],{"type":50,"value":577},{"type":44,"tag":132,"props":4898,"children":4899},{"style":203},[4900],{"type":50,"value":320},{"type":44,"tag":132,"props":4902,"children":4903},{"class":134,"line":323},[4904,4908,4912,4916,4920,4924,4928,4932,4936],{"type":44,"tag":132,"props":4905,"children":4906},{"style":197},[4907],{"type":50,"value":2263},{"type":44,"tag":132,"props":4909,"children":4910},{"style":307},[4911],{"type":50,"value":734},{"type":44,"tag":132,"props":4913,"children":4914},{"style":209},[4915],{"type":50,"value":2238},{"type":44,"tag":132,"props":4917,"children":4918},{"style":203},[4919],{"type":50,"value":374},{"type":44,"tag":132,"props":4921,"children":4922},{"style":209},[4923],{"type":50,"value":81},{"type":44,"tag":132,"props":4925,"children":4926},{"style":203},[4927],{"type":50,"value":1172},{"type":44,"tag":132,"props":4929,"children":4930},{"style":1175},[4931],{"type":50,"value":2288},{"type":44,"tag":132,"props":4933,"children":4934},{"style":307},[4935],{"type":50,"value":1183},{"type":44,"tag":132,"props":4937,"children":4938},{"style":203},[4939],{"type":50,"value":300},{"type":44,"tag":132,"props":4941,"children":4942},{"class":134,"line":354},[4943,4947,4951,4955,4960,4964,4968],{"type":44,"tag":132,"props":4944,"children":4945},{"style":288},[4946],{"type":50,"value":2304},{"type":44,"tag":132,"props":4948,"children":4949},{"style":307},[4950],{"type":50,"value":295},{"type":44,"tag":132,"props":4952,"children":4953},{"style":203},[4954],{"type":50,"value":246},{"type":44,"tag":132,"props":4956,"children":4957},{"style":145},[4958],{"type":50,"value":4959},"Chain switch rejected by user.",{"type":44,"tag":132,"props":4961,"children":4962},{"style":203},[4963],{"type":50,"value":246},{"type":44,"tag":132,"props":4965,"children":4966},{"style":307},[4967],{"type":50,"value":577},{"type":44,"tag":132,"props":4969,"children":4970},{"style":203},[4971],{"type":50,"value":251},{"type":44,"tag":132,"props":4973,"children":4974},{"class":134,"line":395},[4975],{"type":44,"tag":132,"props":4976,"children":4977},{"style":203},[4978],{"type":50,"value":2349},{"type":44,"tag":132,"props":4980,"children":4981},{"class":134,"line":404},[4982],{"type":44,"tag":132,"props":4983,"children":4984},{"style":203},[4985],{"type":50,"value":1245},{"type":44,"tag":132,"props":4987,"children":4988},{"class":134,"line":421},[4989],{"type":44,"tag":132,"props":4990,"children":4991},{"style":203},[4992],{"type":50,"value":3408},{"type":44,"tag":132,"props":4994,"children":4995},{"class":134,"line":438},[4996],{"type":44,"tag":132,"props":4997,"children":4998},{"emptyLinePlaceholder":257},[4999],{"type":50,"value":260},{"type":44,"tag":132,"props":5001,"children":5002},{"class":134,"line":584},[5003],{"type":44,"tag":132,"props":5004,"children":5005},{"style":713},[5006],{"type":50,"value":5007},"\u002F\u002F Switch to a chain with fallback configuration\n",{"type":44,"tag":132,"props":5009,"children":5010},{"class":134,"line":593},[5011],{"type":44,"tag":132,"props":5012,"children":5013},{"style":713},[5014],{"type":50,"value":5015},"\u002F\u002F chainConfiguration triggers wallet_addEthereumChain if the chain\n",{"type":44,"tag":132,"props":5017,"children":5018},{"class":134,"line":601},[5019],{"type":44,"tag":132,"props":5020,"children":5021},{"style":713},[5022],{"type":50,"value":5023},"\u002F\u002F is not already configured in the user's wallet\n",{"type":44,"tag":132,"props":5025,"children":5026},{"class":134,"line":618},[5027,5031,5035,5040,5044],{"type":44,"tag":132,"props":5028,"children":5029},{"style":267},[5030],{"type":50,"value":3937},{"type":44,"tag":132,"props":5032,"children":5033},{"style":267},[5034],{"type":50,"value":3942},{"type":44,"tag":132,"props":5036,"children":5037},{"style":288},[5038],{"type":50,"value":5039}," switchToArbitrum",{"type":44,"tag":132,"props":5041,"children":5042},{"style":203},[5043],{"type":50,"value":1061},{"type":44,"tag":132,"props":5045,"children":5046},{"style":203},[5047],{"type":50,"value":320},{"type":44,"tag":132,"props":5049,"children":5050},{"class":134,"line":641},[5051,5055],{"type":44,"tag":132,"props":5052,"children":5053},{"style":197},[5054],{"type":50,"value":1963},{"type":44,"tag":132,"props":5056,"children":5057},{"style":203},[5058],{"type":50,"value":320},{"type":44,"tag":132,"props":5060,"children":5061},{"class":134,"line":663},[5062,5066,5070,5074,5078,5082],{"type":44,"tag":132,"props":5063,"children":5064},{"style":197},[5065],{"type":50,"value":4819},{"type":44,"tag":132,"props":5067,"children":5068},{"style":209},[5069],{"type":50,"value":1047},{"type":44,"tag":132,"props":5071,"children":5072},{"style":203},[5073],{"type":50,"value":374},{"type":44,"tag":132,"props":5075,"children":5076},{"style":288},[5077],{"type":50,"value":4832},{"type":44,"tag":132,"props":5079,"children":5080},{"style":307},[5081],{"type":50,"value":295},{"type":44,"tag":132,"props":5083,"children":5084},{"style":203},[5085],{"type":50,"value":300},{"type":44,"tag":132,"props":5087,"children":5088},{"class":134,"line":684},[5089,5094,5098,5102,5106,5110],{"type":44,"tag":132,"props":5090,"children":5091},{"style":307},[5092],{"type":50,"value":5093},"      chainId",{"type":44,"tag":132,"props":5095,"children":5096},{"style":203},[5097],{"type":50,"value":315},{"type":44,"tag":132,"props":5099,"children":5100},{"style":203},[5101],{"type":50,"value":237},{"type":44,"tag":132,"props":5103,"children":5104},{"style":145},[5105],{"type":50,"value":541},{"type":44,"tag":132,"props":5107,"children":5108},{"style":203},[5109],{"type":50,"value":246},{"type":44,"tag":132,"props":5111,"children":5112},{"style":203},[5113],{"type":50,"value":351},{"type":44,"tag":132,"props":5115,"children":5116},{"class":134,"line":692},[5117,5122,5126],{"type":44,"tag":132,"props":5118,"children":5119},{"style":307},[5120],{"type":50,"value":5121},"      chainConfiguration",{"type":44,"tag":132,"props":5123,"children":5124},{"style":203},[5125],{"type":50,"value":315},{"type":44,"tag":132,"props":5127,"children":5128},{"style":203},[5129],{"type":50,"value":320},{"type":44,"tag":132,"props":5131,"children":5132},{"class":134,"line":709},[5133,5138,5142,5146,5150,5154,5158],{"type":44,"tag":132,"props":5134,"children":5135},{"style":307},[5136],{"type":50,"value":5137},"        chainId",{"type":44,"tag":132,"props":5139,"children":5140},{"style":203},[5141],{"type":50,"value":315},{"type":44,"tag":132,"props":5143,"children":5144},{"style":203},[5145],{"type":50,"value":237},{"type":44,"tag":132,"props":5147,"children":5148},{"style":145},[5149],{"type":50,"value":541},{"type":44,"tag":132,"props":5151,"children":5152},{"style":203},[5153],{"type":50,"value":246},{"type":44,"tag":132,"props":5155,"children":5156},{"style":203},[5157],{"type":50,"value":217},{"type":44,"tag":132,"props":5159,"children":5160},{"style":713},[5161],{"type":50,"value":5162}," \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":132,"props":5164,"children":5165},{"class":134,"line":719},[5166,5171,5175,5179,5184,5188],{"type":44,"tag":132,"props":5167,"children":5168},{"style":307},[5169],{"type":50,"value":5170},"        chainName",{"type":44,"tag":132,"props":5172,"children":5173},{"style":203},[5174],{"type":50,"value":315},{"type":44,"tag":132,"props":5176,"children":5177},{"style":203},[5178],{"type":50,"value":237},{"type":44,"tag":132,"props":5180,"children":5181},{"style":145},[5182],{"type":50,"value":5183},"Arbitrum One",{"type":44,"tag":132,"props":5185,"children":5186},{"style":203},[5187],{"type":50,"value":246},{"type":44,"tag":132,"props":5189,"children":5190},{"style":203},[5191],{"type":50,"value":351},{"type":44,"tag":132,"props":5193,"children":5194},{"class":134,"line":765},[5195,5200,5204,5208,5213,5217,5221,5226,5230,5234,5239,5243,5247,5252,5256,5260,5265,5269,5274],{"type":44,"tag":132,"props":5196,"children":5197},{"style":307},[5198],{"type":50,"value":5199},"        nativeCurrency",{"type":44,"tag":132,"props":5201,"children":5202},{"style":203},[5203],{"type":50,"value":315},{"type":44,"tag":132,"props":5205,"children":5206},{"style":203},[5207],{"type":50,"value":206},{"type":44,"tag":132,"props":5209,"children":5210},{"style":307},[5211],{"type":50,"value":5212}," name",{"type":44,"tag":132,"props":5214,"children":5215},{"style":203},[5216],{"type":50,"value":315},{"type":44,"tag":132,"props":5218,"children":5219},{"style":203},[5220],{"type":50,"value":237},{"type":44,"tag":132,"props":5222,"children":5223},{"style":145},[5224],{"type":50,"value":5225},"Ether",{"type":44,"tag":132,"props":5227,"children":5228},{"style":203},[5229],{"type":50,"value":246},{"type":44,"tag":132,"props":5231,"children":5232},{"style":203},[5233],{"type":50,"value":217},{"type":44,"tag":132,"props":5235,"children":5236},{"style":307},[5237],{"type":50,"value":5238}," symbol",{"type":44,"tag":132,"props":5240,"children":5241},{"style":203},[5242],{"type":50,"value":315},{"type":44,"tag":132,"props":5244,"children":5245},{"style":203},[5246],{"type":50,"value":237},{"type":44,"tag":132,"props":5248,"children":5249},{"style":145},[5250],{"type":50,"value":5251},"ETH",{"type":44,"tag":132,"props":5253,"children":5254},{"style":203},[5255],{"type":50,"value":246},{"type":44,"tag":132,"props":5257,"children":5258},{"style":203},[5259],{"type":50,"value":217},{"type":44,"tag":132,"props":5261,"children":5262},{"style":307},[5263],{"type":50,"value":5264}," decimals",{"type":44,"tag":132,"props":5266,"children":5267},{"style":203},[5268],{"type":50,"value":315},{"type":44,"tag":132,"props":5270,"children":5271},{"style":1175},[5272],{"type":50,"value":5273}," 18",{"type":44,"tag":132,"props":5275,"children":5276},{"style":203},[5277],{"type":50,"value":5278}," },\n",{"type":44,"tag":132,"props":5280,"children":5281},{"class":134,"line":817},[5282,5287,5291,5295,5299,5304,5308,5312],{"type":44,"tag":132,"props":5283,"children":5284},{"style":307},[5285],{"type":50,"value":5286},"        rpcUrls",{"type":44,"tag":132,"props":5288,"children":5289},{"style":203},[5290],{"type":50,"value":315},{"type":44,"tag":132,"props":5292,"children":5293},{"style":307},[5294],{"type":50,"value":498},{"type":44,"tag":132,"props":5296,"children":5297},{"style":203},[5298],{"type":50,"value":246},{"type":44,"tag":132,"props":5300,"children":5301},{"style":145},[5302],{"type":50,"value":5303},"https:\u002F\u002Farb1.arbitrum.io\u002Frpc",{"type":44,"tag":132,"props":5305,"children":5306},{"style":203},[5307],{"type":50,"value":246},{"type":44,"tag":132,"props":5309,"children":5310},{"style":307},[5311],{"type":50,"value":2158},{"type":44,"tag":132,"props":5313,"children":5314},{"style":203},[5315],{"type":50,"value":351},{"type":44,"tag":132,"props":5317,"children":5318},{"class":134,"line":826},[5319,5324,5328,5332,5336,5341,5345,5349],{"type":44,"tag":132,"props":5320,"children":5321},{"style":307},[5322],{"type":50,"value":5323},"        blockExplorerUrls",{"type":44,"tag":132,"props":5325,"children":5326},{"style":203},[5327],{"type":50,"value":315},{"type":44,"tag":132,"props":5329,"children":5330},{"style":307},[5331],{"type":50,"value":498},{"type":44,"tag":132,"props":5333,"children":5334},{"style":203},[5335],{"type":50,"value":246},{"type":44,"tag":132,"props":5337,"children":5338},{"style":145},[5339],{"type":50,"value":5340},"https:\u002F\u002Farbiscan.io",{"type":44,"tag":132,"props":5342,"children":5343},{"style":203},[5344],{"type":50,"value":246},{"type":44,"tag":132,"props":5346,"children":5347},{"style":307},[5348],{"type":50,"value":2158},{"type":44,"tag":132,"props":5350,"children":5351},{"style":203},[5352],{"type":50,"value":351},{"type":44,"tag":132,"props":5354,"children":5355},{"class":134,"line":834},[5356],{"type":44,"tag":132,"props":5357,"children":5358},{"style":203},[5359],{"type":50,"value":5360},"      },\n",{"type":44,"tag":132,"props":5362,"children":5363},{"class":134,"line":879},[5364,5368,5372],{"type":44,"tag":132,"props":5365,"children":5366},{"style":203},[5367],{"type":50,"value":2170},{"type":44,"tag":132,"props":5369,"children":5370},{"style":307},[5371],{"type":50,"value":577},{"type":44,"tag":132,"props":5373,"children":5374},{"style":203},[5375],{"type":50,"value":251},{"type":44,"tag":132,"props":5377,"children":5378},{"class":134,"line":888},[5379,5383,5387,5391,5395,5399,5403,5407],{"type":44,"tag":132,"props":5380,"children":5381},{"style":203},[5382],{"type":50,"value":2224},{"type":44,"tag":132,"props":5384,"children":5385},{"style":197},[5386],{"type":50,"value":2229},{"type":44,"tag":132,"props":5388,"children":5389},{"style":203},[5390],{"type":50,"value":734},{"type":44,"tag":132,"props":5392,"children":5393},{"style":737},[5394],{"type":50,"value":2238},{"type":44,"tag":132,"props":5396,"children":5397},{"style":203},[5398],{"type":50,"value":315},{"type":44,"tag":132,"props":5400,"children":5401},{"style":139},[5402],{"type":50,"value":2247},{"type":44,"tag":132,"props":5404,"children":5405},{"style":203},[5406],{"type":50,"value":577},{"type":44,"tag":132,"props":5408,"children":5409},{"style":203},[5410],{"type":50,"value":320},{"type":44,"tag":132,"props":5412,"children":5413},{"class":134,"line":922},[5414,5418,5422,5426,5430,5434,5438,5442,5446],{"type":44,"tag":132,"props":5415,"children":5416},{"style":197},[5417],{"type":50,"value":2263},{"type":44,"tag":132,"props":5419,"children":5420},{"style":307},[5421],{"type":50,"value":734},{"type":44,"tag":132,"props":5423,"children":5424},{"style":209},[5425],{"type":50,"value":2238},{"type":44,"tag":132,"props":5427,"children":5428},{"style":203},[5429],{"type":50,"value":374},{"type":44,"tag":132,"props":5431,"children":5432},{"style":209},[5433],{"type":50,"value":81},{"type":44,"tag":132,"props":5435,"children":5436},{"style":203},[5437],{"type":50,"value":1172},{"type":44,"tag":132,"props":5439,"children":5440},{"style":1175},[5441],{"type":50,"value":2288},{"type":44,"tag":132,"props":5443,"children":5444},{"style":307},[5445],{"type":50,"value":1183},{"type":44,"tag":132,"props":5447,"children":5448},{"style":203},[5449],{"type":50,"value":300},{"type":44,"tag":132,"props":5451,"children":5452},{"class":134,"line":930},[5453,5457,5461,5465,5470,5474,5478],{"type":44,"tag":132,"props":5454,"children":5455},{"style":288},[5456],{"type":50,"value":2304},{"type":44,"tag":132,"props":5458,"children":5459},{"style":307},[5460],{"type":50,"value":295},{"type":44,"tag":132,"props":5462,"children":5463},{"style":203},[5464],{"type":50,"value":246},{"type":44,"tag":132,"props":5466,"children":5467},{"style":145},[5468],{"type":50,"value":5469},"User rejected the chain addition or switch.",{"type":44,"tag":132,"props":5471,"children":5472},{"style":203},[5473],{"type":50,"value":246},{"type":44,"tag":132,"props":5475,"children":5476},{"style":307},[5477],{"type":50,"value":577},{"type":44,"tag":132,"props":5479,"children":5480},{"style":203},[5481],{"type":50,"value":251},{"type":44,"tag":132,"props":5483,"children":5484},{"class":134,"line":938},[5485],{"type":44,"tag":132,"props":5486,"children":5487},{"style":203},[5488],{"type":50,"value":2349},{"type":44,"tag":132,"props":5490,"children":5491},{"class":134,"line":959},[5492],{"type":44,"tag":132,"props":5493,"children":5494},{"style":203},[5495],{"type":50,"value":1245},{"type":44,"tag":132,"props":5497,"children":5498},{"class":134,"line":2671},[5499],{"type":44,"tag":132,"props":5500,"children":5501},{"style":203},[5502],{"type":50,"value":3408},{"type":44,"tag":132,"props":5504,"children":5505},{"class":134,"line":2700},[5506],{"type":44,"tag":132,"props":5507,"children":5508},{"emptyLinePlaceholder":257},[5509],{"type":50,"value":260},{"type":44,"tag":132,"props":5511,"children":5512},{"class":134,"line":2728},[5513],{"type":44,"tag":132,"props":5514,"children":5515},{"style":713},[5516],{"type":50,"value":5517},"\u002F\u002F Switch to well-known chains\n",{"type":44,"tag":132,"props":5519,"children":5520},{"class":134,"line":2744},[5521,5526,5530,5534,5538,5542,5547,5551,5555,5559,5563,5567,5571,5575,5579],{"type":44,"tag":132,"props":5522,"children":5523},{"style":209},[5524],{"type":50,"value":5525},"document",{"type":44,"tag":132,"props":5527,"children":5528},{"style":203},[5529],{"type":50,"value":374},{"type":44,"tag":132,"props":5531,"children":5532},{"style":288},[5533],{"type":50,"value":1424},{"type":44,"tag":132,"props":5535,"children":5536},{"style":209},[5537],{"type":50,"value":295},{"type":44,"tag":132,"props":5539,"children":5540},{"style":203},[5541],{"type":50,"value":246},{"type":44,"tag":132,"props":5543,"children":5544},{"style":145},[5545],{"type":50,"value":5546},"switch-mainnet",{"type":44,"tag":132,"props":5548,"children":5549},{"style":203},[5550],{"type":50,"value":246},{"type":44,"tag":132,"props":5552,"children":5553},{"style":209},[5554],{"type":50,"value":577},{"type":44,"tag":132,"props":5556,"children":5557},{"style":203},[5558],{"type":50,"value":1450},{"type":44,"tag":132,"props":5560,"children":5561},{"style":288},[5562],{"type":50,"value":1917},{"type":44,"tag":132,"props":5564,"children":5565},{"style":209},[5566],{"type":50,"value":295},{"type":44,"tag":132,"props":5568,"children":5569},{"style":203},[5570],{"type":50,"value":246},{"type":44,"tag":132,"props":5572,"children":5573},{"style":145},[5574],{"type":50,"value":1930},{"type":44,"tag":132,"props":5576,"children":5577},{"style":203},[5578],{"type":50,"value":246},{"type":44,"tag":132,"props":5580,"children":5581},{"style":203},[5582],{"type":50,"value":351},{"type":44,"tag":132,"props":5584,"children":5585},{"class":134,"line":2752},[5586,5591,5595,5599,5603,5607,5611,5615,5620],{"type":44,"tag":132,"props":5587,"children":5588},{"style":203},[5589],{"type":50,"value":5590},"  ()",{"type":44,"tag":132,"props":5592,"children":5593},{"style":267},[5594],{"type":50,"value":758},{"type":44,"tag":132,"props":5596,"children":5597},{"style":288},[5598],{"type":50,"value":4775},{"type":44,"tag":132,"props":5600,"children":5601},{"style":209},[5602],{"type":50,"value":295},{"type":44,"tag":132,"props":5604,"children":5605},{"style":203},[5606],{"type":50,"value":246},{"type":44,"tag":132,"props":5608,"children":5609},{"style":145},[5610],{"type":50,"value":507},{"type":44,"tag":132,"props":5612,"children":5613},{"style":203},[5614],{"type":50,"value":246},{"type":44,"tag":132,"props":5616,"children":5617},{"style":209},[5618],{"type":50,"value":5619},"))",{"type":44,"tag":132,"props":5621,"children":5622},{"style":203},[5623],{"type":50,"value":251},{"type":44,"tag":132,"props":5625,"children":5626},{"class":134,"line":2819},[5627,5631,5635,5639,5643,5647,5652,5656,5660,5664,5668,5672,5676,5680,5684],{"type":44,"tag":132,"props":5628,"children":5629},{"style":209},[5630],{"type":50,"value":5525},{"type":44,"tag":132,"props":5632,"children":5633},{"style":203},[5634],{"type":50,"value":374},{"type":44,"tag":132,"props":5636,"children":5637},{"style":288},[5638],{"type":50,"value":1424},{"type":44,"tag":132,"props":5640,"children":5641},{"style":209},[5642],{"type":50,"value":295},{"type":44,"tag":132,"props":5644,"children":5645},{"style":203},[5646],{"type":50,"value":246},{"type":44,"tag":132,"props":5648,"children":5649},{"style":145},[5650],{"type":50,"value":5651},"switch-polygon",{"type":44,"tag":132,"props":5653,"children":5654},{"style":203},[5655],{"type":50,"value":246},{"type":44,"tag":132,"props":5657,"children":5658},{"style":209},[5659],{"type":50,"value":577},{"type":44,"tag":132,"props":5661,"children":5662},{"style":203},[5663],{"type":50,"value":1450},{"type":44,"tag":132,"props":5665,"children":5666},{"style":288},[5667],{"type":50,"value":1917},{"type":44,"tag":132,"props":5669,"children":5670},{"style":209},[5671],{"type":50,"value":295},{"type":44,"tag":132,"props":5673,"children":5674},{"style":203},[5675],{"type":50,"value":246},{"type":44,"tag":132,"props":5677,"children":5678},{"style":145},[5679],{"type":50,"value":1930},{"type":44,"tag":132,"props":5681,"children":5682},{"style":203},[5683],{"type":50,"value":246},{"type":44,"tag":132,"props":5685,"children":5686},{"style":203},[5687],{"type":50,"value":351},{"type":44,"tag":132,"props":5689,"children":5690},{"class":134,"line":2872},[5691,5695,5699,5703,5707,5711,5715,5719,5723],{"type":44,"tag":132,"props":5692,"children":5693},{"style":203},[5694],{"type":50,"value":5590},{"type":44,"tag":132,"props":5696,"children":5697},{"style":267},[5698],{"type":50,"value":758},{"type":44,"tag":132,"props":5700,"children":5701},{"style":288},[5702],{"type":50,"value":4775},{"type":44,"tag":132,"props":5704,"children":5705},{"style":209},[5706],{"type":50,"value":295},{"type":44,"tag":132,"props":5708,"children":5709},{"style":203},[5710],{"type":50,"value":246},{"type":44,"tag":132,"props":5712,"children":5713},{"style":145},[5714],{"type":50,"value":524},{"type":44,"tag":132,"props":5716,"children":5717},{"style":203},[5718],{"type":50,"value":246},{"type":44,"tag":132,"props":5720,"children":5721},{"style":209},[5722],{"type":50,"value":5619},{"type":44,"tag":132,"props":5724,"children":5725},{"style":203},[5726],{"type":50,"value":251},{"type":44,"tag":132,"props":5728,"children":5729},{"class":134,"line":2925},[5730,5734,5738,5742,5746,5750,5755,5759,5763,5767,5771,5775,5779,5783,5787],{"type":44,"tag":132,"props":5731,"children":5732},{"style":209},[5733],{"type":50,"value":5525},{"type":44,"tag":132,"props":5735,"children":5736},{"style":203},[5737],{"type":50,"value":374},{"type":44,"tag":132,"props":5739,"children":5740},{"style":288},[5741],{"type":50,"value":1424},{"type":44,"tag":132,"props":5743,"children":5744},{"style":209},[5745],{"type":50,"value":295},{"type":44,"tag":132,"props":5747,"children":5748},{"style":203},[5749],{"type":50,"value":246},{"type":44,"tag":132,"props":5751,"children":5752},{"style":145},[5753],{"type":50,"value":5754},"switch-sepolia",{"type":44,"tag":132,"props":5756,"children":5757},{"style":203},[5758],{"type":50,"value":246},{"type":44,"tag":132,"props":5760,"children":5761},{"style":209},[5762],{"type":50,"value":577},{"type":44,"tag":132,"props":5764,"children":5765},{"style":203},[5766],{"type":50,"value":1450},{"type":44,"tag":132,"props":5768,"children":5769},{"style":288},[5770],{"type":50,"value":1917},{"type":44,"tag":132,"props":5772,"children":5773},{"style":209},[5774],{"type":50,"value":295},{"type":44,"tag":132,"props":5776,"children":5777},{"style":203},[5778],{"type":50,"value":246},{"type":44,"tag":132,"props":5780,"children":5781},{"style":145},[5782],{"type":50,"value":1930},{"type":44,"tag":132,"props":5784,"children":5785},{"style":203},[5786],{"type":50,"value":246},{"type":44,"tag":132,"props":5788,"children":5789},{"style":203},[5790],{"type":50,"value":351},{"type":44,"tag":132,"props":5792,"children":5793},{"class":134,"line":2979},[5794,5798,5802,5806,5810,5814,5818,5822,5826],{"type":44,"tag":132,"props":5795,"children":5796},{"style":203},[5797],{"type":50,"value":5590},{"type":44,"tag":132,"props":5799,"children":5800},{"style":267},[5801],{"type":50,"value":758},{"type":44,"tag":132,"props":5803,"children":5804},{"style":288},[5805],{"type":50,"value":4775},{"type":44,"tag":132,"props":5807,"children":5808},{"style":209},[5809],{"type":50,"value":295},{"type":44,"tag":132,"props":5811,"children":5812},{"style":203},[5813],{"type":50,"value":246},{"type":44,"tag":132,"props":5815,"children":5816},{"style":145},[5817],{"type":50,"value":558},{"type":44,"tag":132,"props":5819,"children":5820},{"style":203},[5821],{"type":50,"value":246},{"type":44,"tag":132,"props":5823,"children":5824},{"style":209},[5825],{"type":50,"value":5619},{"type":44,"tag":132,"props":5827,"children":5828},{"style":203},[5829],{"type":50,"value":251},{"type":44,"tag":132,"props":5831,"children":5832},{"class":134,"line":2987},[5833,5837,5841,5845,5849,5853,5858,5862,5866,5870,5874,5878,5882,5886,5890],{"type":44,"tag":132,"props":5834,"children":5835},{"style":209},[5836],{"type":50,"value":5525},{"type":44,"tag":132,"props":5838,"children":5839},{"style":203},[5840],{"type":50,"value":374},{"type":44,"tag":132,"props":5842,"children":5843},{"style":288},[5844],{"type":50,"value":1424},{"type":44,"tag":132,"props":5846,"children":5847},{"style":209},[5848],{"type":50,"value":295},{"type":44,"tag":132,"props":5850,"children":5851},{"style":203},[5852],{"type":50,"value":246},{"type":44,"tag":132,"props":5854,"children":5855},{"style":145},[5856],{"type":50,"value":5857},"switch-arbitrum",{"type":44,"tag":132,"props":5859,"children":5860},{"style":203},[5861],{"type":50,"value":246},{"type":44,"tag":132,"props":5863,"children":5864},{"style":209},[5865],{"type":50,"value":577},{"type":44,"tag":132,"props":5867,"children":5868},{"style":203},[5869],{"type":50,"value":1450},{"type":44,"tag":132,"props":5871,"children":5872},{"style":288},[5873],{"type":50,"value":1917},{"type":44,"tag":132,"props":5875,"children":5876},{"style":209},[5877],{"type":50,"value":295},{"type":44,"tag":132,"props":5879,"children":5880},{"style":203},[5881],{"type":50,"value":246},{"type":44,"tag":132,"props":5883,"children":5884},{"style":145},[5885],{"type":50,"value":1930},{"type":44,"tag":132,"props":5887,"children":5888},{"style":203},[5889],{"type":50,"value":246},{"type":44,"tag":132,"props":5891,"children":5892},{"style":203},[5893],{"type":50,"value":351},{"type":44,"tag":132,"props":5895,"children":5896},{"class":134,"line":3027},[5897,5901,5905,5909,5914],{"type":44,"tag":132,"props":5898,"children":5899},{"style":203},[5900],{"type":50,"value":5590},{"type":44,"tag":132,"props":5902,"children":5903},{"style":267},[5904],{"type":50,"value":758},{"type":44,"tag":132,"props":5906,"children":5907},{"style":288},[5908],{"type":50,"value":5039},{"type":44,"tag":132,"props":5910,"children":5911},{"style":209},[5912],{"type":50,"value":5913},"())",{"type":44,"tag":132,"props":5915,"children":5916},{"style":203},[5917],{"type":50,"value":251},{"type":44,"tag":114,"props":5919,"children":5921},{"id":5920},"step-7-complete-html-structure",[5922],{"type":50,"value":5923},"Step 7: Complete HTML structure",{"type":44,"tag":121,"props":5925,"children":5929},{"className":5926,"code":5927,"language":5928,"meta":126,"style":126},"language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003C!DOCTYPE html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n  \u003Cmeta charset=\"UTF-8\" \u002F>\n  \u003Ctitle>MetaMask Connect\u003C\u002Ftitle>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Ch1>MetaMask Connect Demo\u003C\u002Fh1>\n\n  \u003Cbutton id=\"connect-btn\">Connect MetaMask\u003C\u002Fbutton>\n  \u003Cp id=\"error\" style=\"color: red;\">\u003C\u002Fp>\n\n  \u003Cdiv id=\"connected\" style=\"display: none;\">\n    \u003Cp id=\"account\">\u003C\u002Fp>\n    \u003Cp id=\"chain\">\u003C\u002Fp>\n    \u003Cp id=\"balance\">\u003C\u002Fp>\n    \u003Cbutton id=\"switch-mainnet\">Mainnet (0x1)\u003C\u002Fbutton>\n    \u003Cbutton id=\"switch-polygon\">Polygon (0x89)\u003C\u002Fbutton>\n    \u003Cbutton id=\"switch-sepolia\">Sepolia (0xaa36a7)\u003C\u002Fbutton>\n    \u003Cbutton id=\"switch-arbitrum\">Arbitrum (0xa4b1)\u003C\u002Fbutton>\n    \u003Cbutton id=\"disconnect-btn\">Disconnect\u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n\n  \u003Cscript type=\"module\" src=\".\u002Fsrc\u002Fmain.ts\">\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n","html",[5930],{"type":44,"tag":81,"props":5931,"children":5932},{"__ignoreMap":126},[5933,5956,5995,6011,6051,6086,6101,6117,6149,6156,6209,6275,6282,6339,6383,6426,6469,6521,6573,6625,6677,6729,6745,6752,6820,6835],{"type":44,"tag":132,"props":5934,"children":5935},{"class":134,"line":135},[5936,5941,5946,5951],{"type":44,"tag":132,"props":5937,"children":5938},{"style":203},[5939],{"type":50,"value":5940},"\u003C!",{"type":44,"tag":132,"props":5942,"children":5943},{"style":307},[5944],{"type":50,"value":5945},"DOCTYPE",{"type":44,"tag":132,"props":5947,"children":5948},{"style":267},[5949],{"type":50,"value":5950}," html",{"type":44,"tag":132,"props":5952,"children":5953},{"style":203},[5954],{"type":50,"value":5955},">\n",{"type":44,"tag":132,"props":5957,"children":5958},{"class":134,"line":28},[5959,5964,5968,5973,5977,5982,5987,5991],{"type":44,"tag":132,"props":5960,"children":5961},{"style":203},[5962],{"type":50,"value":5963},"\u003C",{"type":44,"tag":132,"props":5965,"children":5966},{"style":307},[5967],{"type":50,"value":5928},{"type":44,"tag":132,"props":5969,"children":5970},{"style":267},[5971],{"type":50,"value":5972}," lang",{"type":44,"tag":132,"props":5974,"children":5975},{"style":203},[5976],{"type":50,"value":280},{"type":44,"tag":132,"props":5978,"children":5979},{"style":203},[5980],{"type":50,"value":5981},"\"",{"type":44,"tag":132,"props":5983,"children":5984},{"style":145},[5985],{"type":50,"value":5986},"en",{"type":44,"tag":132,"props":5988,"children":5989},{"style":203},[5990],{"type":50,"value":5981},{"type":44,"tag":132,"props":5992,"children":5993},{"style":203},[5994],{"type":50,"value":5955},{"type":44,"tag":132,"props":5996,"children":5997},{"class":134,"line":263},[5998,6002,6007],{"type":44,"tag":132,"props":5999,"children":6000},{"style":203},[6001],{"type":50,"value":5963},{"type":44,"tag":132,"props":6003,"children":6004},{"style":307},[6005],{"type":50,"value":6006},"head",{"type":44,"tag":132,"props":6008,"children":6009},{"style":203},[6010],{"type":50,"value":5955},{"type":44,"tag":132,"props":6012,"children":6013},{"class":134,"line":303},[6014,6019,6024,6029,6033,6037,6042,6046],{"type":44,"tag":132,"props":6015,"children":6016},{"style":203},[6017],{"type":50,"value":6018},"  \u003C",{"type":44,"tag":132,"props":6020,"children":6021},{"style":307},[6022],{"type":50,"value":6023},"meta",{"type":44,"tag":132,"props":6025,"children":6026},{"style":267},[6027],{"type":50,"value":6028}," charset",{"type":44,"tag":132,"props":6030,"children":6031},{"style":203},[6032],{"type":50,"value":280},{"type":44,"tag":132,"props":6034,"children":6035},{"style":203},[6036],{"type":50,"value":5981},{"type":44,"tag":132,"props":6038,"children":6039},{"style":145},[6040],{"type":50,"value":6041},"UTF-8",{"type":44,"tag":132,"props":6043,"children":6044},{"style":203},[6045],{"type":50,"value":5981},{"type":44,"tag":132,"props":6047,"children":6048},{"style":203},[6049],{"type":50,"value":6050}," \u002F>\n",{"type":44,"tag":132,"props":6052,"children":6053},{"class":134,"line":323},[6054,6058,6063,6068,6073,6078,6082],{"type":44,"tag":132,"props":6055,"children":6056},{"style":203},[6057],{"type":50,"value":6018},{"type":44,"tag":132,"props":6059,"children":6060},{"style":307},[6061],{"type":50,"value":6062},"title",{"type":44,"tag":132,"props":6064,"children":6065},{"style":203},[6066],{"type":50,"value":6067},">",{"type":44,"tag":132,"props":6069,"children":6070},{"style":209},[6071],{"type":50,"value":6072},"MetaMask Connect",{"type":44,"tag":132,"props":6074,"children":6075},{"style":203},[6076],{"type":50,"value":6077},"\u003C\u002F",{"type":44,"tag":132,"props":6079,"children":6080},{"style":307},[6081],{"type":50,"value":6062},{"type":44,"tag":132,"props":6083,"children":6084},{"style":203},[6085],{"type":50,"value":5955},{"type":44,"tag":132,"props":6087,"children":6088},{"class":134,"line":354},[6089,6093,6097],{"type":44,"tag":132,"props":6090,"children":6091},{"style":203},[6092],{"type":50,"value":6077},{"type":44,"tag":132,"props":6094,"children":6095},{"style":307},[6096],{"type":50,"value":6006},{"type":44,"tag":132,"props":6098,"children":6099},{"style":203},[6100],{"type":50,"value":5955},{"type":44,"tag":132,"props":6102,"children":6103},{"class":134,"line":395},[6104,6108,6113],{"type":44,"tag":132,"props":6105,"children":6106},{"style":203},[6107],{"type":50,"value":5963},{"type":44,"tag":132,"props":6109,"children":6110},{"style":307},[6111],{"type":50,"value":6112},"body",{"type":44,"tag":132,"props":6114,"children":6115},{"style":203},[6116],{"type":50,"value":5955},{"type":44,"tag":132,"props":6118,"children":6119},{"class":134,"line":404},[6120,6124,6128,6132,6137,6141,6145],{"type":44,"tag":132,"props":6121,"children":6122},{"style":203},[6123],{"type":50,"value":6018},{"type":44,"tag":132,"props":6125,"children":6126},{"style":307},[6127],{"type":50,"value":45},{"type":44,"tag":132,"props":6129,"children":6130},{"style":203},[6131],{"type":50,"value":6067},{"type":44,"tag":132,"props":6133,"children":6134},{"style":209},[6135],{"type":50,"value":6136},"MetaMask Connect Demo",{"type":44,"tag":132,"props":6138,"children":6139},{"style":203},[6140],{"type":50,"value":6077},{"type":44,"tag":132,"props":6142,"children":6143},{"style":307},[6144],{"type":50,"value":45},{"type":44,"tag":132,"props":6146,"children":6147},{"style":203},[6148],{"type":50,"value":5955},{"type":44,"tag":132,"props":6150,"children":6151},{"class":134,"line":421},[6152],{"type":44,"tag":132,"props":6153,"children":6154},{"emptyLinePlaceholder":257},[6155],{"type":50,"value":260},{"type":44,"tag":132,"props":6157,"children":6158},{"class":134,"line":438},[6159,6163,6168,6173,6177,6181,6185,6189,6193,6197,6201,6205],{"type":44,"tag":132,"props":6160,"children":6161},{"style":203},[6162],{"type":50,"value":6018},{"type":44,"tag":132,"props":6164,"children":6165},{"style":307},[6166],{"type":50,"value":6167},"button",{"type":44,"tag":132,"props":6169,"children":6170},{"style":267},[6171],{"type":50,"value":6172}," id",{"type":44,"tag":132,"props":6174,"children":6175},{"style":203},[6176],{"type":50,"value":280},{"type":44,"tag":132,"props":6178,"children":6179},{"style":203},[6180],{"type":50,"value":5981},{"type":44,"tag":132,"props":6182,"children":6183},{"style":145},[6184],{"type":50,"value":1827},{"type":44,"tag":132,"props":6186,"children":6187},{"style":203},[6188],{"type":50,"value":5981},{"type":44,"tag":132,"props":6190,"children":6191},{"style":203},[6192],{"type":50,"value":6067},{"type":44,"tag":132,"props":6194,"children":6195},{"style":209},[6196],{"type":50,"value":2539},{"type":44,"tag":132,"props":6198,"children":6199},{"style":203},[6200],{"type":50,"value":6077},{"type":44,"tag":132,"props":6202,"children":6203},{"style":307},[6204],{"type":50,"value":6167},{"type":44,"tag":132,"props":6206,"children":6207},{"style":203},[6208],{"type":50,"value":5955},{"type":44,"tag":132,"props":6210,"children":6211},{"class":134,"line":584},[6212,6216,6220,6224,6228,6232,6236,6240,6245,6249,6253,6258,6262,6267,6271],{"type":44,"tag":132,"props":6213,"children":6214},{"style":203},[6215],{"type":50,"value":6018},{"type":44,"tag":132,"props":6217,"children":6218},{"style":307},[6219],{"type":50,"value":60},{"type":44,"tag":132,"props":6221,"children":6222},{"style":267},[6223],{"type":50,"value":6172},{"type":44,"tag":132,"props":6225,"children":6226},{"style":203},[6227],{"type":50,"value":280},{"type":44,"tag":132,"props":6229,"children":6230},{"style":203},[6231],{"type":50,"value":5981},{"type":44,"tag":132,"props":6233,"children":6234},{"style":145},[6235],{"type":50,"value":3495},{"type":44,"tag":132,"props":6237,"children":6238},{"style":203},[6239],{"type":50,"value":5981},{"type":44,"tag":132,"props":6241,"children":6242},{"style":267},[6243],{"type":50,"value":6244}," style",{"type":44,"tag":132,"props":6246,"children":6247},{"style":203},[6248],{"type":50,"value":280},{"type":44,"tag":132,"props":6250,"children":6251},{"style":203},[6252],{"type":50,"value":5981},{"type":44,"tag":132,"props":6254,"children":6255},{"style":145},[6256],{"type":50,"value":6257},"color: red;",{"type":44,"tag":132,"props":6259,"children":6260},{"style":203},[6261],{"type":50,"value":5981},{"type":44,"tag":132,"props":6263,"children":6264},{"style":203},[6265],{"type":50,"value":6266},">\u003C\u002F",{"type":44,"tag":132,"props":6268,"children":6269},{"style":307},[6270],{"type":50,"value":60},{"type":44,"tag":132,"props":6272,"children":6273},{"style":203},[6274],{"type":50,"value":5955},{"type":44,"tag":132,"props":6276,"children":6277},{"class":134,"line":593},[6278],{"type":44,"tag":132,"props":6279,"children":6280},{"emptyLinePlaceholder":257},[6281],{"type":50,"value":260},{"type":44,"tag":132,"props":6283,"children":6284},{"class":134,"line":601},[6285,6289,6294,6298,6302,6306,6310,6314,6318,6322,6326,6331,6335],{"type":44,"tag":132,"props":6286,"children":6287},{"style":203},[6288],{"type":50,"value":6018},{"type":44,"tag":132,"props":6290,"children":6291},{"style":307},[6292],{"type":50,"value":6293},"div",{"type":44,"tag":132,"props":6295,"children":6296},{"style":267},[6297],{"type":50,"value":6172},{"type":44,"tag":132,"props":6299,"children":6300},{"style":203},[6301],{"type":50,"value":280},{"type":44,"tag":132,"props":6303,"children":6304},{"style":203},[6305],{"type":50,"value":5981},{"type":44,"tag":132,"props":6307,"children":6308},{"style":145},[6309],{"type":50,"value":2964},{"type":44,"tag":132,"props":6311,"children":6312},{"style":203},[6313],{"type":50,"value":5981},{"type":44,"tag":132,"props":6315,"children":6316},{"style":267},[6317],{"type":50,"value":6244},{"type":44,"tag":132,"props":6319,"children":6320},{"style":203},[6321],{"type":50,"value":280},{"type":44,"tag":132,"props":6323,"children":6324},{"style":203},[6325],{"type":50,"value":5981},{"type":44,"tag":132,"props":6327,"children":6328},{"style":145},[6329],{"type":50,"value":6330},"display: none;",{"type":44,"tag":132,"props":6332,"children":6333},{"style":203},[6334],{"type":50,"value":5981},{"type":44,"tag":132,"props":6336,"children":6337},{"style":203},[6338],{"type":50,"value":5955},{"type":44,"tag":132,"props":6340,"children":6341},{"class":134,"line":618},[6342,6347,6351,6355,6359,6363,6367,6371,6375,6379],{"type":44,"tag":132,"props":6343,"children":6344},{"style":203},[6345],{"type":50,"value":6346},"    \u003C",{"type":44,"tag":132,"props":6348,"children":6349},{"style":307},[6350],{"type":50,"value":60},{"type":44,"tag":132,"props":6352,"children":6353},{"style":267},[6354],{"type":50,"value":6172},{"type":44,"tag":132,"props":6356,"children":6357},{"style":203},[6358],{"type":50,"value":280},{"type":44,"tag":132,"props":6360,"children":6361},{"style":203},[6362],{"type":50,"value":5981},{"type":44,"tag":132,"props":6364,"children":6365},{"style":145},[6366],{"type":50,"value":1539},{"type":44,"tag":132,"props":6368,"children":6369},{"style":203},[6370],{"type":50,"value":5981},{"type":44,"tag":132,"props":6372,"children":6373},{"style":203},[6374],{"type":50,"value":6266},{"type":44,"tag":132,"props":6376,"children":6377},{"style":307},[6378],{"type":50,"value":60},{"type":44,"tag":132,"props":6380,"children":6381},{"style":203},[6382],{"type":50,"value":5955},{"type":44,"tag":132,"props":6384,"children":6385},{"class":134,"line":641},[6386,6390,6394,6398,6402,6406,6410,6414,6418,6422],{"type":44,"tag":132,"props":6387,"children":6388},{"style":203},[6389],{"type":50,"value":6346},{"type":44,"tag":132,"props":6391,"children":6392},{"style":307},[6393],{"type":50,"value":60},{"type":44,"tag":132,"props":6395,"children":6396},{"style":267},[6397],{"type":50,"value":6172},{"type":44,"tag":132,"props":6399,"children":6400},{"style":203},[6401],{"type":50,"value":280},{"type":44,"tag":132,"props":6403,"children":6404},{"style":203},[6405],{"type":50,"value":5981},{"type":44,"tag":132,"props":6407,"children":6408},{"style":145},[6409],{"type":50,"value":1437},{"type":44,"tag":132,"props":6411,"children":6412},{"style":203},[6413],{"type":50,"value":5981},{"type":44,"tag":132,"props":6415,"children":6416},{"style":203},[6417],{"type":50,"value":6266},{"type":44,"tag":132,"props":6419,"children":6420},{"style":307},[6421],{"type":50,"value":60},{"type":44,"tag":132,"props":6423,"children":6424},{"style":203},[6425],{"type":50,"value":5955},{"type":44,"tag":132,"props":6427,"children":6428},{"class":134,"line":663},[6429,6433,6437,6441,6445,6449,6453,6457,6461,6465],{"type":44,"tag":132,"props":6430,"children":6431},{"style":203},[6432],{"type":50,"value":6346},{"type":44,"tag":132,"props":6434,"children":6435},{"style":307},[6436],{"type":50,"value":60},{"type":44,"tag":132,"props":6438,"children":6439},{"style":267},[6440],{"type":50,"value":6172},{"type":44,"tag":132,"props":6442,"children":6443},{"style":203},[6444],{"type":50,"value":280},{"type":44,"tag":132,"props":6446,"children":6447},{"style":203},[6448],{"type":50,"value":5981},{"type":44,"tag":132,"props":6450,"children":6451},{"style":145},[6452],{"type":50,"value":4201},{"type":44,"tag":132,"props":6454,"children":6455},{"style":203},[6456],{"type":50,"value":5981},{"type":44,"tag":132,"props":6458,"children":6459},{"style":203},[6460],{"type":50,"value":6266},{"type":44,"tag":132,"props":6462,"children":6463},{"style":307},[6464],{"type":50,"value":60},{"type":44,"tag":132,"props":6466,"children":6467},{"style":203},[6468],{"type":50,"value":5955},{"type":44,"tag":132,"props":6470,"children":6471},{"class":134,"line":684},[6472,6476,6480,6484,6488,6492,6496,6500,6504,6509,6513,6517],{"type":44,"tag":132,"props":6473,"children":6474},{"style":203},[6475],{"type":50,"value":6346},{"type":44,"tag":132,"props":6477,"children":6478},{"style":307},[6479],{"type":50,"value":6167},{"type":44,"tag":132,"props":6481,"children":6482},{"style":267},[6483],{"type":50,"value":6172},{"type":44,"tag":132,"props":6485,"children":6486},{"style":203},[6487],{"type":50,"value":280},{"type":44,"tag":132,"props":6489,"children":6490},{"style":203},[6491],{"type":50,"value":5981},{"type":44,"tag":132,"props":6493,"children":6494},{"style":145},[6495],{"type":50,"value":5546},{"type":44,"tag":132,"props":6497,"children":6498},{"style":203},[6499],{"type":50,"value":5981},{"type":44,"tag":132,"props":6501,"children":6502},{"style":203},[6503],{"type":50,"value":6067},{"type":44,"tag":132,"props":6505,"children":6506},{"style":209},[6507],{"type":50,"value":6508},"Mainnet (0x1)",{"type":44,"tag":132,"props":6510,"children":6511},{"style":203},[6512],{"type":50,"value":6077},{"type":44,"tag":132,"props":6514,"children":6515},{"style":307},[6516],{"type":50,"value":6167},{"type":44,"tag":132,"props":6518,"children":6519},{"style":203},[6520],{"type":50,"value":5955},{"type":44,"tag":132,"props":6522,"children":6523},{"class":134,"line":692},[6524,6528,6532,6536,6540,6544,6548,6552,6556,6561,6565,6569],{"type":44,"tag":132,"props":6525,"children":6526},{"style":203},[6527],{"type":50,"value":6346},{"type":44,"tag":132,"props":6529,"children":6530},{"style":307},[6531],{"type":50,"value":6167},{"type":44,"tag":132,"props":6533,"children":6534},{"style":267},[6535],{"type":50,"value":6172},{"type":44,"tag":132,"props":6537,"children":6538},{"style":203},[6539],{"type":50,"value":280},{"type":44,"tag":132,"props":6541,"children":6542},{"style":203},[6543],{"type":50,"value":5981},{"type":44,"tag":132,"props":6545,"children":6546},{"style":145},[6547],{"type":50,"value":5651},{"type":44,"tag":132,"props":6549,"children":6550},{"style":203},[6551],{"type":50,"value":5981},{"type":44,"tag":132,"props":6553,"children":6554},{"style":203},[6555],{"type":50,"value":6067},{"type":44,"tag":132,"props":6557,"children":6558},{"style":209},[6559],{"type":50,"value":6560},"Polygon (0x89)",{"type":44,"tag":132,"props":6562,"children":6563},{"style":203},[6564],{"type":50,"value":6077},{"type":44,"tag":132,"props":6566,"children":6567},{"style":307},[6568],{"type":50,"value":6167},{"type":44,"tag":132,"props":6570,"children":6571},{"style":203},[6572],{"type":50,"value":5955},{"type":44,"tag":132,"props":6574,"children":6575},{"class":134,"line":709},[6576,6580,6584,6588,6592,6596,6600,6604,6608,6613,6617,6621],{"type":44,"tag":132,"props":6577,"children":6578},{"style":203},[6579],{"type":50,"value":6346},{"type":44,"tag":132,"props":6581,"children":6582},{"style":307},[6583],{"type":50,"value":6167},{"type":44,"tag":132,"props":6585,"children":6586},{"style":267},[6587],{"type":50,"value":6172},{"type":44,"tag":132,"props":6589,"children":6590},{"style":203},[6591],{"type":50,"value":280},{"type":44,"tag":132,"props":6593,"children":6594},{"style":203},[6595],{"type":50,"value":5981},{"type":44,"tag":132,"props":6597,"children":6598},{"style":145},[6599],{"type":50,"value":5754},{"type":44,"tag":132,"props":6601,"children":6602},{"style":203},[6603],{"type":50,"value":5981},{"type":44,"tag":132,"props":6605,"children":6606},{"style":203},[6607],{"type":50,"value":6067},{"type":44,"tag":132,"props":6609,"children":6610},{"style":209},[6611],{"type":50,"value":6612},"Sepolia (0xaa36a7)",{"type":44,"tag":132,"props":6614,"children":6615},{"style":203},[6616],{"type":50,"value":6077},{"type":44,"tag":132,"props":6618,"children":6619},{"style":307},[6620],{"type":50,"value":6167},{"type":44,"tag":132,"props":6622,"children":6623},{"style":203},[6624],{"type":50,"value":5955},{"type":44,"tag":132,"props":6626,"children":6627},{"class":134,"line":719},[6628,6632,6636,6640,6644,6648,6652,6656,6660,6665,6669,6673],{"type":44,"tag":132,"props":6629,"children":6630},{"style":203},[6631],{"type":50,"value":6346},{"type":44,"tag":132,"props":6633,"children":6634},{"style":307},[6635],{"type":50,"value":6167},{"type":44,"tag":132,"props":6637,"children":6638},{"style":267},[6639],{"type":50,"value":6172},{"type":44,"tag":132,"props":6641,"children":6642},{"style":203},[6643],{"type":50,"value":280},{"type":44,"tag":132,"props":6645,"children":6646},{"style":203},[6647],{"type":50,"value":5981},{"type":44,"tag":132,"props":6649,"children":6650},{"style":145},[6651],{"type":50,"value":5857},{"type":44,"tag":132,"props":6653,"children":6654},{"style":203},[6655],{"type":50,"value":5981},{"type":44,"tag":132,"props":6657,"children":6658},{"style":203},[6659],{"type":50,"value":6067},{"type":44,"tag":132,"props":6661,"children":6662},{"style":209},[6663],{"type":50,"value":6664},"Arbitrum (0xa4b1)",{"type":44,"tag":132,"props":6666,"children":6667},{"style":203},[6668],{"type":50,"value":6077},{"type":44,"tag":132,"props":6670,"children":6671},{"style":307},[6672],{"type":50,"value":6167},{"type":44,"tag":132,"props":6674,"children":6675},{"style":203},[6676],{"type":50,"value":5955},{"type":44,"tag":132,"props":6678,"children":6679},{"class":134,"line":765},[6680,6684,6688,6692,6696,6700,6704,6708,6712,6717,6721,6725],{"type":44,"tag":132,"props":6681,"children":6682},{"style":203},[6683],{"type":50,"value":6346},{"type":44,"tag":132,"props":6685,"children":6686},{"style":307},[6687],{"type":50,"value":6167},{"type":44,"tag":132,"props":6689,"children":6690},{"style":267},[6691],{"type":50,"value":6172},{"type":44,"tag":132,"props":6693,"children":6694},{"style":203},[6695],{"type":50,"value":280},{"type":44,"tag":132,"props":6697,"children":6698},{"style":203},[6699],{"type":50,"value":5981},{"type":44,"tag":132,"props":6701,"children":6702},{"style":145},[6703],{"type":50,"value":1881},{"type":44,"tag":132,"props":6705,"children":6706},{"style":203},[6707],{"type":50,"value":5981},{"type":44,"tag":132,"props":6709,"children":6710},{"style":203},[6711],{"type":50,"value":6067},{"type":44,"tag":132,"props":6713,"children":6714},{"style":209},[6715],{"type":50,"value":6716},"Disconnect",{"type":44,"tag":132,"props":6718,"children":6719},{"style":203},[6720],{"type":50,"value":6077},{"type":44,"tag":132,"props":6722,"children":6723},{"style":307},[6724],{"type":50,"value":6167},{"type":44,"tag":132,"props":6726,"children":6727},{"style":203},[6728],{"type":50,"value":5955},{"type":44,"tag":132,"props":6730,"children":6731},{"class":134,"line":817},[6732,6737,6741],{"type":44,"tag":132,"props":6733,"children":6734},{"style":203},[6735],{"type":50,"value":6736},"  \u003C\u002F",{"type":44,"tag":132,"props":6738,"children":6739},{"style":307},[6740],{"type":50,"value":6293},{"type":44,"tag":132,"props":6742,"children":6743},{"style":203},[6744],{"type":50,"value":5955},{"type":44,"tag":132,"props":6746,"children":6747},{"class":134,"line":826},[6748],{"type":44,"tag":132,"props":6749,"children":6750},{"emptyLinePlaceholder":257},[6751],{"type":50,"value":260},{"type":44,"tag":132,"props":6753,"children":6754},{"class":134,"line":834},[6755,6759,6764,6769,6773,6777,6782,6786,6791,6795,6799,6804,6808,6812,6816],{"type":44,"tag":132,"props":6756,"children":6757},{"style":203},[6758],{"type":50,"value":6018},{"type":44,"tag":132,"props":6760,"children":6761},{"style":307},[6762],{"type":50,"value":6763},"script",{"type":44,"tag":132,"props":6765,"children":6766},{"style":267},[6767],{"type":50,"value":6768}," type",{"type":44,"tag":132,"props":6770,"children":6771},{"style":203},[6772],{"type":50,"value":280},{"type":44,"tag":132,"props":6774,"children":6775},{"style":203},[6776],{"type":50,"value":5981},{"type":44,"tag":132,"props":6778,"children":6779},{"style":145},[6780],{"type":50,"value":6781},"module",{"type":44,"tag":132,"props":6783,"children":6784},{"style":203},[6785],{"type":50,"value":5981},{"type":44,"tag":132,"props":6787,"children":6788},{"style":267},[6789],{"type":50,"value":6790}," src",{"type":44,"tag":132,"props":6792,"children":6793},{"style":203},[6794],{"type":50,"value":280},{"type":44,"tag":132,"props":6796,"children":6797},{"style":203},[6798],{"type":50,"value":5981},{"type":44,"tag":132,"props":6800,"children":6801},{"style":145},[6802],{"type":50,"value":6803},".\u002Fsrc\u002Fmain.ts",{"type":44,"tag":132,"props":6805,"children":6806},{"style":203},[6807],{"type":50,"value":5981},{"type":44,"tag":132,"props":6809,"children":6810},{"style":203},[6811],{"type":50,"value":6266},{"type":44,"tag":132,"props":6813,"children":6814},{"style":307},[6815],{"type":50,"value":6763},{"type":44,"tag":132,"props":6817,"children":6818},{"style":203},[6819],{"type":50,"value":5955},{"type":44,"tag":132,"props":6821,"children":6822},{"class":134,"line":879},[6823,6827,6831],{"type":44,"tag":132,"props":6824,"children":6825},{"style":203},[6826],{"type":50,"value":6077},{"type":44,"tag":132,"props":6828,"children":6829},{"style":307},[6830],{"type":50,"value":6112},{"type":44,"tag":132,"props":6832,"children":6833},{"style":203},[6834],{"type":50,"value":5955},{"type":44,"tag":132,"props":6836,"children":6837},{"class":134,"line":888},[6838,6842,6846],{"type":44,"tag":132,"props":6839,"children":6840},{"style":203},[6841],{"type":50,"value":6077},{"type":44,"tag":132,"props":6843,"children":6844},{"style":307},[6845],{"type":50,"value":5928},{"type":44,"tag":132,"props":6847,"children":6848},{"style":203},[6849],{"type":50,"value":5955},{"type":44,"tag":53,"props":6851,"children":6853},{"id":6852},"important-notes",[6854],{"type":50,"value":6855},"Important Notes",{"type":44,"tag":66,"props":6857,"children":6858},{},[6859,6885,6918,6949,7022,7077,7132,7162,7186,7239,7249],{"type":44,"tag":70,"props":6860,"children":6861},{},[6862,6875,6877,6883],{"type":44,"tag":6863,"props":6864,"children":6865},"strong",{},[6866,6868,6873],{"type":50,"value":6867},"Call ",{"type":44,"tag":81,"props":6869,"children":6871},{"className":6870},[],[6872],{"type":50,"value":86},{"type":50,"value":6874}," once at app startup",{"type":50,"value":6876}," — each call returns a ",{"type":44,"tag":6878,"props":6879,"children":6880},"em",{},[6881],{"type":50,"value":6882},"new",{"type":50,"value":6884}," EVM client wrapper, but they all share one underlying multichain core (the core is the singleton whose options merge across calls). Don't recreate the client repeatedly.",{"type":44,"tag":70,"props":6886,"children":6887},{},[6888,6893,6895,6901,6903,6909,6910,6916],{"type":44,"tag":6863,"props":6889,"children":6890},{},[6891],{"type":50,"value":6892},"Chain IDs are always hex strings",{"type":50,"value":6894}," — use ",{"type":44,"tag":81,"props":6896,"children":6898},{"className":6897},[],[6899],{"type":50,"value":6900},"'0x1'",{"type":50,"value":6902},", ",{"type":44,"tag":81,"props":6904,"children":6906},{"className":6905},[],[6907],{"type":50,"value":6908},"'0x89'",{"type":50,"value":6902},{"type":44,"tag":81,"props":6911,"children":6913},{"className":6912},[],[6914],{"type":50,"value":6915},"'0xaa36a7'",{"type":50,"value":6917},". Never pass decimal numbers or decimal strings.",{"type":44,"tag":70,"props":6919,"children":6920},{},[6921,6931,6933,6939,6941,6947],{"type":44,"tag":6863,"props":6922,"children":6923},{},[6924,6929],{"type":44,"tag":81,"props":6925,"children":6927},{"className":6926},[],[6928],{"type":50,"value":507},{"type":50,"value":6930}," (Ethereum mainnet) is auto-included",{"type":50,"value":6932}," in every ",{"type":44,"tag":81,"props":6934,"children":6936},{"className":6935},[],[6937],{"type":50,"value":6938},"connect()",{"type":50,"value":6940}," call regardless of the ",{"type":44,"tag":81,"props":6942,"children":6944},{"className":6943},[],[6945],{"type":50,"value":6946},"chainIds",{"type":50,"value":6948}," you specify.",{"type":44,"tag":70,"props":6950,"children":6951},{},[6952,6957,6959,6965,6967,6972,6973,6978,6979,6984,6986,6991,6993,6999,7001,7006,7008,7013,7015,7020],{"type":44,"tag":6863,"props":6953,"children":6954},{},[6955],{"type":50,"value":6956},"The provider exists before connection",{"type":50,"value":6958}," — ",{"type":44,"tag":81,"props":6960,"children":6962},{"className":6961},[],[6963],{"type":50,"value":6964},"client.getProvider()",{"type":50,"value":6966}," always returns a valid EIP-1193 provider. But node-routed reads (",{"type":44,"tag":81,"props":6968,"children":6970},{"className":6969},[],[6971],{"type":50,"value":3906},{"type":50,"value":6902},{"type":44,"tag":81,"props":6974,"children":6976},{"className":6975},[],[6977],{"type":50,"value":4032},{"type":50,"value":6902},{"type":44,"tag":81,"props":6980,"children":6982},{"className":6981},[],[6983],{"type":50,"value":4602},{"type":50,"value":6985},", …) require a ",{"type":44,"tag":6863,"props":6987,"children":6988},{},[6989],{"type":50,"value":6990},"selected chain",{"type":50,"value":6992}," and throw ",{"type":44,"tag":81,"props":6994,"children":6996},{"className":6995},[],[6997],{"type":50,"value":6998},"No chain ID selected",{"type":50,"value":7000}," until one is set (after ",{"type":44,"tag":81,"props":7002,"children":7004},{"className":7003},[],[7005],{"type":50,"value":6938},{"type":50,"value":7007}," or a restored session). Only ",{"type":44,"tag":81,"props":7009,"children":7011},{"className":7010},[],[7012],{"type":50,"value":3737},{"type":50,"value":7014}," and ",{"type":44,"tag":81,"props":7016,"children":7018},{"className":7017},[],[7019],{"type":50,"value":3810},{"type":50,"value":7021}," (intercepted, served from cache) are safe before connecting.",{"type":44,"tag":70,"props":7023,"children":7024},{},[7025,7030,7031,7037,7039,7045,7047,7053,7054,7060,7062,7068,7070,7075],{"type":44,"tag":6863,"props":7026,"children":7027},{},[7028],{"type":50,"value":7029},"Convenience getters",{"type":50,"value":6894},{"type":44,"tag":81,"props":7032,"children":7034},{"className":7033},[],[7035],{"type":50,"value":7036},"client.getChainId()",{"type":50,"value":7038}," (returns ",{"type":44,"tag":81,"props":7040,"children":7042},{"className":7041},[],[7043],{"type":50,"value":7044},"Hex | undefined",{"type":50,"value":7046},") and ",{"type":44,"tag":81,"props":7048,"children":7050},{"className":7049},[],[7051],{"type":50,"value":7052},"client.getAccount()",{"type":50,"value":7038},{"type":44,"tag":81,"props":7055,"children":7057},{"className":7056},[],[7058],{"type":50,"value":7059},"Address | undefined",{"type":50,"value":7061},") instead of ",{"type":44,"tag":81,"props":7063,"children":7065},{"className":7064},[],[7066],{"type":50,"value":7067},"provider.request({ method: 'eth_chainId' })",{"type":50,"value":7069}," \u002F ",{"type":44,"tag":81,"props":7071,"children":7073},{"className":7072},[],[7074],{"type":50,"value":3810},{"type":50,"value":7076}," for cached state.",{"type":44,"tag":70,"props":7078,"children":7079},{},[7080,7085,7086,7092,7094,7100,7102,7108,7109,7115,7117,7123,7124,7130],{"type":44,"tag":6863,"props":7081,"children":7082},{},[7083],{"type":50,"value":7084},"Connection status",{"type":50,"value":6958},{"type":44,"tag":81,"props":7087,"children":7089},{"className":7088},[],[7090],{"type":50,"value":7091},"client.status",{"type":50,"value":7093}," returns ",{"type":44,"tag":81,"props":7095,"children":7097},{"className":7096},[],[7098],{"type":50,"value":7099},"'connecting'",{"type":50,"value":7101}," | ",{"type":44,"tag":81,"props":7103,"children":7105},{"className":7104},[],[7106],{"type":50,"value":7107},"'connected'",{"type":50,"value":7101},{"type":44,"tag":81,"props":7110,"children":7112},{"className":7111},[],[7113],{"type":50,"value":7114},"'disconnected'",{"type":50,"value":7116},". (The 5-value ",{"type":44,"tag":81,"props":7118,"children":7120},{"className":7119},[],[7121],{"type":50,"value":7122},"'loaded'",{"type":50,"value":4164},{"type":44,"tag":81,"props":7125,"children":7127},{"className":7126},[],[7128],{"type":50,"value":7129},"'pending'",{"type":50,"value":7131}," union belongs to the multichain core, not the EVM client.) Use this for UI state instead of tracking manually.",{"type":44,"tag":70,"props":7133,"children":7134},{},[7135,7140,7142,7147,7148,7153,7155,7160],{"type":44,"tag":6863,"props":7136,"children":7137},{},[7138],{"type":50,"value":7139},"Register event listeners before connecting",{"type":50,"value":7141}," — set up ",{"type":44,"tag":81,"props":7143,"children":7145},{"className":7144},[],[7146],{"type":50,"value":999},{"type":50,"value":6902},{"type":44,"tag":81,"props":7149,"children":7151},{"className":7150},[],[7152],{"type":50,"value":1362},{"type":50,"value":7154},", and ",{"type":44,"tag":81,"props":7156,"children":7158},{"className":7157},[],[7159],{"type":50,"value":1661},{"type":50,"value":7161}," handlers immediately after getting the provider.",{"type":44,"tag":70,"props":7163,"children":7164},{},[7165,7176,7178,7184],{"type":44,"tag":6863,"props":7166,"children":7167},{},[7168,7174],{"type":44,"tag":81,"props":7169,"children":7171},{"className":7170},[],[7172],{"type":50,"value":7173},"chainConfiguration",{"type":50,"value":7175}," is a fallback, not a forced add",{"type":50,"value":7177}," — it is only used if the wallet doesn't already have the chain configured. If the chain exists, only ",{"type":44,"tag":81,"props":7179,"children":7181},{"className":7180},[],[7182],{"type":50,"value":7183},"wallet_switchEthereumChain",{"type":50,"value":7185}," fires.",{"type":44,"tag":70,"props":7187,"children":7188},{},[7189,7194,7196,7201,7203,7208,7209,7214,7216,7222,7224,7229,7231,7237],{"type":44,"tag":6863,"props":7190,"children":7191},{},[7192],{"type":50,"value":7193},"Page reloads restore automatically",{"type":50,"value":7195}," — the EVM client syncs any persisted session before ",{"type":44,"tag":81,"props":7197,"children":7199},{"className":7198},[],[7200],{"type":50,"value":86},{"type":50,"value":7202}," resolves and re-emits ",{"type":44,"tag":81,"props":7204,"children":7206},{"className":7205},[],[7207],{"type":50,"value":991},{"type":50,"value":4164},{"type":44,"tag":81,"props":7210,"children":7212},{"className":7211},[],[7213],{"type":50,"value":999},{"type":50,"value":7215}," on the provider. The EVM client has no ",{"type":44,"tag":81,"props":7217,"children":7219},{"className":7218},[],[7220],{"type":50,"value":7221},".on()",{"type":50,"value":7223}," method and no ",{"type":44,"tag":81,"props":7225,"children":7227},{"className":7226},[],[7228],{"type":50,"value":983},{"type":50,"value":7230}," handler — use the provider events (or ",{"type":44,"tag":81,"props":7232,"children":7234},{"className":7233},[],[7235],{"type":50,"value":7236},"eventHandlers.connect",{"type":50,"value":7238},") to restore UI state.",{"type":44,"tag":70,"props":7240,"children":7241},{},[7242,7247],{"type":44,"tag":6863,"props":7243,"children":7244},{},[7245],{"type":50,"value":7246},"Error code 4001",{"type":50,"value":7248}," means the user deliberately rejected — show a retry option, not a crash screen.",{"type":44,"tag":70,"props":7250,"children":7251},{},[7252,7257,7259,7264],{"type":44,"tag":6863,"props":7253,"children":7254},{},[7255],{"type":50,"value":7256},"Error code -32002",{"type":50,"value":7258}," means a request is already pending — do not send another ",{"type":44,"tag":81,"props":7260,"children":7262},{"className":7261},[],[7263],{"type":50,"value":6938},{"type":50,"value":7265},". Wait for the user to respond in MetaMask.",{"type":44,"tag":3042,"props":7267,"children":7268},{},[7269],{"type":50,"value":7270},"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":7272,"total":888},[7273,7292,7306,7318,7327,7337,7353,7369,7384,7395,7405,7415],{"slug":7274,"name":7274,"fn":7275,"description":7276,"org":7277,"tags":7278,"stars":3456,"repoUrl":7290,"updatedAt":7291},"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},[7279,7282,7285,7286,7289],{"name":7280,"slug":7281,"type":15},"API Development","api-development",{"name":7283,"slug":7284,"type":15},"Auth","auth",{"name":23,"slug":24,"type":15},{"name":7287,"slug":7288,"type":15},"Permissions","permissions",{"name":20,"slug":21,"type":15},"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fsmart-accounts-kit","2026-07-13T06:11:32.8327",{"slug":7293,"name":7293,"fn":7294,"description":7295,"org":7296,"tags":7297,"stars":3456,"repoUrl":7290,"updatedAt":7305},"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},[7298,7299,7302,7303],{"name":7280,"slug":7281,"type":15},{"name":7300,"slug":7301,"type":15},"Payments","payments",{"name":20,"slug":21,"type":15},{"name":7304,"slug":7304,"type":15},"x402","2026-07-13T06:11:30.877136",{"slug":7307,"name":7307,"fn":7308,"description":7309,"org":7310,"tags":7311,"stars":421,"repoUrl":7316,"updatedAt":7317},"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},[7312,7313],{"name":7280,"slug":7281,"type":15},{"name":7314,"slug":7315,"type":15},"Search","search","https:\u002F\u002Fgithub.com\u002FMetaMask\u002Focap-kernel","2026-07-13T06:12:37.024095",{"slug":8,"name":8,"fn":7319,"description":7320,"org":7321,"tags":7322,"stars":421,"repoUrl":7316,"updatedAt":7326},"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},[7323,7324,7325],{"name":7280,"slug":7281,"type":15},{"name":23,"slug":24,"type":15},{"name":20,"slug":21,"type":15},"2026-07-13T06:12:33.955806",{"slug":7328,"name":7328,"fn":7329,"description":7330,"org":7331,"tags":7332,"stars":421,"repoUrl":7316,"updatedAt":7336},"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},[7333,7334,7335],{"name":23,"slug":24,"type":15},{"name":7300,"slug":7301,"type":15},{"name":20,"slug":21,"type":15},"2026-07-13T06:12:35.380244",{"slug":7338,"name":7338,"fn":7339,"description":7340,"org":7341,"tags":7342,"stars":395,"repoUrl":7351,"updatedAt":7352},"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},[7343,7344,7345,7348,7350],{"name":7280,"slug":7281,"type":15},{"name":23,"slug":24,"type":15},{"name":7346,"slug":7347,"type":15},"Solana","solana",{"name":7349,"slug":7349,"type":15},"wagmi",{"name":20,"slug":21,"type":15},"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fconnect-monorepo","2026-07-13T06:11:34.445665",{"slug":7354,"name":7354,"fn":7355,"description":7356,"org":7357,"tags":7358,"stars":323,"repoUrl":7367,"updatedAt":7368},"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},[7359,7362,7365,7366],{"name":7360,"slug":7361,"type":15},"Blockchain","blockchain",{"name":7363,"slug":7364,"type":15},"DeFi","defi",{"name":23,"slug":24,"type":15},{"name":20,"slug":21,"type":15},"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fagent-skills","2026-08-01T05:45:07.976522",{"slug":7370,"name":7370,"fn":7371,"description":7372,"org":7373,"tags":7374,"stars":28,"repoUrl":29,"updatedAt":7383},"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},[7375,7376,7379,7382],{"name":23,"slug":24,"type":15},{"name":7377,"slug":7378,"type":15},"Migration","migration",{"name":7380,"slug":7381,"type":15},"SDK","sdk",{"name":20,"slug":21,"type":15},"2026-07-13T06:11:46.427441",{"slug":7385,"name":7385,"fn":7386,"description":7387,"org":7388,"tags":7389,"stars":28,"repoUrl":29,"updatedAt":7394},"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},[7390,7391,7392,7393],{"name":23,"slug":24,"type":15},{"name":7377,"slug":7378,"type":15},{"name":7349,"slug":7349,"type":15},{"name":20,"slug":21,"type":15},"2026-07-13T06:12:23.110706",{"slug":7396,"name":7396,"fn":7397,"description":7398,"org":7399,"tags":7400,"stars":28,"repoUrl":29,"updatedAt":7404},"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},[7401,7402,7403],{"name":7280,"slug":7281,"type":15},{"name":23,"slug":24,"type":15},{"name":20,"slug":21,"type":15},"2026-07-13T06:11:56.866623",{"slug":7406,"name":7406,"fn":7407,"description":7408,"org":7409,"tags":7410,"stars":28,"repoUrl":29,"updatedAt":7414},"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},[7411,7412,7413],{"name":7300,"slug":7301,"type":15},{"name":7346,"slug":7347,"type":15},{"name":20,"slug":21,"type":15},"2026-07-13T06:12:03.942378",{"slug":4,"name":4,"fn":5,"description":6,"org":7416,"tags":7417,"stars":28,"repoUrl":29,"updatedAt":30},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7418,7419,7420,7421,7422],{"name":23,"slug":24,"type":15},{"name":26,"slug":27,"type":15},{"name":17,"slug":18,"type":15},{"name":13,"slug":14,"type":15},{"name":20,"slug":21,"type":15},{"items":7424,"total":692},[7425,7432,7439,7445,7451,7459,7473],{"slug":7370,"name":7370,"fn":7371,"description":7372,"org":7426,"tags":7427,"stars":28,"repoUrl":29,"updatedAt":7383},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7428,7429,7430,7431],{"name":23,"slug":24,"type":15},{"name":7377,"slug":7378,"type":15},{"name":7380,"slug":7381,"type":15},{"name":20,"slug":21,"type":15},{"slug":7385,"name":7385,"fn":7386,"description":7387,"org":7433,"tags":7434,"stars":28,"repoUrl":29,"updatedAt":7394},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7435,7436,7437,7438],{"name":23,"slug":24,"type":15},{"name":7377,"slug":7378,"type":15},{"name":7349,"slug":7349,"type":15},{"name":20,"slug":21,"type":15},{"slug":7396,"name":7396,"fn":7397,"description":7398,"org":7440,"tags":7441,"stars":28,"repoUrl":29,"updatedAt":7404},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7442,7443,7444],{"name":7280,"slug":7281,"type":15},{"name":23,"slug":24,"type":15},{"name":20,"slug":21,"type":15},{"slug":7406,"name":7406,"fn":7407,"description":7408,"org":7446,"tags":7447,"stars":28,"repoUrl":29,"updatedAt":7414},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7448,7449,7450],{"name":7300,"slug":7301,"type":15},{"name":7346,"slug":7347,"type":15},{"name":20,"slug":21,"type":15},{"slug":4,"name":4,"fn":5,"description":6,"org":7452,"tags":7453,"stars":28,"repoUrl":29,"updatedAt":30},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[7454,7455,7456,7457,7458],{"name":23,"slug":24,"type":15},{"name":26,"slug":27,"type":15},{"name":17,"slug":18,"type":15},{"name":13,"slug":14,"type":15},{"name":20,"slug":21,"type":15},{"slug":7460,"name":7460,"fn":7461,"description":7462,"org":7463,"tags":7464,"stars":28,"repoUrl":29,"updatedAt":7472},"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},[7465,7466,7467,7468,7471],{"name":7280,"slug":7281,"type":15},{"name":23,"slug":24,"type":15},{"name":26,"slug":27,"type":15},{"name":7469,"slug":7470,"type":15},"React","react",{"name":20,"slug":21,"type":15},"2026-07-13T06:11:52.764143",{"slug":7474,"name":7474,"fn":7475,"description":7476,"org":7477,"tags":7478,"stars":28,"repoUrl":29,"updatedAt":7487},"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},[7479,7480,7483,7486],{"name":23,"slug":24,"type":15},{"name":7481,"slug":7482,"type":15},"Mobile","mobile",{"name":7484,"slug":7485,"type":15},"React Native","react-native",{"name":20,"slug":21,"type":15},"2026-07-13T06:12:11.764689"]