[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-metamask-setup-solana-react-app":3,"mdc--hrdjbs-key":35,"related-org-metamask-setup-solana-react-app":3919,"related-repo-metamask-setup-solana-react-app":4077},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":25,"repoUrl":26,"updatedAt":27,"license":28,"forks":25,"topics":29,"repo":30,"sourceUrl":33,"mdContent":34},"setup-solana-react-app","integrate MetaMask with Solana in React","Set up a React app with @metamask\u002Fconnect-solana and the Solana wallet adapter. Use when integrating MetaMask with Solana in React, configuring WalletProvider, or building connect\u002Fsign\u002Fsend flows with useWallet.",{"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],{"name":13,"slug":14,"type":15},"React","react","tag",{"name":17,"slug":18,"type":15},"Web3","web3",{"name":20,"slug":21,"type":15},"Solana","solana",{"name":23,"slug":24,"type":15},"Frontend","frontend",2,"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fmetamask-connect-cursor-plugin","2026-07-13T06:12:02.672684",null,[],{"repoUrl":26,"stars":25,"forks":25,"topics":31,"description":32},[],"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-solana-react-app","---\nname: setup-solana-react-app\ndescription: Set up a React app with @metamask\u002Fconnect-solana and the Solana wallet adapter. Use when integrating MetaMask with Solana in React, configuring WalletProvider, or building connect\u002Fsign\u002Fsend flows with useWallet.\n---\n# Setup Solana React App with MetaMask\n\n## When to use\n\nUse this skill when:\n- Integrating MetaMask with Solana in a React web application\n- Configuring `@solana\u002Fwallet-adapter-react` with MetaMask Connect's wallet-standard discovery\n- Building connect, sign message, or send transaction flows using `useWallet`\n- The MetaMask wallet is not appearing in the Solana wallet adapter\n\n## Workflow\n\n### Step 1: Install dependencies\n\n```bash\nnpm install @metamask\u002Fconnect-solana @metamask\u002Fconnect-multichain @solana\u002Fwallet-adapter-react @solana\u002Fwallet-adapter-react-ui @solana\u002Fwallet-adapter-base @solana\u002Fweb3.js\n```\n\n`@metamask\u002Fconnect-multichain` is a regular dependency of `@metamask\u002Fconnect-solana` and is installed transitively. (Only the 2.0.0 release briefly made it a peer dependency; 2.1.0 reverted that.) Installing it explicitly is harmless but not required. The SDK warns at runtime if duplicate or mismatched copies are resolved.\n\n### Step 2: Create the Solana client early in app startup\n\nInitialize `createSolanaClient` early (e.g. in your bootstrap before rendering). It does **not** need to resolve before the first `WalletProvider` render — wallet-standard supports late registration, and the SDK registers the wallet about 1 second after the factory resolves. The adapter picks it up via the wallet-standard register event whenever it lands. If your UI asserts \"MetaMask is available\" synchronously, gate that specific UI on the client being ready.\n\n```typescript\n\u002F\u002F src\u002Fmain.tsx (or index.tsx)\nimport { createSolanaClient } from '@metamask\u002Fconnect-solana';\nimport { createRoot } from 'react-dom\u002Fclient';\nimport App from '.\u002FApp';\n\nasync function bootstrap() {\n  await createSolanaClient({\n    dapp: {\n      name: 'My Solana DApp',\n      url: window.location.href,\n    },\n  });\n\n  const root = createRoot(document.getElementById('root')!);\n  root.render(\u003CApp \u002F>);\n}\n\nbootstrap();\n```\n\n**`createSolanaClient` options:**\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `dapp.name` | `string` | **Required.** Display name of your dApp |\n| `dapp.url` | `string` | Optional. dApp URL |\n| `dapp.iconUrl` | `string` | Optional. dApp icon |\n| `api.supportedNetworks` | `Partial\u003CRecord\u003C'mainnet' \\| 'devnet' \\| 'testnet', string>>` | Map network names to RPC URLs |\n| `debug` | `boolean` | Reserved — accepted in the options type but **not currently forwarded** by `createSolanaClient` (no effect yet) |\n| `skipAutoRegister` | `boolean` | Skip automatic wallet-standard registration |\n| `analytics.integrationType` | `string` | Optional. Tag analytics events with an integration identifier (added in `@metamask\u002Fconnect-solana` 0.8.0) |\n\n**Solana CAIP chain IDs:**\n\n| Network | CAIP ID |\n|---------|---------|\n| Mainnet | `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp` |\n| Devnet | `solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1` |\n| Testnet | `solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z` |\n\n### Step 3: Configure the WalletProvider\n\nPass an **empty** `wallets` array. MetaMask registers via the wallet-standard auto-discovery protocol and must not be added manually.\n\n```tsx\n\u002F\u002F src\u002FApp.tsx\nimport { ConnectionProvider, WalletProvider } from '@solana\u002Fwallet-adapter-react';\nimport { WalletModalProvider } from '@solana\u002Fwallet-adapter-react-ui';\nimport { clusterApiUrl } from '@solana\u002Fweb3.js';\nimport '@solana\u002Fwallet-adapter-react-ui\u002Fstyles.css';\nimport { SolanaDemo } from '.\u002FSolanaDemo';\n\nconst endpoint = clusterApiUrl('mainnet-beta');\n\nexport default function App() {\n  return (\n    \u003CConnectionProvider endpoint={endpoint}>\n      \u003CWalletProvider wallets={[]} autoConnect>\n        \u003CWalletModalProvider>\n          \u003CSolanaDemo \u002F>\n        \u003C\u002FWalletModalProvider>\n      \u003C\u002FWalletProvider>\n    \u003C\u002FConnectionProvider>\n  );\n}\n```\n\n### Step 4: Find the MetaMask wallet\n\nWhen using `useWallet`, you can verify MetaMask is connected by checking the wallet name. The wallet-standard name is exactly `\"MetaMask\"` (case-sensitive).\n\n```typescript\nimport { useWallet } from '@solana\u002Fwallet-adapter-react';\n\nconst { wallet } = useWallet();\nconst isMetaMask = wallet?.adapter.name === 'MetaMask';\n```\n\n### Step 5: Build the full component\n\n```tsx\n\u002F\u002F src\u002FSolanaDemo.tsx\nimport { useWallet, useConnection } from '@solana\u002Fwallet-adapter-react';\nimport { WalletMultiButton } from '@solana\u002Fwallet-adapter-react-ui';\nimport {\n  Transaction,\n  SystemProgram,\n  PublicKey,\n  LAMPORTS_PER_SOL,\n} from '@solana\u002Fweb3.js';\n\nexport function SolanaDemo() {\n  const { publicKey, sendTransaction, signMessage, connected, wallet } = useWallet();\n  const { connection } = useConnection();\n\n  const handleSignMessage = async () => {\n    if (!signMessage) return;\n    const message = new TextEncoder().encode('Hello from MetaMask on Solana!');\n    try {\n      const signature = await signMessage(message);\n      console.log('Signature:', Buffer.from(signature).toString('hex'));\n    } catch (err) {\n      console.error('Sign message failed:', err);\n    }\n  };\n\n  const handleSendTransaction = async () => {\n    if (!publicKey || !sendTransaction) return;\n    try {\n      const { blockhash } = await connection.getLatestBlockhash();\n      const transaction = new Transaction().add(\n        SystemProgram.transfer({\n          fromPubkey: publicKey,\n          toPubkey: new PublicKey('11111111111111111111111111111112'),\n          lamports: 0.001 * LAMPORTS_PER_SOL,\n        }),\n      );\n      transaction.recentBlockhash = blockhash;\n      transaction.feePayer = publicKey;\n\n      const txSignature = await sendTransaction(transaction, connection);\n      const confirmation = await connection.confirmTransaction(txSignature, 'confirmed');\n      console.log('Transaction confirmed:', txSignature);\n    } catch (err) {\n      console.error('Transaction failed:', err);\n    }\n  };\n\n  return (\n    \u003Cdiv>\n      \u003CWalletMultiButton \u002F>\n      {connected && publicKey && (\n        \u003Cdiv>\n          \u003Cp>Wallet: {wallet?.adapter.name}\u003C\u002Fp>\n          \u003Cp>Address: {publicKey.toBase58()}\u003C\u002Fp>\n          \u003Cbutton onClick={handleSignMessage}>Sign Message\u003C\u002Fbutton>\n          \u003Cbutton onClick={handleSendTransaction}>Send 0.001 SOL\u003C\u002Fbutton>\n        \u003C\u002Fdiv>\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Step 6: Chrome on Android workaround\n\nChrome on Android has a known bug where the page may unload before MetaMask can respond. Add a `beforeunload` patch in your entry file:\n\n```typescript\nwindow.addEventListener('beforeunload', (e) => {\n  e.preventDefault();\n  e.returnValue = '';\n});\n```\n\n## Important Notes\n\n- **Initialize `createSolanaClient` early, but rendering need not wait** — wallet registration happens shortly *after* the factory resolves (the SDK defers it ~1s), and the wallet adapter discovers late registrations via the wallet-standard register event. Only gate UI that assumes MetaMask is already in the wallet list.\n- **`wallets` prop must be `[]`** — MetaMask uses wallet-standard auto-discovery. Passing wallet adapter instances manually will not work and may cause duplicates with other wallets.\n- **The wallet name is exactly `\"MetaMask\"`** — case-sensitive. Use this to identify the MetaMask wallet in the adapter list. Renamed from `\"MetaMask Connect\"` in `@metamask\u002Fconnect-solana` 1.0.0; since that release, the client will also defer to an already-injected Solana provider (e.g. the MetaMask browser extension) instead of announcing a second `\"MetaMask\"` entry.\n- **Eager provider initialization + stable `getWallet()`** — since `@metamask\u002Fconnect-solana` 1.1.0, `createSolanaClient()` eagerly initializes the Solana wallet provider during creation; if the underlying multichain session already contains Solana scopes, the provider's accounts are populated by the time the client resolves (no need to wait for `wallet_sessionChanged` on cold start). `getWallet()` also returns the same wallet instance on every call now — safe to cache in a `useRef` \u002F `useMemo` value, no need to call it on every render.\n- **`getInfuraRpcUrls` helper** — use `getInfuraRpcUrls({ infuraApiKey: 'YOUR_KEY', networks: ['mainnet', 'devnet'] })` from `@metamask\u002Fconnect-solana` to auto-generate `supportedNetworks` from Infura.\n- **Solana networks** — mainnet, devnet, and testnet scopes are all modeled by the SDK and wallet-standard layer. Non-mainnet availability depends on the connected MetaMask build\u002Fversion, so handle connection errors rather than assuming a cluster is present.\n- **`disconnect()` only revokes Solana scopes** — if the user also has EVM sessions, those remain active. Each chain family manages its own session lifecycle.\n- **Chrome on Android** — a known browser bug can interrupt the connection flow. Apply the `beforeunload` workaround shown in Step 6.\n",{"data":36,"body":37},{"name":4,"description":6},{"type":38,"children":39},"root",[40,49,56,62,102,108,115,174,193,199,228,708,721,958,966,1039,1045,1065,1561,1567,1587,1739,1745,3525,3531,3544,3679,3685,3913],{"type":41,"tag":42,"props":43,"children":45},"element","h1",{"id":44},"setup-solana-react-app-with-metamask",[46],{"type":47,"value":48},"text","Setup Solana React App with MetaMask",{"type":41,"tag":50,"props":51,"children":53},"h2",{"id":52},"when-to-use",[54],{"type":47,"value":55},"When to use",{"type":41,"tag":57,"props":58,"children":59},"p",{},[60],{"type":47,"value":61},"Use this skill when:",{"type":41,"tag":63,"props":64,"children":65},"ul",{},[66,72,86,97],{"type":41,"tag":67,"props":68,"children":69},"li",{},[70],{"type":47,"value":71},"Integrating MetaMask with Solana in a React web application",{"type":41,"tag":67,"props":73,"children":74},{},[75,77,84],{"type":47,"value":76},"Configuring ",{"type":41,"tag":78,"props":79,"children":81},"code",{"className":80},[],[82],{"type":47,"value":83},"@solana\u002Fwallet-adapter-react",{"type":47,"value":85}," with MetaMask Connect's wallet-standard discovery",{"type":41,"tag":67,"props":87,"children":88},{},[89,91],{"type":47,"value":90},"Building connect, sign message, or send transaction flows using ",{"type":41,"tag":78,"props":92,"children":94},{"className":93},[],[95],{"type":47,"value":96},"useWallet",{"type":41,"tag":67,"props":98,"children":99},{},[100],{"type":47,"value":101},"The MetaMask wallet is not appearing in the Solana wallet adapter",{"type":41,"tag":50,"props":103,"children":105},{"id":104},"workflow",[106],{"type":47,"value":107},"Workflow",{"type":41,"tag":109,"props":110,"children":112},"h3",{"id":111},"step-1-install-dependencies",[113],{"type":47,"value":114},"Step 1: Install dependencies",{"type":41,"tag":116,"props":117,"children":122},"pre",{"className":118,"code":119,"language":120,"meta":121,"style":121},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install @metamask\u002Fconnect-solana @metamask\u002Fconnect-multichain @solana\u002Fwallet-adapter-react @solana\u002Fwallet-adapter-react-ui @solana\u002Fwallet-adapter-base @solana\u002Fweb3.js\n","bash","",[123],{"type":41,"tag":78,"props":124,"children":125},{"__ignoreMap":121},[126],{"type":41,"tag":127,"props":128,"children":131},"span",{"class":129,"line":130},"line",1,[132,138,144,149,154,159,164,169],{"type":41,"tag":127,"props":133,"children":135},{"style":134},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[136],{"type":47,"value":137},"npm",{"type":41,"tag":127,"props":139,"children":141},{"style":140},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[142],{"type":47,"value":143}," install",{"type":41,"tag":127,"props":145,"children":146},{"style":140},[147],{"type":47,"value":148}," @metamask\u002Fconnect-solana",{"type":41,"tag":127,"props":150,"children":151},{"style":140},[152],{"type":47,"value":153}," @metamask\u002Fconnect-multichain",{"type":41,"tag":127,"props":155,"children":156},{"style":140},[157],{"type":47,"value":158}," @solana\u002Fwallet-adapter-react",{"type":41,"tag":127,"props":160,"children":161},{"style":140},[162],{"type":47,"value":163}," @solana\u002Fwallet-adapter-react-ui",{"type":41,"tag":127,"props":165,"children":166},{"style":140},[167],{"type":47,"value":168}," @solana\u002Fwallet-adapter-base",{"type":41,"tag":127,"props":170,"children":171},{"style":140},[172],{"type":47,"value":173}," @solana\u002Fweb3.js\n",{"type":41,"tag":57,"props":175,"children":176},{},[177,183,185,191],{"type":41,"tag":78,"props":178,"children":180},{"className":179},[],[181],{"type":47,"value":182},"@metamask\u002Fconnect-multichain",{"type":47,"value":184}," is a regular dependency of ",{"type":41,"tag":78,"props":186,"children":188},{"className":187},[],[189],{"type":47,"value":190},"@metamask\u002Fconnect-solana",{"type":47,"value":192}," 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":41,"tag":109,"props":194,"children":196},{"id":195},"step-2-create-the-solana-client-early-in-app-startup",[197],{"type":47,"value":198},"Step 2: Create the Solana client early in app startup",{"type":41,"tag":57,"props":200,"children":201},{},[202,204,210,212,218,220,226],{"type":47,"value":203},"Initialize ",{"type":41,"tag":78,"props":205,"children":207},{"className":206},[],[208],{"type":47,"value":209},"createSolanaClient",{"type":47,"value":211}," early (e.g. in your bootstrap before rendering). It does ",{"type":41,"tag":213,"props":214,"children":215},"strong",{},[216],{"type":47,"value":217},"not",{"type":47,"value":219}," need to resolve before the first ",{"type":41,"tag":78,"props":221,"children":223},{"className":222},[],[224],{"type":47,"value":225},"WalletProvider",{"type":47,"value":227}," render — wallet-standard supports late registration, and the SDK registers the wallet about 1 second after the factory resolves. The adapter picks it up via the wallet-standard register event whenever it lands. If your UI asserts \"MetaMask is available\" synchronously, gate that specific UI on the client being ready.",{"type":41,"tag":116,"props":229,"children":233},{"className":230,"code":231,"language":232,"meta":121,"style":121},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F src\u002Fmain.tsx (or index.tsx)\nimport { createSolanaClient } from '@metamask\u002Fconnect-solana';\nimport { createRoot } from 'react-dom\u002Fclient';\nimport App from '.\u002FApp';\n\nasync function bootstrap() {\n  await createSolanaClient({\n    dapp: {\n      name: 'My Solana DApp',\n      url: window.location.href,\n    },\n  });\n\n  const root = createRoot(document.getElementById('root')!);\n  root.render(\u003CApp \u002F>);\n}\n\nbootstrap();\n","typescript",[234],{"type":41,"tag":78,"props":235,"children":236},{"__ignoreMap":121},[237,246,296,338,373,383,414,438,456,487,528,537,555,563,637,674,683,691],{"type":41,"tag":127,"props":238,"children":239},{"class":129,"line":130},[240],{"type":41,"tag":127,"props":241,"children":243},{"style":242},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[244],{"type":47,"value":245},"\u002F\u002F src\u002Fmain.tsx (or index.tsx)\n",{"type":41,"tag":127,"props":247,"children":248},{"class":129,"line":25},[249,255,261,267,272,277,282,286,291],{"type":41,"tag":127,"props":250,"children":252},{"style":251},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[253],{"type":47,"value":254},"import",{"type":41,"tag":127,"props":256,"children":258},{"style":257},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[259],{"type":47,"value":260}," {",{"type":41,"tag":127,"props":262,"children":264},{"style":263},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[265],{"type":47,"value":266}," createSolanaClient",{"type":41,"tag":127,"props":268,"children":269},{"style":257},[270],{"type":47,"value":271}," }",{"type":41,"tag":127,"props":273,"children":274},{"style":251},[275],{"type":47,"value":276}," from",{"type":41,"tag":127,"props":278,"children":279},{"style":257},[280],{"type":47,"value":281}," '",{"type":41,"tag":127,"props":283,"children":284},{"style":140},[285],{"type":47,"value":190},{"type":41,"tag":127,"props":287,"children":288},{"style":257},[289],{"type":47,"value":290},"'",{"type":41,"tag":127,"props":292,"children":293},{"style":257},[294],{"type":47,"value":295},";\n",{"type":41,"tag":127,"props":297,"children":299},{"class":129,"line":298},3,[300,304,308,313,317,321,325,330,334],{"type":41,"tag":127,"props":301,"children":302},{"style":251},[303],{"type":47,"value":254},{"type":41,"tag":127,"props":305,"children":306},{"style":257},[307],{"type":47,"value":260},{"type":41,"tag":127,"props":309,"children":310},{"style":263},[311],{"type":47,"value":312}," createRoot",{"type":41,"tag":127,"props":314,"children":315},{"style":257},[316],{"type":47,"value":271},{"type":41,"tag":127,"props":318,"children":319},{"style":251},[320],{"type":47,"value":276},{"type":41,"tag":127,"props":322,"children":323},{"style":257},[324],{"type":47,"value":281},{"type":41,"tag":127,"props":326,"children":327},{"style":140},[328],{"type":47,"value":329},"react-dom\u002Fclient",{"type":41,"tag":127,"props":331,"children":332},{"style":257},[333],{"type":47,"value":290},{"type":41,"tag":127,"props":335,"children":336},{"style":257},[337],{"type":47,"value":295},{"type":41,"tag":127,"props":339,"children":341},{"class":129,"line":340},4,[342,346,351,356,360,365,369],{"type":41,"tag":127,"props":343,"children":344},{"style":251},[345],{"type":47,"value":254},{"type":41,"tag":127,"props":347,"children":348},{"style":263},[349],{"type":47,"value":350}," App ",{"type":41,"tag":127,"props":352,"children":353},{"style":251},[354],{"type":47,"value":355},"from",{"type":41,"tag":127,"props":357,"children":358},{"style":257},[359],{"type":47,"value":281},{"type":41,"tag":127,"props":361,"children":362},{"style":140},[363],{"type":47,"value":364},".\u002FApp",{"type":41,"tag":127,"props":366,"children":367},{"style":257},[368],{"type":47,"value":290},{"type":41,"tag":127,"props":370,"children":371},{"style":257},[372],{"type":47,"value":295},{"type":41,"tag":127,"props":374,"children":376},{"class":129,"line":375},5,[377],{"type":41,"tag":127,"props":378,"children":380},{"emptyLinePlaceholder":379},true,[381],{"type":47,"value":382},"\n",{"type":41,"tag":127,"props":384,"children":386},{"class":129,"line":385},6,[387,393,398,404,409],{"type":41,"tag":127,"props":388,"children":390},{"style":389},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[391],{"type":47,"value":392},"async",{"type":41,"tag":127,"props":394,"children":395},{"style":389},[396],{"type":47,"value":397}," function",{"type":41,"tag":127,"props":399,"children":401},{"style":400},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[402],{"type":47,"value":403}," bootstrap",{"type":41,"tag":127,"props":405,"children":406},{"style":257},[407],{"type":47,"value":408},"()",{"type":41,"tag":127,"props":410,"children":411},{"style":257},[412],{"type":47,"value":413}," {\n",{"type":41,"tag":127,"props":415,"children":417},{"class":129,"line":416},7,[418,423,427,433],{"type":41,"tag":127,"props":419,"children":420},{"style":251},[421],{"type":47,"value":422},"  await",{"type":41,"tag":127,"props":424,"children":425},{"style":400},[426],{"type":47,"value":266},{"type":41,"tag":127,"props":428,"children":430},{"style":429},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[431],{"type":47,"value":432},"(",{"type":41,"tag":127,"props":434,"children":435},{"style":257},[436],{"type":47,"value":437},"{\n",{"type":41,"tag":127,"props":439,"children":441},{"class":129,"line":440},8,[442,447,452],{"type":41,"tag":127,"props":443,"children":444},{"style":429},[445],{"type":47,"value":446},"    dapp",{"type":41,"tag":127,"props":448,"children":449},{"style":257},[450],{"type":47,"value":451},":",{"type":41,"tag":127,"props":453,"children":454},{"style":257},[455],{"type":47,"value":413},{"type":41,"tag":127,"props":457,"children":459},{"class":129,"line":458},9,[460,465,469,473,478,482],{"type":41,"tag":127,"props":461,"children":462},{"style":429},[463],{"type":47,"value":464},"      name",{"type":41,"tag":127,"props":466,"children":467},{"style":257},[468],{"type":47,"value":451},{"type":41,"tag":127,"props":470,"children":471},{"style":257},[472],{"type":47,"value":281},{"type":41,"tag":127,"props":474,"children":475},{"style":140},[476],{"type":47,"value":477},"My Solana DApp",{"type":41,"tag":127,"props":479,"children":480},{"style":257},[481],{"type":47,"value":290},{"type":41,"tag":127,"props":483,"children":484},{"style":257},[485],{"type":47,"value":486},",\n",{"type":41,"tag":127,"props":488,"children":490},{"class":129,"line":489},10,[491,496,500,505,510,515,519,524],{"type":41,"tag":127,"props":492,"children":493},{"style":429},[494],{"type":47,"value":495},"      url",{"type":41,"tag":127,"props":497,"children":498},{"style":257},[499],{"type":47,"value":451},{"type":41,"tag":127,"props":501,"children":502},{"style":263},[503],{"type":47,"value":504}," window",{"type":41,"tag":127,"props":506,"children":507},{"style":257},[508],{"type":47,"value":509},".",{"type":41,"tag":127,"props":511,"children":512},{"style":263},[513],{"type":47,"value":514},"location",{"type":41,"tag":127,"props":516,"children":517},{"style":257},[518],{"type":47,"value":509},{"type":41,"tag":127,"props":520,"children":521},{"style":263},[522],{"type":47,"value":523},"href",{"type":41,"tag":127,"props":525,"children":526},{"style":257},[527],{"type":47,"value":486},{"type":41,"tag":127,"props":529,"children":531},{"class":129,"line":530},11,[532],{"type":41,"tag":127,"props":533,"children":534},{"style":257},[535],{"type":47,"value":536},"    },\n",{"type":41,"tag":127,"props":538,"children":540},{"class":129,"line":539},12,[541,546,551],{"type":41,"tag":127,"props":542,"children":543},{"style":257},[544],{"type":47,"value":545},"  }",{"type":41,"tag":127,"props":547,"children":548},{"style":429},[549],{"type":47,"value":550},")",{"type":41,"tag":127,"props":552,"children":553},{"style":257},[554],{"type":47,"value":295},{"type":41,"tag":127,"props":556,"children":558},{"class":129,"line":557},13,[559],{"type":41,"tag":127,"props":560,"children":561},{"emptyLinePlaceholder":379},[562],{"type":47,"value":382},{"type":41,"tag":127,"props":564,"children":566},{"class":129,"line":565},14,[567,572,577,582,586,590,595,599,604,608,612,616,620,624,629,633],{"type":41,"tag":127,"props":568,"children":569},{"style":389},[570],{"type":47,"value":571},"  const",{"type":41,"tag":127,"props":573,"children":574},{"style":263},[575],{"type":47,"value":576}," root",{"type":41,"tag":127,"props":578,"children":579},{"style":257},[580],{"type":47,"value":581}," =",{"type":41,"tag":127,"props":583,"children":584},{"style":400},[585],{"type":47,"value":312},{"type":41,"tag":127,"props":587,"children":588},{"style":429},[589],{"type":47,"value":432},{"type":41,"tag":127,"props":591,"children":592},{"style":263},[593],{"type":47,"value":594},"document",{"type":41,"tag":127,"props":596,"children":597},{"style":257},[598],{"type":47,"value":509},{"type":41,"tag":127,"props":600,"children":601},{"style":400},[602],{"type":47,"value":603},"getElementById",{"type":41,"tag":127,"props":605,"children":606},{"style":429},[607],{"type":47,"value":432},{"type":41,"tag":127,"props":609,"children":610},{"style":257},[611],{"type":47,"value":290},{"type":41,"tag":127,"props":613,"children":614},{"style":140},[615],{"type":47,"value":38},{"type":41,"tag":127,"props":617,"children":618},{"style":257},[619],{"type":47,"value":290},{"type":41,"tag":127,"props":621,"children":622},{"style":429},[623],{"type":47,"value":550},{"type":41,"tag":127,"props":625,"children":626},{"style":257},[627],{"type":47,"value":628},"!",{"type":41,"tag":127,"props":630,"children":631},{"style":429},[632],{"type":47,"value":550},{"type":41,"tag":127,"props":634,"children":635},{"style":257},[636],{"type":47,"value":295},{"type":41,"tag":127,"props":638,"children":640},{"class":129,"line":639},15,[641,646,650,655,660,665,670],{"type":41,"tag":127,"props":642,"children":643},{"style":263},[644],{"type":47,"value":645},"  root",{"type":41,"tag":127,"props":647,"children":648},{"style":257},[649],{"type":47,"value":509},{"type":41,"tag":127,"props":651,"children":652},{"style":400},[653],{"type":47,"value":654},"render",{"type":41,"tag":127,"props":656,"children":657},{"style":429},[658],{"type":47,"value":659},"(\u003C",{"type":41,"tag":127,"props":661,"children":662},{"style":134},[663],{"type":47,"value":664},"App",{"type":41,"tag":127,"props":666,"children":667},{"style":429},[668],{"type":47,"value":669}," \u002F>)",{"type":41,"tag":127,"props":671,"children":672},{"style":257},[673],{"type":47,"value":295},{"type":41,"tag":127,"props":675,"children":677},{"class":129,"line":676},16,[678],{"type":41,"tag":127,"props":679,"children":680},{"style":257},[681],{"type":47,"value":682},"}\n",{"type":41,"tag":127,"props":684,"children":686},{"class":129,"line":685},17,[687],{"type":41,"tag":127,"props":688,"children":689},{"emptyLinePlaceholder":379},[690],{"type":47,"value":382},{"type":41,"tag":127,"props":692,"children":694},{"class":129,"line":693},18,[695,700,704],{"type":41,"tag":127,"props":696,"children":697},{"style":400},[698],{"type":47,"value":699},"bootstrap",{"type":41,"tag":127,"props":701,"children":702},{"style":263},[703],{"type":47,"value":408},{"type":41,"tag":127,"props":705,"children":706},{"style":257},[707],{"type":47,"value":295},{"type":41,"tag":57,"props":709,"children":710},{},[711],{"type":41,"tag":213,"props":712,"children":713},{},[714,719],{"type":41,"tag":78,"props":715,"children":717},{"className":716},[],[718],{"type":47,"value":209},{"type":47,"value":720}," options:",{"type":41,"tag":722,"props":723,"children":724},"table",{},[725,749],{"type":41,"tag":726,"props":727,"children":728},"thead",{},[729],{"type":41,"tag":730,"props":731,"children":732},"tr",{},[733,739,744],{"type":41,"tag":734,"props":735,"children":736},"th",{},[737],{"type":47,"value":738},"Parameter",{"type":41,"tag":734,"props":740,"children":741},{},[742],{"type":47,"value":743},"Type",{"type":41,"tag":734,"props":745,"children":746},{},[747],{"type":47,"value":748},"Description",{"type":41,"tag":750,"props":751,"children":752},"tbody",{},[753,785,810,835,861,901,926],{"type":41,"tag":730,"props":754,"children":755},{},[756,766,775],{"type":41,"tag":757,"props":758,"children":759},"td",{},[760],{"type":41,"tag":78,"props":761,"children":763},{"className":762},[],[764],{"type":47,"value":765},"dapp.name",{"type":41,"tag":757,"props":767,"children":768},{},[769],{"type":41,"tag":78,"props":770,"children":772},{"className":771},[],[773],{"type":47,"value":774},"string",{"type":41,"tag":757,"props":776,"children":777},{},[778,783],{"type":41,"tag":213,"props":779,"children":780},{},[781],{"type":47,"value":782},"Required.",{"type":47,"value":784}," Display name of your dApp",{"type":41,"tag":730,"props":786,"children":787},{},[788,797,805],{"type":41,"tag":757,"props":789,"children":790},{},[791],{"type":41,"tag":78,"props":792,"children":794},{"className":793},[],[795],{"type":47,"value":796},"dapp.url",{"type":41,"tag":757,"props":798,"children":799},{},[800],{"type":41,"tag":78,"props":801,"children":803},{"className":802},[],[804],{"type":47,"value":774},{"type":41,"tag":757,"props":806,"children":807},{},[808],{"type":47,"value":809},"Optional. dApp URL",{"type":41,"tag":730,"props":811,"children":812},{},[813,822,830],{"type":41,"tag":757,"props":814,"children":815},{},[816],{"type":41,"tag":78,"props":817,"children":819},{"className":818},[],[820],{"type":47,"value":821},"dapp.iconUrl",{"type":41,"tag":757,"props":823,"children":824},{},[825],{"type":41,"tag":78,"props":826,"children":828},{"className":827},[],[829],{"type":47,"value":774},{"type":41,"tag":757,"props":831,"children":832},{},[833],{"type":47,"value":834},"Optional. dApp icon",{"type":41,"tag":730,"props":836,"children":837},{},[838,847,856],{"type":41,"tag":757,"props":839,"children":840},{},[841],{"type":41,"tag":78,"props":842,"children":844},{"className":843},[],[845],{"type":47,"value":846},"api.supportedNetworks",{"type":41,"tag":757,"props":848,"children":849},{},[850],{"type":41,"tag":78,"props":851,"children":853},{"className":852},[],[854],{"type":47,"value":855},"Partial\u003CRecord\u003C'mainnet' | 'devnet' | 'testnet', string>>",{"type":41,"tag":757,"props":857,"children":858},{},[859],{"type":47,"value":860},"Map network names to RPC URLs",{"type":41,"tag":730,"props":862,"children":863},{},[864,873,882],{"type":41,"tag":757,"props":865,"children":866},{},[867],{"type":41,"tag":78,"props":868,"children":870},{"className":869},[],[871],{"type":47,"value":872},"debug",{"type":41,"tag":757,"props":874,"children":875},{},[876],{"type":41,"tag":78,"props":877,"children":879},{"className":878},[],[880],{"type":47,"value":881},"boolean",{"type":41,"tag":757,"props":883,"children":884},{},[885,887,892,894,899],{"type":47,"value":886},"Reserved — accepted in the options type but ",{"type":41,"tag":213,"props":888,"children":889},{},[890],{"type":47,"value":891},"not currently forwarded",{"type":47,"value":893}," by ",{"type":41,"tag":78,"props":895,"children":897},{"className":896},[],[898],{"type":47,"value":209},{"type":47,"value":900}," (no effect yet)",{"type":41,"tag":730,"props":902,"children":903},{},[904,913,921],{"type":41,"tag":757,"props":905,"children":906},{},[907],{"type":41,"tag":78,"props":908,"children":910},{"className":909},[],[911],{"type":47,"value":912},"skipAutoRegister",{"type":41,"tag":757,"props":914,"children":915},{},[916],{"type":41,"tag":78,"props":917,"children":919},{"className":918},[],[920],{"type":47,"value":881},{"type":41,"tag":757,"props":922,"children":923},{},[924],{"type":47,"value":925},"Skip automatic wallet-standard registration",{"type":41,"tag":730,"props":927,"children":928},{},[929,938,946],{"type":41,"tag":757,"props":930,"children":931},{},[932],{"type":41,"tag":78,"props":933,"children":935},{"className":934},[],[936],{"type":47,"value":937},"analytics.integrationType",{"type":41,"tag":757,"props":939,"children":940},{},[941],{"type":41,"tag":78,"props":942,"children":944},{"className":943},[],[945],{"type":47,"value":774},{"type":41,"tag":757,"props":947,"children":948},{},[949,951,956],{"type":47,"value":950},"Optional. Tag analytics events with an integration identifier (added in ",{"type":41,"tag":78,"props":952,"children":954},{"className":953},[],[955],{"type":47,"value":190},{"type":47,"value":957}," 0.8.0)",{"type":41,"tag":57,"props":959,"children":960},{},[961],{"type":41,"tag":213,"props":962,"children":963},{},[964],{"type":47,"value":965},"Solana CAIP chain IDs:",{"type":41,"tag":722,"props":967,"children":968},{},[969,985],{"type":41,"tag":726,"props":970,"children":971},{},[972],{"type":41,"tag":730,"props":973,"children":974},{},[975,980],{"type":41,"tag":734,"props":976,"children":977},{},[978],{"type":47,"value":979},"Network",{"type":41,"tag":734,"props":981,"children":982},{},[983],{"type":47,"value":984},"CAIP ID",{"type":41,"tag":750,"props":986,"children":987},{},[988,1005,1022],{"type":41,"tag":730,"props":989,"children":990},{},[991,996],{"type":41,"tag":757,"props":992,"children":993},{},[994],{"type":47,"value":995},"Mainnet",{"type":41,"tag":757,"props":997,"children":998},{},[999],{"type":41,"tag":78,"props":1000,"children":1002},{"className":1001},[],[1003],{"type":47,"value":1004},"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",{"type":41,"tag":730,"props":1006,"children":1007},{},[1008,1013],{"type":41,"tag":757,"props":1009,"children":1010},{},[1011],{"type":47,"value":1012},"Devnet",{"type":41,"tag":757,"props":1014,"children":1015},{},[1016],{"type":41,"tag":78,"props":1017,"children":1019},{"className":1018},[],[1020],{"type":47,"value":1021},"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",{"type":41,"tag":730,"props":1023,"children":1024},{},[1025,1030],{"type":41,"tag":757,"props":1026,"children":1027},{},[1028],{"type":47,"value":1029},"Testnet",{"type":41,"tag":757,"props":1031,"children":1032},{},[1033],{"type":41,"tag":78,"props":1034,"children":1036},{"className":1035},[],[1037],{"type":47,"value":1038},"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",{"type":41,"tag":109,"props":1040,"children":1042},{"id":1041},"step-3-configure-the-walletprovider",[1043],{"type":47,"value":1044},"Step 3: Configure the WalletProvider",{"type":41,"tag":57,"props":1046,"children":1047},{},[1048,1050,1055,1057,1063],{"type":47,"value":1049},"Pass an ",{"type":41,"tag":213,"props":1051,"children":1052},{},[1053],{"type":47,"value":1054},"empty",{"type":47,"value":1056}," ",{"type":41,"tag":78,"props":1058,"children":1060},{"className":1059},[],[1061],{"type":47,"value":1062},"wallets",{"type":47,"value":1064}," array. MetaMask registers via the wallet-standard auto-discovery protocol and must not be added manually.",{"type":41,"tag":116,"props":1066,"children":1070},{"className":1067,"code":1068,"language":1069,"meta":121,"style":121},"language-tsx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F src\u002FApp.tsx\nimport { ConnectionProvider, WalletProvider } from '@solana\u002Fwallet-adapter-react';\nimport { WalletModalProvider } from '@solana\u002Fwallet-adapter-react-ui';\nimport { clusterApiUrl } from '@solana\u002Fweb3.js';\nimport '@solana\u002Fwallet-adapter-react-ui\u002Fstyles.css';\nimport { SolanaDemo } from '.\u002FSolanaDemo';\n\nconst endpoint = clusterApiUrl('mainnet-beta');\n\nexport default function App() {\n  return (\n    \u003CConnectionProvider endpoint={endpoint}>\n      \u003CWalletProvider wallets={[]} autoConnect>\n        \u003CWalletModalProvider>\n          \u003CSolanaDemo \u002F>\n        \u003C\u002FWalletModalProvider>\n      \u003C\u002FWalletProvider>\n    \u003C\u002FConnectionProvider>\n  );\n}\n","tsx",[1071],{"type":41,"tag":78,"props":1072,"children":1073},{"__ignoreMap":121},[1074,1082,1132,1173,1214,1238,1279,1286,1333,1340,1370,1383,1416,1457,1474,1492,1508,1524,1540,1553],{"type":41,"tag":127,"props":1075,"children":1076},{"class":129,"line":130},[1077],{"type":41,"tag":127,"props":1078,"children":1079},{"style":242},[1080],{"type":47,"value":1081},"\u002F\u002F src\u002FApp.tsx\n",{"type":41,"tag":127,"props":1083,"children":1084},{"class":129,"line":25},[1085,1089,1093,1098,1103,1108,1112,1116,1120,1124,1128],{"type":41,"tag":127,"props":1086,"children":1087},{"style":251},[1088],{"type":47,"value":254},{"type":41,"tag":127,"props":1090,"children":1091},{"style":257},[1092],{"type":47,"value":260},{"type":41,"tag":127,"props":1094,"children":1095},{"style":263},[1096],{"type":47,"value":1097}," ConnectionProvider",{"type":41,"tag":127,"props":1099,"children":1100},{"style":257},[1101],{"type":47,"value":1102},",",{"type":41,"tag":127,"props":1104,"children":1105},{"style":263},[1106],{"type":47,"value":1107}," WalletProvider",{"type":41,"tag":127,"props":1109,"children":1110},{"style":257},[1111],{"type":47,"value":271},{"type":41,"tag":127,"props":1113,"children":1114},{"style":251},[1115],{"type":47,"value":276},{"type":41,"tag":127,"props":1117,"children":1118},{"style":257},[1119],{"type":47,"value":281},{"type":41,"tag":127,"props":1121,"children":1122},{"style":140},[1123],{"type":47,"value":83},{"type":41,"tag":127,"props":1125,"children":1126},{"style":257},[1127],{"type":47,"value":290},{"type":41,"tag":127,"props":1129,"children":1130},{"style":257},[1131],{"type":47,"value":295},{"type":41,"tag":127,"props":1133,"children":1134},{"class":129,"line":298},[1135,1139,1143,1148,1152,1156,1160,1165,1169],{"type":41,"tag":127,"props":1136,"children":1137},{"style":251},[1138],{"type":47,"value":254},{"type":41,"tag":127,"props":1140,"children":1141},{"style":257},[1142],{"type":47,"value":260},{"type":41,"tag":127,"props":1144,"children":1145},{"style":263},[1146],{"type":47,"value":1147}," WalletModalProvider",{"type":41,"tag":127,"props":1149,"children":1150},{"style":257},[1151],{"type":47,"value":271},{"type":41,"tag":127,"props":1153,"children":1154},{"style":251},[1155],{"type":47,"value":276},{"type":41,"tag":127,"props":1157,"children":1158},{"style":257},[1159],{"type":47,"value":281},{"type":41,"tag":127,"props":1161,"children":1162},{"style":140},[1163],{"type":47,"value":1164},"@solana\u002Fwallet-adapter-react-ui",{"type":41,"tag":127,"props":1166,"children":1167},{"style":257},[1168],{"type":47,"value":290},{"type":41,"tag":127,"props":1170,"children":1171},{"style":257},[1172],{"type":47,"value":295},{"type":41,"tag":127,"props":1174,"children":1175},{"class":129,"line":340},[1176,1180,1184,1189,1193,1197,1201,1206,1210],{"type":41,"tag":127,"props":1177,"children":1178},{"style":251},[1179],{"type":47,"value":254},{"type":41,"tag":127,"props":1181,"children":1182},{"style":257},[1183],{"type":47,"value":260},{"type":41,"tag":127,"props":1185,"children":1186},{"style":263},[1187],{"type":47,"value":1188}," clusterApiUrl",{"type":41,"tag":127,"props":1190,"children":1191},{"style":257},[1192],{"type":47,"value":271},{"type":41,"tag":127,"props":1194,"children":1195},{"style":251},[1196],{"type":47,"value":276},{"type":41,"tag":127,"props":1198,"children":1199},{"style":257},[1200],{"type":47,"value":281},{"type":41,"tag":127,"props":1202,"children":1203},{"style":140},[1204],{"type":47,"value":1205},"@solana\u002Fweb3.js",{"type":41,"tag":127,"props":1207,"children":1208},{"style":257},[1209],{"type":47,"value":290},{"type":41,"tag":127,"props":1211,"children":1212},{"style":257},[1213],{"type":47,"value":295},{"type":41,"tag":127,"props":1215,"children":1216},{"class":129,"line":375},[1217,1221,1225,1230,1234],{"type":41,"tag":127,"props":1218,"children":1219},{"style":251},[1220],{"type":47,"value":254},{"type":41,"tag":127,"props":1222,"children":1223},{"style":257},[1224],{"type":47,"value":281},{"type":41,"tag":127,"props":1226,"children":1227},{"style":140},[1228],{"type":47,"value":1229},"@solana\u002Fwallet-adapter-react-ui\u002Fstyles.css",{"type":41,"tag":127,"props":1231,"children":1232},{"style":257},[1233],{"type":47,"value":290},{"type":41,"tag":127,"props":1235,"children":1236},{"style":257},[1237],{"type":47,"value":295},{"type":41,"tag":127,"props":1239,"children":1240},{"class":129,"line":385},[1241,1245,1249,1254,1258,1262,1266,1271,1275],{"type":41,"tag":127,"props":1242,"children":1243},{"style":251},[1244],{"type":47,"value":254},{"type":41,"tag":127,"props":1246,"children":1247},{"style":257},[1248],{"type":47,"value":260},{"type":41,"tag":127,"props":1250,"children":1251},{"style":263},[1252],{"type":47,"value":1253}," SolanaDemo",{"type":41,"tag":127,"props":1255,"children":1256},{"style":257},[1257],{"type":47,"value":271},{"type":41,"tag":127,"props":1259,"children":1260},{"style":251},[1261],{"type":47,"value":276},{"type":41,"tag":127,"props":1263,"children":1264},{"style":257},[1265],{"type":47,"value":281},{"type":41,"tag":127,"props":1267,"children":1268},{"style":140},[1269],{"type":47,"value":1270},".\u002FSolanaDemo",{"type":41,"tag":127,"props":1272,"children":1273},{"style":257},[1274],{"type":47,"value":290},{"type":41,"tag":127,"props":1276,"children":1277},{"style":257},[1278],{"type":47,"value":295},{"type":41,"tag":127,"props":1280,"children":1281},{"class":129,"line":416},[1282],{"type":41,"tag":127,"props":1283,"children":1284},{"emptyLinePlaceholder":379},[1285],{"type":47,"value":382},{"type":41,"tag":127,"props":1287,"children":1288},{"class":129,"line":440},[1289,1294,1299,1304,1308,1312,1316,1321,1325,1329],{"type":41,"tag":127,"props":1290,"children":1291},{"style":389},[1292],{"type":47,"value":1293},"const",{"type":41,"tag":127,"props":1295,"children":1296},{"style":263},[1297],{"type":47,"value":1298}," endpoint ",{"type":41,"tag":127,"props":1300,"children":1301},{"style":257},[1302],{"type":47,"value":1303},"=",{"type":41,"tag":127,"props":1305,"children":1306},{"style":400},[1307],{"type":47,"value":1188},{"type":41,"tag":127,"props":1309,"children":1310},{"style":263},[1311],{"type":47,"value":432},{"type":41,"tag":127,"props":1313,"children":1314},{"style":257},[1315],{"type":47,"value":290},{"type":41,"tag":127,"props":1317,"children":1318},{"style":140},[1319],{"type":47,"value":1320},"mainnet-beta",{"type":41,"tag":127,"props":1322,"children":1323},{"style":257},[1324],{"type":47,"value":290},{"type":41,"tag":127,"props":1326,"children":1327},{"style":263},[1328],{"type":47,"value":550},{"type":41,"tag":127,"props":1330,"children":1331},{"style":257},[1332],{"type":47,"value":295},{"type":41,"tag":127,"props":1334,"children":1335},{"class":129,"line":458},[1336],{"type":41,"tag":127,"props":1337,"children":1338},{"emptyLinePlaceholder":379},[1339],{"type":47,"value":382},{"type":41,"tag":127,"props":1341,"children":1342},{"class":129,"line":489},[1343,1348,1353,1357,1362,1366],{"type":41,"tag":127,"props":1344,"children":1345},{"style":251},[1346],{"type":47,"value":1347},"export",{"type":41,"tag":127,"props":1349,"children":1350},{"style":251},[1351],{"type":47,"value":1352}," default",{"type":41,"tag":127,"props":1354,"children":1355},{"style":389},[1356],{"type":47,"value":397},{"type":41,"tag":127,"props":1358,"children":1359},{"style":400},[1360],{"type":47,"value":1361}," App",{"type":41,"tag":127,"props":1363,"children":1364},{"style":257},[1365],{"type":47,"value":408},{"type":41,"tag":127,"props":1367,"children":1368},{"style":257},[1369],{"type":47,"value":413},{"type":41,"tag":127,"props":1371,"children":1372},{"class":129,"line":530},[1373,1378],{"type":41,"tag":127,"props":1374,"children":1375},{"style":251},[1376],{"type":47,"value":1377},"  return",{"type":41,"tag":127,"props":1379,"children":1380},{"style":429},[1381],{"type":47,"value":1382}," (\n",{"type":41,"tag":127,"props":1384,"children":1385},{"class":129,"line":539},[1386,1391,1396,1401,1406,1411],{"type":41,"tag":127,"props":1387,"children":1388},{"style":257},[1389],{"type":47,"value":1390},"    \u003C",{"type":41,"tag":127,"props":1392,"children":1393},{"style":134},[1394],{"type":47,"value":1395},"ConnectionProvider",{"type":41,"tag":127,"props":1397,"children":1398},{"style":389},[1399],{"type":47,"value":1400}," endpoint",{"type":41,"tag":127,"props":1402,"children":1403},{"style":257},[1404],{"type":47,"value":1405},"={",{"type":41,"tag":127,"props":1407,"children":1408},{"style":263},[1409],{"type":47,"value":1410},"endpoint",{"type":41,"tag":127,"props":1412,"children":1413},{"style":257},[1414],{"type":47,"value":1415},"}>\n",{"type":41,"tag":127,"props":1417,"children":1418},{"class":129,"line":557},[1419,1424,1428,1433,1437,1442,1447,1452],{"type":41,"tag":127,"props":1420,"children":1421},{"style":257},[1422],{"type":47,"value":1423},"      \u003C",{"type":41,"tag":127,"props":1425,"children":1426},{"style":134},[1427],{"type":47,"value":225},{"type":41,"tag":127,"props":1429,"children":1430},{"style":389},[1431],{"type":47,"value":1432}," wallets",{"type":41,"tag":127,"props":1434,"children":1435},{"style":257},[1436],{"type":47,"value":1405},{"type":41,"tag":127,"props":1438,"children":1439},{"style":263},[1440],{"type":47,"value":1441},"[]",{"type":41,"tag":127,"props":1443,"children":1444},{"style":257},[1445],{"type":47,"value":1446},"} ",{"type":41,"tag":127,"props":1448,"children":1449},{"style":389},[1450],{"type":47,"value":1451},"autoConnect",{"type":41,"tag":127,"props":1453,"children":1454},{"style":257},[1455],{"type":47,"value":1456},">\n",{"type":41,"tag":127,"props":1458,"children":1459},{"class":129,"line":565},[1460,1465,1470],{"type":41,"tag":127,"props":1461,"children":1462},{"style":257},[1463],{"type":47,"value":1464},"        \u003C",{"type":41,"tag":127,"props":1466,"children":1467},{"style":134},[1468],{"type":47,"value":1469},"WalletModalProvider",{"type":41,"tag":127,"props":1471,"children":1472},{"style":257},[1473],{"type":47,"value":1456},{"type":41,"tag":127,"props":1475,"children":1476},{"class":129,"line":639},[1477,1482,1487],{"type":41,"tag":127,"props":1478,"children":1479},{"style":257},[1480],{"type":47,"value":1481},"          \u003C",{"type":41,"tag":127,"props":1483,"children":1484},{"style":134},[1485],{"type":47,"value":1486},"SolanaDemo",{"type":41,"tag":127,"props":1488,"children":1489},{"style":257},[1490],{"type":47,"value":1491}," \u002F>\n",{"type":41,"tag":127,"props":1493,"children":1494},{"class":129,"line":676},[1495,1500,1504],{"type":41,"tag":127,"props":1496,"children":1497},{"style":257},[1498],{"type":47,"value":1499},"        \u003C\u002F",{"type":41,"tag":127,"props":1501,"children":1502},{"style":134},[1503],{"type":47,"value":1469},{"type":41,"tag":127,"props":1505,"children":1506},{"style":257},[1507],{"type":47,"value":1456},{"type":41,"tag":127,"props":1509,"children":1510},{"class":129,"line":685},[1511,1516,1520],{"type":41,"tag":127,"props":1512,"children":1513},{"style":257},[1514],{"type":47,"value":1515},"      \u003C\u002F",{"type":41,"tag":127,"props":1517,"children":1518},{"style":134},[1519],{"type":47,"value":225},{"type":41,"tag":127,"props":1521,"children":1522},{"style":257},[1523],{"type":47,"value":1456},{"type":41,"tag":127,"props":1525,"children":1526},{"class":129,"line":693},[1527,1532,1536],{"type":41,"tag":127,"props":1528,"children":1529},{"style":257},[1530],{"type":47,"value":1531},"    \u003C\u002F",{"type":41,"tag":127,"props":1533,"children":1534},{"style":134},[1535],{"type":47,"value":1395},{"type":41,"tag":127,"props":1537,"children":1538},{"style":257},[1539],{"type":47,"value":1456},{"type":41,"tag":127,"props":1541,"children":1543},{"class":129,"line":1542},19,[1544,1549],{"type":41,"tag":127,"props":1545,"children":1546},{"style":429},[1547],{"type":47,"value":1548},"  )",{"type":41,"tag":127,"props":1550,"children":1551},{"style":257},[1552],{"type":47,"value":295},{"type":41,"tag":127,"props":1554,"children":1556},{"class":129,"line":1555},20,[1557],{"type":41,"tag":127,"props":1558,"children":1559},{"style":257},[1560],{"type":47,"value":682},{"type":41,"tag":109,"props":1562,"children":1564},{"id":1563},"step-4-find-the-metamask-wallet",[1565],{"type":47,"value":1566},"Step 4: Find the MetaMask wallet",{"type":41,"tag":57,"props":1568,"children":1569},{},[1570,1572,1577,1579,1585],{"type":47,"value":1571},"When using ",{"type":41,"tag":78,"props":1573,"children":1575},{"className":1574},[],[1576],{"type":47,"value":96},{"type":47,"value":1578},", you can verify MetaMask is connected by checking the wallet name. The wallet-standard name is exactly ",{"type":41,"tag":78,"props":1580,"children":1582},{"className":1581},[],[1583],{"type":47,"value":1584},"\"MetaMask\"",{"type":47,"value":1586}," (case-sensitive).",{"type":41,"tag":116,"props":1588,"children":1590},{"className":230,"code":1589,"language":232,"meta":121,"style":121},"import { useWallet } from '@solana\u002Fwallet-adapter-react';\n\nconst { wallet } = useWallet();\nconst isMetaMask = wallet?.adapter.name === 'MetaMask';\n",[1591],{"type":41,"tag":78,"props":1592,"children":1593},{"__ignoreMap":121},[1594,1634,1641,1678],{"type":41,"tag":127,"props":1595,"children":1596},{"class":129,"line":130},[1597,1601,1605,1610,1614,1618,1622,1626,1630],{"type":41,"tag":127,"props":1598,"children":1599},{"style":251},[1600],{"type":47,"value":254},{"type":41,"tag":127,"props":1602,"children":1603},{"style":257},[1604],{"type":47,"value":260},{"type":41,"tag":127,"props":1606,"children":1607},{"style":263},[1608],{"type":47,"value":1609}," useWallet",{"type":41,"tag":127,"props":1611,"children":1612},{"style":257},[1613],{"type":47,"value":271},{"type":41,"tag":127,"props":1615,"children":1616},{"style":251},[1617],{"type":47,"value":276},{"type":41,"tag":127,"props":1619,"children":1620},{"style":257},[1621],{"type":47,"value":281},{"type":41,"tag":127,"props":1623,"children":1624},{"style":140},[1625],{"type":47,"value":83},{"type":41,"tag":127,"props":1627,"children":1628},{"style":257},[1629],{"type":47,"value":290},{"type":41,"tag":127,"props":1631,"children":1632},{"style":257},[1633],{"type":47,"value":295},{"type":41,"tag":127,"props":1635,"children":1636},{"class":129,"line":25},[1637],{"type":41,"tag":127,"props":1638,"children":1639},{"emptyLinePlaceholder":379},[1640],{"type":47,"value":382},{"type":41,"tag":127,"props":1642,"children":1643},{"class":129,"line":298},[1644,1648,1652,1657,1662,1666,1670,1674],{"type":41,"tag":127,"props":1645,"children":1646},{"style":389},[1647],{"type":47,"value":1293},{"type":41,"tag":127,"props":1649,"children":1650},{"style":257},[1651],{"type":47,"value":260},{"type":41,"tag":127,"props":1653,"children":1654},{"style":263},[1655],{"type":47,"value":1656}," wallet ",{"type":41,"tag":127,"props":1658,"children":1659},{"style":257},[1660],{"type":47,"value":1661},"}",{"type":41,"tag":127,"props":1663,"children":1664},{"style":257},[1665],{"type":47,"value":581},{"type":41,"tag":127,"props":1667,"children":1668},{"style":400},[1669],{"type":47,"value":1609},{"type":41,"tag":127,"props":1671,"children":1672},{"style":263},[1673],{"type":47,"value":408},{"type":41,"tag":127,"props":1675,"children":1676},{"style":257},[1677],{"type":47,"value":295},{"type":41,"tag":127,"props":1679,"children":1680},{"class":129,"line":340},[1681,1685,1690,1694,1699,1704,1709,1713,1718,1723,1727,1731,1735],{"type":41,"tag":127,"props":1682,"children":1683},{"style":389},[1684],{"type":47,"value":1293},{"type":41,"tag":127,"props":1686,"children":1687},{"style":263},[1688],{"type":47,"value":1689}," isMetaMask ",{"type":41,"tag":127,"props":1691,"children":1692},{"style":257},[1693],{"type":47,"value":1303},{"type":41,"tag":127,"props":1695,"children":1696},{"style":263},[1697],{"type":47,"value":1698}," wallet",{"type":41,"tag":127,"props":1700,"children":1701},{"style":257},[1702],{"type":47,"value":1703},"?.",{"type":41,"tag":127,"props":1705,"children":1706},{"style":263},[1707],{"type":47,"value":1708},"adapter",{"type":41,"tag":127,"props":1710,"children":1711},{"style":257},[1712],{"type":47,"value":509},{"type":41,"tag":127,"props":1714,"children":1715},{"style":263},[1716],{"type":47,"value":1717},"name ",{"type":41,"tag":127,"props":1719,"children":1720},{"style":257},[1721],{"type":47,"value":1722},"===",{"type":41,"tag":127,"props":1724,"children":1725},{"style":257},[1726],{"type":47,"value":281},{"type":41,"tag":127,"props":1728,"children":1729},{"style":140},[1730],{"type":47,"value":9},{"type":41,"tag":127,"props":1732,"children":1733},{"style":257},[1734],{"type":47,"value":290},{"type":41,"tag":127,"props":1736,"children":1737},{"style":257},[1738],{"type":47,"value":295},{"type":41,"tag":109,"props":1740,"children":1742},{"id":1741},"step-5-build-the-full-component",[1743],{"type":47,"value":1744},"Step 5: Build the full component",{"type":41,"tag":116,"props":1746,"children":1748},{"className":1067,"code":1747,"language":1069,"meta":121,"style":121},"\u002F\u002F src\u002FSolanaDemo.tsx\nimport { useWallet, useConnection } from '@solana\u002Fwallet-adapter-react';\nimport { WalletMultiButton } from '@solana\u002Fwallet-adapter-react-ui';\nimport {\n  Transaction,\n  SystemProgram,\n  PublicKey,\n  LAMPORTS_PER_SOL,\n} from '@solana\u002Fweb3.js';\n\nexport function SolanaDemo() {\n  const { publicKey, sendTransaction, signMessage, connected, wallet } = useWallet();\n  const { connection } = useConnection();\n\n  const handleSignMessage = async () => {\n    if (!signMessage) return;\n    const message = new TextEncoder().encode('Hello from MetaMask on Solana!');\n    try {\n      const signature = await signMessage(message);\n      console.log('Signature:', Buffer.from(signature).toString('hex'));\n    } catch (err) {\n      console.error('Sign message failed:', err);\n    }\n  };\n\n  const handleSendTransaction = async () => {\n    if (!publicKey || !sendTransaction) return;\n    try {\n      const { blockhash } = await connection.getLatestBlockhash();\n      const transaction = new Transaction().add(\n        SystemProgram.transfer({\n          fromPubkey: publicKey,\n          toPubkey: new PublicKey('11111111111111111111111111111112'),\n          lamports: 0.001 * LAMPORTS_PER_SOL,\n        }),\n      );\n      transaction.recentBlockhash = blockhash;\n      transaction.feePayer = publicKey;\n\n      const txSignature = await sendTransaction(transaction, connection);\n      const confirmation = await connection.confirmTransaction(txSignature, 'confirmed');\n      console.log('Transaction confirmed:', txSignature);\n    } catch (err) {\n      console.error('Transaction failed:', err);\n    }\n  };\n\n  return (\n    \u003Cdiv>\n      \u003CWalletMultiButton \u002F>\n      {connected && publicKey && (\n        \u003Cdiv>\n          \u003Cp>Wallet: {wallet?.adapter.name}\u003C\u002Fp>\n          \u003Cp>Address: {publicKey.toBase58()}\u003C\u002Fp>\n          \u003Cbutton onClick={handleSignMessage}>Sign Message\u003C\u002Fbutton>\n          \u003Cbutton onClick={handleSendTransaction}>Send 0.001 SOL\u003C\u002Fbutton>\n        \u003C\u002Fdiv>\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n",[1749],{"type":41,"tag":78,"props":1750,"children":1751},{"__ignoreMap":121},[1752,1760,1808,1848,1859,1871,1883,1895,1907,1934,1941,1964,2035,2071,2078,2113,2149,2214,2226,2269,2368,2399,2450,2459,2468,2476,2509,2557,2569,2619,2663,2689,2710,2757,2790,2807,2820,2850,2879,2887,2937,3005,3054,3082,3131,3139,3147,3155,3167,3184,3201,3233,3249,3311,3365,3415,3461,3477,3489,3505,3517],{"type":41,"tag":127,"props":1753,"children":1754},{"class":129,"line":130},[1755],{"type":41,"tag":127,"props":1756,"children":1757},{"style":242},[1758],{"type":47,"value":1759},"\u002F\u002F src\u002FSolanaDemo.tsx\n",{"type":41,"tag":127,"props":1761,"children":1762},{"class":129,"line":25},[1763,1767,1771,1775,1779,1784,1788,1792,1796,1800,1804],{"type":41,"tag":127,"props":1764,"children":1765},{"style":251},[1766],{"type":47,"value":254},{"type":41,"tag":127,"props":1768,"children":1769},{"style":257},[1770],{"type":47,"value":260},{"type":41,"tag":127,"props":1772,"children":1773},{"style":263},[1774],{"type":47,"value":1609},{"type":41,"tag":127,"props":1776,"children":1777},{"style":257},[1778],{"type":47,"value":1102},{"type":41,"tag":127,"props":1780,"children":1781},{"style":263},[1782],{"type":47,"value":1783}," useConnection",{"type":41,"tag":127,"props":1785,"children":1786},{"style":257},[1787],{"type":47,"value":271},{"type":41,"tag":127,"props":1789,"children":1790},{"style":251},[1791],{"type":47,"value":276},{"type":41,"tag":127,"props":1793,"children":1794},{"style":257},[1795],{"type":47,"value":281},{"type":41,"tag":127,"props":1797,"children":1798},{"style":140},[1799],{"type":47,"value":83},{"type":41,"tag":127,"props":1801,"children":1802},{"style":257},[1803],{"type":47,"value":290},{"type":41,"tag":127,"props":1805,"children":1806},{"style":257},[1807],{"type":47,"value":295},{"type":41,"tag":127,"props":1809,"children":1810},{"class":129,"line":298},[1811,1815,1819,1824,1828,1832,1836,1840,1844],{"type":41,"tag":127,"props":1812,"children":1813},{"style":251},[1814],{"type":47,"value":254},{"type":41,"tag":127,"props":1816,"children":1817},{"style":257},[1818],{"type":47,"value":260},{"type":41,"tag":127,"props":1820,"children":1821},{"style":263},[1822],{"type":47,"value":1823}," WalletMultiButton",{"type":41,"tag":127,"props":1825,"children":1826},{"style":257},[1827],{"type":47,"value":271},{"type":41,"tag":127,"props":1829,"children":1830},{"style":251},[1831],{"type":47,"value":276},{"type":41,"tag":127,"props":1833,"children":1834},{"style":257},[1835],{"type":47,"value":281},{"type":41,"tag":127,"props":1837,"children":1838},{"style":140},[1839],{"type":47,"value":1164},{"type":41,"tag":127,"props":1841,"children":1842},{"style":257},[1843],{"type":47,"value":290},{"type":41,"tag":127,"props":1845,"children":1846},{"style":257},[1847],{"type":47,"value":295},{"type":41,"tag":127,"props":1849,"children":1850},{"class":129,"line":340},[1851,1855],{"type":41,"tag":127,"props":1852,"children":1853},{"style":251},[1854],{"type":47,"value":254},{"type":41,"tag":127,"props":1856,"children":1857},{"style":257},[1858],{"type":47,"value":413},{"type":41,"tag":127,"props":1860,"children":1861},{"class":129,"line":375},[1862,1867],{"type":41,"tag":127,"props":1863,"children":1864},{"style":263},[1865],{"type":47,"value":1866},"  Transaction",{"type":41,"tag":127,"props":1868,"children":1869},{"style":257},[1870],{"type":47,"value":486},{"type":41,"tag":127,"props":1872,"children":1873},{"class":129,"line":385},[1874,1879],{"type":41,"tag":127,"props":1875,"children":1876},{"style":263},[1877],{"type":47,"value":1878},"  SystemProgram",{"type":41,"tag":127,"props":1880,"children":1881},{"style":257},[1882],{"type":47,"value":486},{"type":41,"tag":127,"props":1884,"children":1885},{"class":129,"line":416},[1886,1891],{"type":41,"tag":127,"props":1887,"children":1888},{"style":263},[1889],{"type":47,"value":1890},"  PublicKey",{"type":41,"tag":127,"props":1892,"children":1893},{"style":257},[1894],{"type":47,"value":486},{"type":41,"tag":127,"props":1896,"children":1897},{"class":129,"line":440},[1898,1903],{"type":41,"tag":127,"props":1899,"children":1900},{"style":263},[1901],{"type":47,"value":1902},"  LAMPORTS_PER_SOL",{"type":41,"tag":127,"props":1904,"children":1905},{"style":257},[1906],{"type":47,"value":486},{"type":41,"tag":127,"props":1908,"children":1909},{"class":129,"line":458},[1910,1914,1918,1922,1926,1930],{"type":41,"tag":127,"props":1911,"children":1912},{"style":257},[1913],{"type":47,"value":1661},{"type":41,"tag":127,"props":1915,"children":1916},{"style":251},[1917],{"type":47,"value":276},{"type":41,"tag":127,"props":1919,"children":1920},{"style":257},[1921],{"type":47,"value":281},{"type":41,"tag":127,"props":1923,"children":1924},{"style":140},[1925],{"type":47,"value":1205},{"type":41,"tag":127,"props":1927,"children":1928},{"style":257},[1929],{"type":47,"value":290},{"type":41,"tag":127,"props":1931,"children":1932},{"style":257},[1933],{"type":47,"value":295},{"type":41,"tag":127,"props":1935,"children":1936},{"class":129,"line":489},[1937],{"type":41,"tag":127,"props":1938,"children":1939},{"emptyLinePlaceholder":379},[1940],{"type":47,"value":382},{"type":41,"tag":127,"props":1942,"children":1943},{"class":129,"line":530},[1944,1948,1952,1956,1960],{"type":41,"tag":127,"props":1945,"children":1946},{"style":251},[1947],{"type":47,"value":1347},{"type":41,"tag":127,"props":1949,"children":1950},{"style":389},[1951],{"type":47,"value":397},{"type":41,"tag":127,"props":1953,"children":1954},{"style":400},[1955],{"type":47,"value":1253},{"type":41,"tag":127,"props":1957,"children":1958},{"style":257},[1959],{"type":47,"value":408},{"type":41,"tag":127,"props":1961,"children":1962},{"style":257},[1963],{"type":47,"value":413},{"type":41,"tag":127,"props":1965,"children":1966},{"class":129,"line":539},[1967,1971,1975,1980,1984,1989,1993,1998,2002,2007,2011,2015,2019,2023,2027,2031],{"type":41,"tag":127,"props":1968,"children":1969},{"style":389},[1970],{"type":47,"value":571},{"type":41,"tag":127,"props":1972,"children":1973},{"style":257},[1974],{"type":47,"value":260},{"type":41,"tag":127,"props":1976,"children":1977},{"style":263},[1978],{"type":47,"value":1979}," publicKey",{"type":41,"tag":127,"props":1981,"children":1982},{"style":257},[1983],{"type":47,"value":1102},{"type":41,"tag":127,"props":1985,"children":1986},{"style":263},[1987],{"type":47,"value":1988}," sendTransaction",{"type":41,"tag":127,"props":1990,"children":1991},{"style":257},[1992],{"type":47,"value":1102},{"type":41,"tag":127,"props":1994,"children":1995},{"style":263},[1996],{"type":47,"value":1997}," signMessage",{"type":41,"tag":127,"props":1999,"children":2000},{"style":257},[2001],{"type":47,"value":1102},{"type":41,"tag":127,"props":2003,"children":2004},{"style":263},[2005],{"type":47,"value":2006}," connected",{"type":41,"tag":127,"props":2008,"children":2009},{"style":257},[2010],{"type":47,"value":1102},{"type":41,"tag":127,"props":2012,"children":2013},{"style":263},[2014],{"type":47,"value":1698},{"type":41,"tag":127,"props":2016,"children":2017},{"style":257},[2018],{"type":47,"value":271},{"type":41,"tag":127,"props":2020,"children":2021},{"style":257},[2022],{"type":47,"value":581},{"type":41,"tag":127,"props":2024,"children":2025},{"style":400},[2026],{"type":47,"value":1609},{"type":41,"tag":127,"props":2028,"children":2029},{"style":429},[2030],{"type":47,"value":408},{"type":41,"tag":127,"props":2032,"children":2033},{"style":257},[2034],{"type":47,"value":295},{"type":41,"tag":127,"props":2036,"children":2037},{"class":129,"line":557},[2038,2042,2046,2051,2055,2059,2063,2067],{"type":41,"tag":127,"props":2039,"children":2040},{"style":389},[2041],{"type":47,"value":571},{"type":41,"tag":127,"props":2043,"children":2044},{"style":257},[2045],{"type":47,"value":260},{"type":41,"tag":127,"props":2047,"children":2048},{"style":263},[2049],{"type":47,"value":2050}," connection",{"type":41,"tag":127,"props":2052,"children":2053},{"style":257},[2054],{"type":47,"value":271},{"type":41,"tag":127,"props":2056,"children":2057},{"style":257},[2058],{"type":47,"value":581},{"type":41,"tag":127,"props":2060,"children":2061},{"style":400},[2062],{"type":47,"value":1783},{"type":41,"tag":127,"props":2064,"children":2065},{"style":429},[2066],{"type":47,"value":408},{"type":41,"tag":127,"props":2068,"children":2069},{"style":257},[2070],{"type":47,"value":295},{"type":41,"tag":127,"props":2072,"children":2073},{"class":129,"line":565},[2074],{"type":41,"tag":127,"props":2075,"children":2076},{"emptyLinePlaceholder":379},[2077],{"type":47,"value":382},{"type":41,"tag":127,"props":2079,"children":2080},{"class":129,"line":639},[2081,2085,2090,2094,2099,2104,2109],{"type":41,"tag":127,"props":2082,"children":2083},{"style":389},[2084],{"type":47,"value":571},{"type":41,"tag":127,"props":2086,"children":2087},{"style":263},[2088],{"type":47,"value":2089}," handleSignMessage",{"type":41,"tag":127,"props":2091,"children":2092},{"style":257},[2093],{"type":47,"value":581},{"type":41,"tag":127,"props":2095,"children":2096},{"style":389},[2097],{"type":47,"value":2098}," async",{"type":41,"tag":127,"props":2100,"children":2101},{"style":257},[2102],{"type":47,"value":2103}," ()",{"type":41,"tag":127,"props":2105,"children":2106},{"style":389},[2107],{"type":47,"value":2108}," =>",{"type":41,"tag":127,"props":2110,"children":2111},{"style":257},[2112],{"type":47,"value":413},{"type":41,"tag":127,"props":2114,"children":2115},{"class":129,"line":676},[2116,2121,2126,2130,2135,2140,2145],{"type":41,"tag":127,"props":2117,"children":2118},{"style":251},[2119],{"type":47,"value":2120},"    if",{"type":41,"tag":127,"props":2122,"children":2123},{"style":429},[2124],{"type":47,"value":2125}," (",{"type":41,"tag":127,"props":2127,"children":2128},{"style":257},[2129],{"type":47,"value":628},{"type":41,"tag":127,"props":2131,"children":2132},{"style":263},[2133],{"type":47,"value":2134},"signMessage",{"type":41,"tag":127,"props":2136,"children":2137},{"style":429},[2138],{"type":47,"value":2139},") ",{"type":41,"tag":127,"props":2141,"children":2142},{"style":251},[2143],{"type":47,"value":2144},"return",{"type":41,"tag":127,"props":2146,"children":2147},{"style":257},[2148],{"type":47,"value":295},{"type":41,"tag":127,"props":2150,"children":2151},{"class":129,"line":685},[2152,2157,2162,2166,2171,2176,2180,2184,2189,2193,2197,2202,2206,2210],{"type":41,"tag":127,"props":2153,"children":2154},{"style":389},[2155],{"type":47,"value":2156},"    const",{"type":41,"tag":127,"props":2158,"children":2159},{"style":263},[2160],{"type":47,"value":2161}," message",{"type":41,"tag":127,"props":2163,"children":2164},{"style":257},[2165],{"type":47,"value":581},{"type":41,"tag":127,"props":2167,"children":2168},{"style":257},[2169],{"type":47,"value":2170}," new",{"type":41,"tag":127,"props":2172,"children":2173},{"style":400},[2174],{"type":47,"value":2175}," TextEncoder",{"type":41,"tag":127,"props":2177,"children":2178},{"style":429},[2179],{"type":47,"value":408},{"type":41,"tag":127,"props":2181,"children":2182},{"style":257},[2183],{"type":47,"value":509},{"type":41,"tag":127,"props":2185,"children":2186},{"style":400},[2187],{"type":47,"value":2188},"encode",{"type":41,"tag":127,"props":2190,"children":2191},{"style":429},[2192],{"type":47,"value":432},{"type":41,"tag":127,"props":2194,"children":2195},{"style":257},[2196],{"type":47,"value":290},{"type":41,"tag":127,"props":2198,"children":2199},{"style":140},[2200],{"type":47,"value":2201},"Hello from MetaMask on Solana!",{"type":41,"tag":127,"props":2203,"children":2204},{"style":257},[2205],{"type":47,"value":290},{"type":41,"tag":127,"props":2207,"children":2208},{"style":429},[2209],{"type":47,"value":550},{"type":41,"tag":127,"props":2211,"children":2212},{"style":257},[2213],{"type":47,"value":295},{"type":41,"tag":127,"props":2215,"children":2216},{"class":129,"line":693},[2217,2222],{"type":41,"tag":127,"props":2218,"children":2219},{"style":251},[2220],{"type":47,"value":2221},"    try",{"type":41,"tag":127,"props":2223,"children":2224},{"style":257},[2225],{"type":47,"value":413},{"type":41,"tag":127,"props":2227,"children":2228},{"class":129,"line":1542},[2229,2234,2239,2243,2248,2252,2256,2261,2265],{"type":41,"tag":127,"props":2230,"children":2231},{"style":389},[2232],{"type":47,"value":2233},"      const",{"type":41,"tag":127,"props":2235,"children":2236},{"style":263},[2237],{"type":47,"value":2238}," signature",{"type":41,"tag":127,"props":2240,"children":2241},{"style":257},[2242],{"type":47,"value":581},{"type":41,"tag":127,"props":2244,"children":2245},{"style":251},[2246],{"type":47,"value":2247}," await",{"type":41,"tag":127,"props":2249,"children":2250},{"style":400},[2251],{"type":47,"value":1997},{"type":41,"tag":127,"props":2253,"children":2254},{"style":429},[2255],{"type":47,"value":432},{"type":41,"tag":127,"props":2257,"children":2258},{"style":263},[2259],{"type":47,"value":2260},"message",{"type":41,"tag":127,"props":2262,"children":2263},{"style":429},[2264],{"type":47,"value":550},{"type":41,"tag":127,"props":2266,"children":2267},{"style":257},[2268],{"type":47,"value":295},{"type":41,"tag":127,"props":2270,"children":2271},{"class":129,"line":1555},[2272,2277,2281,2286,2290,2294,2299,2303,2307,2312,2316,2320,2324,2329,2333,2337,2342,2346,2350,2355,2359,2364],{"type":41,"tag":127,"props":2273,"children":2274},{"style":263},[2275],{"type":47,"value":2276},"      console",{"type":41,"tag":127,"props":2278,"children":2279},{"style":257},[2280],{"type":47,"value":509},{"type":41,"tag":127,"props":2282,"children":2283},{"style":400},[2284],{"type":47,"value":2285},"log",{"type":41,"tag":127,"props":2287,"children":2288},{"style":429},[2289],{"type":47,"value":432},{"type":41,"tag":127,"props":2291,"children":2292},{"style":257},[2293],{"type":47,"value":290},{"type":41,"tag":127,"props":2295,"children":2296},{"style":140},[2297],{"type":47,"value":2298},"Signature:",{"type":41,"tag":127,"props":2300,"children":2301},{"style":257},[2302],{"type":47,"value":290},{"type":41,"tag":127,"props":2304,"children":2305},{"style":257},[2306],{"type":47,"value":1102},{"type":41,"tag":127,"props":2308,"children":2309},{"style":263},[2310],{"type":47,"value":2311}," Buffer",{"type":41,"tag":127,"props":2313,"children":2314},{"style":257},[2315],{"type":47,"value":509},{"type":41,"tag":127,"props":2317,"children":2318},{"style":400},[2319],{"type":47,"value":355},{"type":41,"tag":127,"props":2321,"children":2322},{"style":429},[2323],{"type":47,"value":432},{"type":41,"tag":127,"props":2325,"children":2326},{"style":263},[2327],{"type":47,"value":2328},"signature",{"type":41,"tag":127,"props":2330,"children":2331},{"style":429},[2332],{"type":47,"value":550},{"type":41,"tag":127,"props":2334,"children":2335},{"style":257},[2336],{"type":47,"value":509},{"type":41,"tag":127,"props":2338,"children":2339},{"style":400},[2340],{"type":47,"value":2341},"toString",{"type":41,"tag":127,"props":2343,"children":2344},{"style":429},[2345],{"type":47,"value":432},{"type":41,"tag":127,"props":2347,"children":2348},{"style":257},[2349],{"type":47,"value":290},{"type":41,"tag":127,"props":2351,"children":2352},{"style":140},[2353],{"type":47,"value":2354},"hex",{"type":41,"tag":127,"props":2356,"children":2357},{"style":257},[2358],{"type":47,"value":290},{"type":41,"tag":127,"props":2360,"children":2361},{"style":429},[2362],{"type":47,"value":2363},"))",{"type":41,"tag":127,"props":2365,"children":2366},{"style":257},[2367],{"type":47,"value":295},{"type":41,"tag":127,"props":2369,"children":2371},{"class":129,"line":2370},21,[2372,2377,2382,2386,2391,2395],{"type":41,"tag":127,"props":2373,"children":2374},{"style":257},[2375],{"type":47,"value":2376},"    }",{"type":41,"tag":127,"props":2378,"children":2379},{"style":251},[2380],{"type":47,"value":2381}," catch",{"type":41,"tag":127,"props":2383,"children":2384},{"style":429},[2385],{"type":47,"value":2125},{"type":41,"tag":127,"props":2387,"children":2388},{"style":263},[2389],{"type":47,"value":2390},"err",{"type":41,"tag":127,"props":2392,"children":2393},{"style":429},[2394],{"type":47,"value":2139},{"type":41,"tag":127,"props":2396,"children":2397},{"style":257},[2398],{"type":47,"value":437},{"type":41,"tag":127,"props":2400,"children":2402},{"class":129,"line":2401},22,[2403,2407,2411,2416,2420,2424,2429,2433,2437,2442,2446],{"type":41,"tag":127,"props":2404,"children":2405},{"style":263},[2406],{"type":47,"value":2276},{"type":41,"tag":127,"props":2408,"children":2409},{"style":257},[2410],{"type":47,"value":509},{"type":41,"tag":127,"props":2412,"children":2413},{"style":400},[2414],{"type":47,"value":2415},"error",{"type":41,"tag":127,"props":2417,"children":2418},{"style":429},[2419],{"type":47,"value":432},{"type":41,"tag":127,"props":2421,"children":2422},{"style":257},[2423],{"type":47,"value":290},{"type":41,"tag":127,"props":2425,"children":2426},{"style":140},[2427],{"type":47,"value":2428},"Sign message failed:",{"type":41,"tag":127,"props":2430,"children":2431},{"style":257},[2432],{"type":47,"value":290},{"type":41,"tag":127,"props":2434,"children":2435},{"style":257},[2436],{"type":47,"value":1102},{"type":41,"tag":127,"props":2438,"children":2439},{"style":263},[2440],{"type":47,"value":2441}," err",{"type":41,"tag":127,"props":2443,"children":2444},{"style":429},[2445],{"type":47,"value":550},{"type":41,"tag":127,"props":2447,"children":2448},{"style":257},[2449],{"type":47,"value":295},{"type":41,"tag":127,"props":2451,"children":2453},{"class":129,"line":2452},23,[2454],{"type":41,"tag":127,"props":2455,"children":2456},{"style":257},[2457],{"type":47,"value":2458},"    }\n",{"type":41,"tag":127,"props":2460,"children":2462},{"class":129,"line":2461},24,[2463],{"type":41,"tag":127,"props":2464,"children":2465},{"style":257},[2466],{"type":47,"value":2467},"  };\n",{"type":41,"tag":127,"props":2469,"children":2471},{"class":129,"line":2470},25,[2472],{"type":41,"tag":127,"props":2473,"children":2474},{"emptyLinePlaceholder":379},[2475],{"type":47,"value":382},{"type":41,"tag":127,"props":2477,"children":2479},{"class":129,"line":2478},26,[2480,2484,2489,2493,2497,2501,2505],{"type":41,"tag":127,"props":2481,"children":2482},{"style":389},[2483],{"type":47,"value":571},{"type":41,"tag":127,"props":2485,"children":2486},{"style":263},[2487],{"type":47,"value":2488}," handleSendTransaction",{"type":41,"tag":127,"props":2490,"children":2491},{"style":257},[2492],{"type":47,"value":581},{"type":41,"tag":127,"props":2494,"children":2495},{"style":389},[2496],{"type":47,"value":2098},{"type":41,"tag":127,"props":2498,"children":2499},{"style":257},[2500],{"type":47,"value":2103},{"type":41,"tag":127,"props":2502,"children":2503},{"style":389},[2504],{"type":47,"value":2108},{"type":41,"tag":127,"props":2506,"children":2507},{"style":257},[2508],{"type":47,"value":413},{"type":41,"tag":127,"props":2510,"children":2512},{"class":129,"line":2511},27,[2513,2517,2521,2525,2530,2535,2540,2545,2549,2553],{"type":41,"tag":127,"props":2514,"children":2515},{"style":251},[2516],{"type":47,"value":2120},{"type":41,"tag":127,"props":2518,"children":2519},{"style":429},[2520],{"type":47,"value":2125},{"type":41,"tag":127,"props":2522,"children":2523},{"style":257},[2524],{"type":47,"value":628},{"type":41,"tag":127,"props":2526,"children":2527},{"style":263},[2528],{"type":47,"value":2529},"publicKey",{"type":41,"tag":127,"props":2531,"children":2532},{"style":257},[2533],{"type":47,"value":2534}," ||",{"type":41,"tag":127,"props":2536,"children":2537},{"style":257},[2538],{"type":47,"value":2539}," !",{"type":41,"tag":127,"props":2541,"children":2542},{"style":263},[2543],{"type":47,"value":2544},"sendTransaction",{"type":41,"tag":127,"props":2546,"children":2547},{"style":429},[2548],{"type":47,"value":2139},{"type":41,"tag":127,"props":2550,"children":2551},{"style":251},[2552],{"type":47,"value":2144},{"type":41,"tag":127,"props":2554,"children":2555},{"style":257},[2556],{"type":47,"value":295},{"type":41,"tag":127,"props":2558,"children":2560},{"class":129,"line":2559},28,[2561,2565],{"type":41,"tag":127,"props":2562,"children":2563},{"style":251},[2564],{"type":47,"value":2221},{"type":41,"tag":127,"props":2566,"children":2567},{"style":257},[2568],{"type":47,"value":413},{"type":41,"tag":127,"props":2570,"children":2572},{"class":129,"line":2571},29,[2573,2577,2581,2586,2590,2594,2598,2602,2606,2611,2615],{"type":41,"tag":127,"props":2574,"children":2575},{"style":389},[2576],{"type":47,"value":2233},{"type":41,"tag":127,"props":2578,"children":2579},{"style":257},[2580],{"type":47,"value":260},{"type":41,"tag":127,"props":2582,"children":2583},{"style":263},[2584],{"type":47,"value":2585}," blockhash",{"type":41,"tag":127,"props":2587,"children":2588},{"style":257},[2589],{"type":47,"value":271},{"type":41,"tag":127,"props":2591,"children":2592},{"style":257},[2593],{"type":47,"value":581},{"type":41,"tag":127,"props":2595,"children":2596},{"style":251},[2597],{"type":47,"value":2247},{"type":41,"tag":127,"props":2599,"children":2600},{"style":263},[2601],{"type":47,"value":2050},{"type":41,"tag":127,"props":2603,"children":2604},{"style":257},[2605],{"type":47,"value":509},{"type":41,"tag":127,"props":2607,"children":2608},{"style":400},[2609],{"type":47,"value":2610},"getLatestBlockhash",{"type":41,"tag":127,"props":2612,"children":2613},{"style":429},[2614],{"type":47,"value":408},{"type":41,"tag":127,"props":2616,"children":2617},{"style":257},[2618],{"type":47,"value":295},{"type":41,"tag":127,"props":2620,"children":2622},{"class":129,"line":2621},30,[2623,2627,2632,2636,2640,2645,2649,2653,2658],{"type":41,"tag":127,"props":2624,"children":2625},{"style":389},[2626],{"type":47,"value":2233},{"type":41,"tag":127,"props":2628,"children":2629},{"style":263},[2630],{"type":47,"value":2631}," transaction",{"type":41,"tag":127,"props":2633,"children":2634},{"style":257},[2635],{"type":47,"value":581},{"type":41,"tag":127,"props":2637,"children":2638},{"style":257},[2639],{"type":47,"value":2170},{"type":41,"tag":127,"props":2641,"children":2642},{"style":400},[2643],{"type":47,"value":2644}," Transaction",{"type":41,"tag":127,"props":2646,"children":2647},{"style":429},[2648],{"type":47,"value":408},{"type":41,"tag":127,"props":2650,"children":2651},{"style":257},[2652],{"type":47,"value":509},{"type":41,"tag":127,"props":2654,"children":2655},{"style":400},[2656],{"type":47,"value":2657},"add",{"type":41,"tag":127,"props":2659,"children":2660},{"style":429},[2661],{"type":47,"value":2662},"(\n",{"type":41,"tag":127,"props":2664,"children":2666},{"class":129,"line":2665},31,[2667,2672,2676,2681,2685],{"type":41,"tag":127,"props":2668,"children":2669},{"style":263},[2670],{"type":47,"value":2671},"        SystemProgram",{"type":41,"tag":127,"props":2673,"children":2674},{"style":257},[2675],{"type":47,"value":509},{"type":41,"tag":127,"props":2677,"children":2678},{"style":400},[2679],{"type":47,"value":2680},"transfer",{"type":41,"tag":127,"props":2682,"children":2683},{"style":429},[2684],{"type":47,"value":432},{"type":41,"tag":127,"props":2686,"children":2687},{"style":257},[2688],{"type":47,"value":437},{"type":41,"tag":127,"props":2690,"children":2692},{"class":129,"line":2691},32,[2693,2698,2702,2706],{"type":41,"tag":127,"props":2694,"children":2695},{"style":429},[2696],{"type":47,"value":2697},"          fromPubkey",{"type":41,"tag":127,"props":2699,"children":2700},{"style":257},[2701],{"type":47,"value":451},{"type":41,"tag":127,"props":2703,"children":2704},{"style":263},[2705],{"type":47,"value":1979},{"type":41,"tag":127,"props":2707,"children":2708},{"style":257},[2709],{"type":47,"value":486},{"type":41,"tag":127,"props":2711,"children":2713},{"class":129,"line":2712},33,[2714,2719,2723,2727,2732,2736,2740,2745,2749,2753],{"type":41,"tag":127,"props":2715,"children":2716},{"style":429},[2717],{"type":47,"value":2718},"          toPubkey",{"type":41,"tag":127,"props":2720,"children":2721},{"style":257},[2722],{"type":47,"value":451},{"type":41,"tag":127,"props":2724,"children":2725},{"style":257},[2726],{"type":47,"value":2170},{"type":41,"tag":127,"props":2728,"children":2729},{"style":400},[2730],{"type":47,"value":2731}," PublicKey",{"type":41,"tag":127,"props":2733,"children":2734},{"style":429},[2735],{"type":47,"value":432},{"type":41,"tag":127,"props":2737,"children":2738},{"style":257},[2739],{"type":47,"value":290},{"type":41,"tag":127,"props":2741,"children":2742},{"style":140},[2743],{"type":47,"value":2744},"11111111111111111111111111111112",{"type":41,"tag":127,"props":2746,"children":2747},{"style":257},[2748],{"type":47,"value":290},{"type":41,"tag":127,"props":2750,"children":2751},{"style":429},[2752],{"type":47,"value":550},{"type":41,"tag":127,"props":2754,"children":2755},{"style":257},[2756],{"type":47,"value":486},{"type":41,"tag":127,"props":2758,"children":2760},{"class":129,"line":2759},34,[2761,2766,2770,2776,2781,2786],{"type":41,"tag":127,"props":2762,"children":2763},{"style":429},[2764],{"type":47,"value":2765},"          lamports",{"type":41,"tag":127,"props":2767,"children":2768},{"style":257},[2769],{"type":47,"value":451},{"type":41,"tag":127,"props":2771,"children":2773},{"style":2772},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[2774],{"type":47,"value":2775}," 0.001",{"type":41,"tag":127,"props":2777,"children":2778},{"style":257},[2779],{"type":47,"value":2780}," *",{"type":41,"tag":127,"props":2782,"children":2783},{"style":263},[2784],{"type":47,"value":2785}," LAMPORTS_PER_SOL",{"type":41,"tag":127,"props":2787,"children":2788},{"style":257},[2789],{"type":47,"value":486},{"type":41,"tag":127,"props":2791,"children":2793},{"class":129,"line":2792},35,[2794,2799,2803],{"type":41,"tag":127,"props":2795,"children":2796},{"style":257},[2797],{"type":47,"value":2798},"        }",{"type":41,"tag":127,"props":2800,"children":2801},{"style":429},[2802],{"type":47,"value":550},{"type":41,"tag":127,"props":2804,"children":2805},{"style":257},[2806],{"type":47,"value":486},{"type":41,"tag":127,"props":2808,"children":2810},{"class":129,"line":2809},36,[2811,2816],{"type":41,"tag":127,"props":2812,"children":2813},{"style":429},[2814],{"type":47,"value":2815},"      )",{"type":41,"tag":127,"props":2817,"children":2818},{"style":257},[2819],{"type":47,"value":295},{"type":41,"tag":127,"props":2821,"children":2823},{"class":129,"line":2822},37,[2824,2829,2833,2838,2842,2846],{"type":41,"tag":127,"props":2825,"children":2826},{"style":263},[2827],{"type":47,"value":2828},"      transaction",{"type":41,"tag":127,"props":2830,"children":2831},{"style":257},[2832],{"type":47,"value":509},{"type":41,"tag":127,"props":2834,"children":2835},{"style":263},[2836],{"type":47,"value":2837},"recentBlockhash",{"type":41,"tag":127,"props":2839,"children":2840},{"style":257},[2841],{"type":47,"value":581},{"type":41,"tag":127,"props":2843,"children":2844},{"style":263},[2845],{"type":47,"value":2585},{"type":41,"tag":127,"props":2847,"children":2848},{"style":257},[2849],{"type":47,"value":295},{"type":41,"tag":127,"props":2851,"children":2853},{"class":129,"line":2852},38,[2854,2858,2862,2867,2871,2875],{"type":41,"tag":127,"props":2855,"children":2856},{"style":263},[2857],{"type":47,"value":2828},{"type":41,"tag":127,"props":2859,"children":2860},{"style":257},[2861],{"type":47,"value":509},{"type":41,"tag":127,"props":2863,"children":2864},{"style":263},[2865],{"type":47,"value":2866},"feePayer",{"type":41,"tag":127,"props":2868,"children":2869},{"style":257},[2870],{"type":47,"value":581},{"type":41,"tag":127,"props":2872,"children":2873},{"style":263},[2874],{"type":47,"value":1979},{"type":41,"tag":127,"props":2876,"children":2877},{"style":257},[2878],{"type":47,"value":295},{"type":41,"tag":127,"props":2880,"children":2882},{"class":129,"line":2881},39,[2883],{"type":41,"tag":127,"props":2884,"children":2885},{"emptyLinePlaceholder":379},[2886],{"type":47,"value":382},{"type":41,"tag":127,"props":2888,"children":2890},{"class":129,"line":2889},40,[2891,2895,2900,2904,2908,2912,2916,2921,2925,2929,2933],{"type":41,"tag":127,"props":2892,"children":2893},{"style":389},[2894],{"type":47,"value":2233},{"type":41,"tag":127,"props":2896,"children":2897},{"style":263},[2898],{"type":47,"value":2899}," txSignature",{"type":41,"tag":127,"props":2901,"children":2902},{"style":257},[2903],{"type":47,"value":581},{"type":41,"tag":127,"props":2905,"children":2906},{"style":251},[2907],{"type":47,"value":2247},{"type":41,"tag":127,"props":2909,"children":2910},{"style":400},[2911],{"type":47,"value":1988},{"type":41,"tag":127,"props":2913,"children":2914},{"style":429},[2915],{"type":47,"value":432},{"type":41,"tag":127,"props":2917,"children":2918},{"style":263},[2919],{"type":47,"value":2920},"transaction",{"type":41,"tag":127,"props":2922,"children":2923},{"style":257},[2924],{"type":47,"value":1102},{"type":41,"tag":127,"props":2926,"children":2927},{"style":263},[2928],{"type":47,"value":2050},{"type":41,"tag":127,"props":2930,"children":2931},{"style":429},[2932],{"type":47,"value":550},{"type":41,"tag":127,"props":2934,"children":2935},{"style":257},[2936],{"type":47,"value":295},{"type":41,"tag":127,"props":2938,"children":2940},{"class":129,"line":2939},41,[2941,2945,2950,2954,2958,2962,2966,2971,2975,2980,2984,2988,2993,2997,3001],{"type":41,"tag":127,"props":2942,"children":2943},{"style":389},[2944],{"type":47,"value":2233},{"type":41,"tag":127,"props":2946,"children":2947},{"style":263},[2948],{"type":47,"value":2949}," confirmation",{"type":41,"tag":127,"props":2951,"children":2952},{"style":257},[2953],{"type":47,"value":581},{"type":41,"tag":127,"props":2955,"children":2956},{"style":251},[2957],{"type":47,"value":2247},{"type":41,"tag":127,"props":2959,"children":2960},{"style":263},[2961],{"type":47,"value":2050},{"type":41,"tag":127,"props":2963,"children":2964},{"style":257},[2965],{"type":47,"value":509},{"type":41,"tag":127,"props":2967,"children":2968},{"style":400},[2969],{"type":47,"value":2970},"confirmTransaction",{"type":41,"tag":127,"props":2972,"children":2973},{"style":429},[2974],{"type":47,"value":432},{"type":41,"tag":127,"props":2976,"children":2977},{"style":263},[2978],{"type":47,"value":2979},"txSignature",{"type":41,"tag":127,"props":2981,"children":2982},{"style":257},[2983],{"type":47,"value":1102},{"type":41,"tag":127,"props":2985,"children":2986},{"style":257},[2987],{"type":47,"value":281},{"type":41,"tag":127,"props":2989,"children":2990},{"style":140},[2991],{"type":47,"value":2992},"confirmed",{"type":41,"tag":127,"props":2994,"children":2995},{"style":257},[2996],{"type":47,"value":290},{"type":41,"tag":127,"props":2998,"children":2999},{"style":429},[3000],{"type":47,"value":550},{"type":41,"tag":127,"props":3002,"children":3003},{"style":257},[3004],{"type":47,"value":295},{"type":41,"tag":127,"props":3006,"children":3008},{"class":129,"line":3007},42,[3009,3013,3017,3021,3025,3029,3034,3038,3042,3046,3050],{"type":41,"tag":127,"props":3010,"children":3011},{"style":263},[3012],{"type":47,"value":2276},{"type":41,"tag":127,"props":3014,"children":3015},{"style":257},[3016],{"type":47,"value":509},{"type":41,"tag":127,"props":3018,"children":3019},{"style":400},[3020],{"type":47,"value":2285},{"type":41,"tag":127,"props":3022,"children":3023},{"style":429},[3024],{"type":47,"value":432},{"type":41,"tag":127,"props":3026,"children":3027},{"style":257},[3028],{"type":47,"value":290},{"type":41,"tag":127,"props":3030,"children":3031},{"style":140},[3032],{"type":47,"value":3033},"Transaction confirmed:",{"type":41,"tag":127,"props":3035,"children":3036},{"style":257},[3037],{"type":47,"value":290},{"type":41,"tag":127,"props":3039,"children":3040},{"style":257},[3041],{"type":47,"value":1102},{"type":41,"tag":127,"props":3043,"children":3044},{"style":263},[3045],{"type":47,"value":2899},{"type":41,"tag":127,"props":3047,"children":3048},{"style":429},[3049],{"type":47,"value":550},{"type":41,"tag":127,"props":3051,"children":3052},{"style":257},[3053],{"type":47,"value":295},{"type":41,"tag":127,"props":3055,"children":3057},{"class":129,"line":3056},43,[3058,3062,3066,3070,3074,3078],{"type":41,"tag":127,"props":3059,"children":3060},{"style":257},[3061],{"type":47,"value":2376},{"type":41,"tag":127,"props":3063,"children":3064},{"style":251},[3065],{"type":47,"value":2381},{"type":41,"tag":127,"props":3067,"children":3068},{"style":429},[3069],{"type":47,"value":2125},{"type":41,"tag":127,"props":3071,"children":3072},{"style":263},[3073],{"type":47,"value":2390},{"type":41,"tag":127,"props":3075,"children":3076},{"style":429},[3077],{"type":47,"value":2139},{"type":41,"tag":127,"props":3079,"children":3080},{"style":257},[3081],{"type":47,"value":437},{"type":41,"tag":127,"props":3083,"children":3085},{"class":129,"line":3084},44,[3086,3090,3094,3098,3102,3106,3111,3115,3119,3123,3127],{"type":41,"tag":127,"props":3087,"children":3088},{"style":263},[3089],{"type":47,"value":2276},{"type":41,"tag":127,"props":3091,"children":3092},{"style":257},[3093],{"type":47,"value":509},{"type":41,"tag":127,"props":3095,"children":3096},{"style":400},[3097],{"type":47,"value":2415},{"type":41,"tag":127,"props":3099,"children":3100},{"style":429},[3101],{"type":47,"value":432},{"type":41,"tag":127,"props":3103,"children":3104},{"style":257},[3105],{"type":47,"value":290},{"type":41,"tag":127,"props":3107,"children":3108},{"style":140},[3109],{"type":47,"value":3110},"Transaction failed:",{"type":41,"tag":127,"props":3112,"children":3113},{"style":257},[3114],{"type":47,"value":290},{"type":41,"tag":127,"props":3116,"children":3117},{"style":257},[3118],{"type":47,"value":1102},{"type":41,"tag":127,"props":3120,"children":3121},{"style":263},[3122],{"type":47,"value":2441},{"type":41,"tag":127,"props":3124,"children":3125},{"style":429},[3126],{"type":47,"value":550},{"type":41,"tag":127,"props":3128,"children":3129},{"style":257},[3130],{"type":47,"value":295},{"type":41,"tag":127,"props":3132,"children":3134},{"class":129,"line":3133},45,[3135],{"type":41,"tag":127,"props":3136,"children":3137},{"style":257},[3138],{"type":47,"value":2458},{"type":41,"tag":127,"props":3140,"children":3142},{"class":129,"line":3141},46,[3143],{"type":41,"tag":127,"props":3144,"children":3145},{"style":257},[3146],{"type":47,"value":2467},{"type":41,"tag":127,"props":3148,"children":3150},{"class":129,"line":3149},47,[3151],{"type":41,"tag":127,"props":3152,"children":3153},{"emptyLinePlaceholder":379},[3154],{"type":47,"value":382},{"type":41,"tag":127,"props":3156,"children":3158},{"class":129,"line":3157},48,[3159,3163],{"type":41,"tag":127,"props":3160,"children":3161},{"style":251},[3162],{"type":47,"value":1377},{"type":41,"tag":127,"props":3164,"children":3165},{"style":429},[3166],{"type":47,"value":1382},{"type":41,"tag":127,"props":3168,"children":3170},{"class":129,"line":3169},49,[3171,3175,3180],{"type":41,"tag":127,"props":3172,"children":3173},{"style":257},[3174],{"type":47,"value":1390},{"type":41,"tag":127,"props":3176,"children":3177},{"style":429},[3178],{"type":47,"value":3179},"div",{"type":41,"tag":127,"props":3181,"children":3182},{"style":257},[3183],{"type":47,"value":1456},{"type":41,"tag":127,"props":3185,"children":3187},{"class":129,"line":3186},50,[3188,3192,3197],{"type":41,"tag":127,"props":3189,"children":3190},{"style":257},[3191],{"type":47,"value":1423},{"type":41,"tag":127,"props":3193,"children":3194},{"style":134},[3195],{"type":47,"value":3196},"WalletMultiButton",{"type":41,"tag":127,"props":3198,"children":3199},{"style":257},[3200],{"type":47,"value":1491},{"type":41,"tag":127,"props":3202,"children":3204},{"class":129,"line":3203},51,[3205,3210,3215,3220,3225,3229],{"type":41,"tag":127,"props":3206,"children":3207},{"style":257},[3208],{"type":47,"value":3209},"      {",{"type":41,"tag":127,"props":3211,"children":3212},{"style":263},[3213],{"type":47,"value":3214},"connected ",{"type":41,"tag":127,"props":3216,"children":3217},{"style":257},[3218],{"type":47,"value":3219},"&&",{"type":41,"tag":127,"props":3221,"children":3222},{"style":263},[3223],{"type":47,"value":3224}," publicKey ",{"type":41,"tag":127,"props":3226,"children":3227},{"style":257},[3228],{"type":47,"value":3219},{"type":41,"tag":127,"props":3230,"children":3231},{"style":263},[3232],{"type":47,"value":1382},{"type":41,"tag":127,"props":3234,"children":3236},{"class":129,"line":3235},52,[3237,3241,3245],{"type":41,"tag":127,"props":3238,"children":3239},{"style":257},[3240],{"type":47,"value":1464},{"type":41,"tag":127,"props":3242,"children":3243},{"style":429},[3244],{"type":47,"value":3179},{"type":41,"tag":127,"props":3246,"children":3247},{"style":257},[3248],{"type":47,"value":1456},{"type":41,"tag":127,"props":3250,"children":3252},{"class":129,"line":3251},53,[3253,3257,3261,3266,3271,3276,3281,3285,3289,3293,3298,3303,3307],{"type":41,"tag":127,"props":3254,"children":3255},{"style":257},[3256],{"type":47,"value":1481},{"type":41,"tag":127,"props":3258,"children":3259},{"style":429},[3260],{"type":47,"value":57},{"type":41,"tag":127,"props":3262,"children":3263},{"style":257},[3264],{"type":47,"value":3265},">",{"type":41,"tag":127,"props":3267,"children":3268},{"style":263},[3269],{"type":47,"value":3270},"Wallet: ",{"type":41,"tag":127,"props":3272,"children":3273},{"style":257},[3274],{"type":47,"value":3275},"{",{"type":41,"tag":127,"props":3277,"children":3278},{"style":263},[3279],{"type":47,"value":3280},"wallet",{"type":41,"tag":127,"props":3282,"children":3283},{"style":257},[3284],{"type":47,"value":1703},{"type":41,"tag":127,"props":3286,"children":3287},{"style":263},[3288],{"type":47,"value":1708},{"type":41,"tag":127,"props":3290,"children":3291},{"style":257},[3292],{"type":47,"value":509},{"type":41,"tag":127,"props":3294,"children":3295},{"style":263},[3296],{"type":47,"value":3297},"name",{"type":41,"tag":127,"props":3299,"children":3300},{"style":257},[3301],{"type":47,"value":3302},"}\u003C\u002F",{"type":41,"tag":127,"props":3304,"children":3305},{"style":429},[3306],{"type":47,"value":57},{"type":41,"tag":127,"props":3308,"children":3309},{"style":257},[3310],{"type":47,"value":1456},{"type":41,"tag":127,"props":3312,"children":3314},{"class":129,"line":3313},54,[3315,3319,3323,3327,3332,3336,3340,3344,3349,3353,3357,3361],{"type":41,"tag":127,"props":3316,"children":3317},{"style":257},[3318],{"type":47,"value":1481},{"type":41,"tag":127,"props":3320,"children":3321},{"style":429},[3322],{"type":47,"value":57},{"type":41,"tag":127,"props":3324,"children":3325},{"style":257},[3326],{"type":47,"value":3265},{"type":41,"tag":127,"props":3328,"children":3329},{"style":263},[3330],{"type":47,"value":3331},"Address: ",{"type":41,"tag":127,"props":3333,"children":3334},{"style":257},[3335],{"type":47,"value":3275},{"type":41,"tag":127,"props":3337,"children":3338},{"style":263},[3339],{"type":47,"value":2529},{"type":41,"tag":127,"props":3341,"children":3342},{"style":257},[3343],{"type":47,"value":509},{"type":41,"tag":127,"props":3345,"children":3346},{"style":400},[3347],{"type":47,"value":3348},"toBase58",{"type":41,"tag":127,"props":3350,"children":3351},{"style":263},[3352],{"type":47,"value":408},{"type":41,"tag":127,"props":3354,"children":3355},{"style":257},[3356],{"type":47,"value":3302},{"type":41,"tag":127,"props":3358,"children":3359},{"style":429},[3360],{"type":47,"value":57},{"type":41,"tag":127,"props":3362,"children":3363},{"style":257},[3364],{"type":47,"value":1456},{"type":41,"tag":127,"props":3366,"children":3368},{"class":129,"line":3367},55,[3369,3373,3378,3383,3387,3392,3397,3402,3407,3411],{"type":41,"tag":127,"props":3370,"children":3371},{"style":257},[3372],{"type":47,"value":1481},{"type":41,"tag":127,"props":3374,"children":3375},{"style":429},[3376],{"type":47,"value":3377},"button",{"type":41,"tag":127,"props":3379,"children":3380},{"style":389},[3381],{"type":47,"value":3382}," onClick",{"type":41,"tag":127,"props":3384,"children":3385},{"style":257},[3386],{"type":47,"value":1405},{"type":41,"tag":127,"props":3388,"children":3389},{"style":263},[3390],{"type":47,"value":3391},"handleSignMessage",{"type":41,"tag":127,"props":3393,"children":3394},{"style":257},[3395],{"type":47,"value":3396},"}>",{"type":41,"tag":127,"props":3398,"children":3399},{"style":263},[3400],{"type":47,"value":3401},"Sign Message",{"type":41,"tag":127,"props":3403,"children":3404},{"style":257},[3405],{"type":47,"value":3406},"\u003C\u002F",{"type":41,"tag":127,"props":3408,"children":3409},{"style":429},[3410],{"type":47,"value":3377},{"type":41,"tag":127,"props":3412,"children":3413},{"style":257},[3414],{"type":47,"value":1456},{"type":41,"tag":127,"props":3416,"children":3418},{"class":129,"line":3417},56,[3419,3423,3427,3431,3435,3440,3444,3449,3453,3457],{"type":41,"tag":127,"props":3420,"children":3421},{"style":257},[3422],{"type":47,"value":1481},{"type":41,"tag":127,"props":3424,"children":3425},{"style":429},[3426],{"type":47,"value":3377},{"type":41,"tag":127,"props":3428,"children":3429},{"style":389},[3430],{"type":47,"value":3382},{"type":41,"tag":127,"props":3432,"children":3433},{"style":257},[3434],{"type":47,"value":1405},{"type":41,"tag":127,"props":3436,"children":3437},{"style":263},[3438],{"type":47,"value":3439},"handleSendTransaction",{"type":41,"tag":127,"props":3441,"children":3442},{"style":257},[3443],{"type":47,"value":3396},{"type":41,"tag":127,"props":3445,"children":3446},{"style":263},[3447],{"type":47,"value":3448},"Send 0.001 SOL",{"type":41,"tag":127,"props":3450,"children":3451},{"style":257},[3452],{"type":47,"value":3406},{"type":41,"tag":127,"props":3454,"children":3455},{"style":429},[3456],{"type":47,"value":3377},{"type":41,"tag":127,"props":3458,"children":3459},{"style":257},[3460],{"type":47,"value":1456},{"type":41,"tag":127,"props":3462,"children":3464},{"class":129,"line":3463},57,[3465,3469,3473],{"type":41,"tag":127,"props":3466,"children":3467},{"style":257},[3468],{"type":47,"value":1499},{"type":41,"tag":127,"props":3470,"children":3471},{"style":429},[3472],{"type":47,"value":3179},{"type":41,"tag":127,"props":3474,"children":3475},{"style":257},[3476],{"type":47,"value":1456},{"type":41,"tag":127,"props":3478,"children":3480},{"class":129,"line":3479},58,[3481,3485],{"type":41,"tag":127,"props":3482,"children":3483},{"style":263},[3484],{"type":47,"value":2815},{"type":41,"tag":127,"props":3486,"children":3487},{"style":257},[3488],{"type":47,"value":682},{"type":41,"tag":127,"props":3490,"children":3492},{"class":129,"line":3491},59,[3493,3497,3501],{"type":41,"tag":127,"props":3494,"children":3495},{"style":257},[3496],{"type":47,"value":1531},{"type":41,"tag":127,"props":3498,"children":3499},{"style":429},[3500],{"type":47,"value":3179},{"type":41,"tag":127,"props":3502,"children":3503},{"style":257},[3504],{"type":47,"value":1456},{"type":41,"tag":127,"props":3506,"children":3508},{"class":129,"line":3507},60,[3509,3513],{"type":41,"tag":127,"props":3510,"children":3511},{"style":429},[3512],{"type":47,"value":1548},{"type":41,"tag":127,"props":3514,"children":3515},{"style":257},[3516],{"type":47,"value":295},{"type":41,"tag":127,"props":3518,"children":3520},{"class":129,"line":3519},61,[3521],{"type":41,"tag":127,"props":3522,"children":3523},{"style":257},[3524],{"type":47,"value":682},{"type":41,"tag":109,"props":3526,"children":3528},{"id":3527},"step-6-chrome-on-android-workaround",[3529],{"type":47,"value":3530},"Step 6: Chrome on Android workaround",{"type":41,"tag":57,"props":3532,"children":3533},{},[3534,3536,3542],{"type":47,"value":3535},"Chrome on Android has a known bug where the page may unload before MetaMask can respond. Add a ",{"type":41,"tag":78,"props":3537,"children":3539},{"className":3538},[],[3540],{"type":47,"value":3541},"beforeunload",{"type":47,"value":3543}," patch in your entry file:",{"type":41,"tag":116,"props":3545,"children":3547},{"className":230,"code":3546,"language":232,"meta":121,"style":121},"window.addEventListener('beforeunload', (e) => {\n  e.preventDefault();\n  e.returnValue = '';\n});\n",[3548],{"type":41,"tag":78,"props":3549,"children":3550},{"__ignoreMap":121},[3551,3610,3635,3664],{"type":41,"tag":127,"props":3552,"children":3553},{"class":129,"line":130},[3554,3559,3563,3568,3572,3576,3580,3584,3588,3592,3598,3602,3606],{"type":41,"tag":127,"props":3555,"children":3556},{"style":263},[3557],{"type":47,"value":3558},"window",{"type":41,"tag":127,"props":3560,"children":3561},{"style":257},[3562],{"type":47,"value":509},{"type":41,"tag":127,"props":3564,"children":3565},{"style":400},[3566],{"type":47,"value":3567},"addEventListener",{"type":41,"tag":127,"props":3569,"children":3570},{"style":263},[3571],{"type":47,"value":432},{"type":41,"tag":127,"props":3573,"children":3574},{"style":257},[3575],{"type":47,"value":290},{"type":41,"tag":127,"props":3577,"children":3578},{"style":140},[3579],{"type":47,"value":3541},{"type":41,"tag":127,"props":3581,"children":3582},{"style":257},[3583],{"type":47,"value":290},{"type":41,"tag":127,"props":3585,"children":3586},{"style":257},[3587],{"type":47,"value":1102},{"type":41,"tag":127,"props":3589,"children":3590},{"style":257},[3591],{"type":47,"value":2125},{"type":41,"tag":127,"props":3593,"children":3595},{"style":3594},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[3596],{"type":47,"value":3597},"e",{"type":41,"tag":127,"props":3599,"children":3600},{"style":257},[3601],{"type":47,"value":550},{"type":41,"tag":127,"props":3603,"children":3604},{"style":389},[3605],{"type":47,"value":2108},{"type":41,"tag":127,"props":3607,"children":3608},{"style":257},[3609],{"type":47,"value":413},{"type":41,"tag":127,"props":3611,"children":3612},{"class":129,"line":25},[3613,3618,3622,3627,3631],{"type":41,"tag":127,"props":3614,"children":3615},{"style":263},[3616],{"type":47,"value":3617},"  e",{"type":41,"tag":127,"props":3619,"children":3620},{"style":257},[3621],{"type":47,"value":509},{"type":41,"tag":127,"props":3623,"children":3624},{"style":400},[3625],{"type":47,"value":3626},"preventDefault",{"type":41,"tag":127,"props":3628,"children":3629},{"style":429},[3630],{"type":47,"value":408},{"type":41,"tag":127,"props":3632,"children":3633},{"style":257},[3634],{"type":47,"value":295},{"type":41,"tag":127,"props":3636,"children":3637},{"class":129,"line":298},[3638,3642,3646,3651,3655,3660],{"type":41,"tag":127,"props":3639,"children":3640},{"style":263},[3641],{"type":47,"value":3617},{"type":41,"tag":127,"props":3643,"children":3644},{"style":257},[3645],{"type":47,"value":509},{"type":41,"tag":127,"props":3647,"children":3648},{"style":263},[3649],{"type":47,"value":3650},"returnValue",{"type":41,"tag":127,"props":3652,"children":3653},{"style":257},[3654],{"type":47,"value":581},{"type":41,"tag":127,"props":3656,"children":3657},{"style":257},[3658],{"type":47,"value":3659}," ''",{"type":41,"tag":127,"props":3661,"children":3662},{"style":257},[3663],{"type":47,"value":295},{"type":41,"tag":127,"props":3665,"children":3666},{"class":129,"line":340},[3667,3671,3675],{"type":41,"tag":127,"props":3668,"children":3669},{"style":257},[3670],{"type":47,"value":1661},{"type":41,"tag":127,"props":3672,"children":3673},{"style":263},[3674],{"type":47,"value":550},{"type":41,"tag":127,"props":3676,"children":3677},{"style":257},[3678],{"type":47,"value":295},{"type":41,"tag":50,"props":3680,"children":3682},{"id":3681},"important-notes",[3683],{"type":47,"value":3684},"Important Notes",{"type":41,"tag":63,"props":3686,"children":3687},{},[3688,3712,3732,3769,3831,3870,3880,3896],{"type":41,"tag":67,"props":3689,"children":3690},{},[3691,3702,3704,3710],{"type":41,"tag":213,"props":3692,"children":3693},{},[3694,3695,3700],{"type":47,"value":203},{"type":41,"tag":78,"props":3696,"children":3698},{"className":3697},[],[3699],{"type":47,"value":209},{"type":47,"value":3701}," early, but rendering need not wait",{"type":47,"value":3703}," — wallet registration happens shortly ",{"type":41,"tag":3705,"props":3706,"children":3707},"em",{},[3708],{"type":47,"value":3709},"after",{"type":47,"value":3711}," the factory resolves (the SDK defers it ~1s), and the wallet adapter discovers late registrations via the wallet-standard register event. Only gate UI that assumes MetaMask is already in the wallet list.",{"type":41,"tag":67,"props":3713,"children":3714},{},[3715,3730],{"type":41,"tag":213,"props":3716,"children":3717},{},[3718,3723,3725],{"type":41,"tag":78,"props":3719,"children":3721},{"className":3720},[],[3722],{"type":47,"value":1062},{"type":47,"value":3724}," prop must be ",{"type":41,"tag":78,"props":3726,"children":3728},{"className":3727},[],[3729],{"type":47,"value":1441},{"type":47,"value":3731}," — MetaMask uses wallet-standard auto-discovery. Passing wallet adapter instances manually will not work and may cause duplicates with other wallets.",{"type":41,"tag":67,"props":3733,"children":3734},{},[3735,3745,3747,3753,3755,3760,3762,3767],{"type":41,"tag":213,"props":3736,"children":3737},{},[3738,3740],{"type":47,"value":3739},"The wallet name is exactly ",{"type":41,"tag":78,"props":3741,"children":3743},{"className":3742},[],[3744],{"type":47,"value":1584},{"type":47,"value":3746}," — case-sensitive. Use this to identify the MetaMask wallet in the adapter list. Renamed from ",{"type":41,"tag":78,"props":3748,"children":3750},{"className":3749},[],[3751],{"type":47,"value":3752},"\"MetaMask Connect\"",{"type":47,"value":3754}," in ",{"type":41,"tag":78,"props":3756,"children":3758},{"className":3757},[],[3759],{"type":47,"value":190},{"type":47,"value":3761}," 1.0.0; since that release, the client will also defer to an already-injected Solana provider (e.g. the MetaMask browser extension) instead of announcing a second ",{"type":41,"tag":78,"props":3763,"children":3765},{"className":3764},[],[3766],{"type":47,"value":1584},{"type":47,"value":3768}," entry.",{"type":41,"tag":67,"props":3770,"children":3771},{},[3772,3783,3785,3790,3792,3798,3800,3806,3808,3813,3815,3821,3823,3829],{"type":41,"tag":213,"props":3773,"children":3774},{},[3775,3777],{"type":47,"value":3776},"Eager provider initialization + stable ",{"type":41,"tag":78,"props":3778,"children":3780},{"className":3779},[],[3781],{"type":47,"value":3782},"getWallet()",{"type":47,"value":3784}," — since ",{"type":41,"tag":78,"props":3786,"children":3788},{"className":3787},[],[3789],{"type":47,"value":190},{"type":47,"value":3791}," 1.1.0, ",{"type":41,"tag":78,"props":3793,"children":3795},{"className":3794},[],[3796],{"type":47,"value":3797},"createSolanaClient()",{"type":47,"value":3799}," eagerly initializes the Solana wallet provider during creation; if the underlying multichain session already contains Solana scopes, the provider's accounts are populated by the time the client resolves (no need to wait for ",{"type":41,"tag":78,"props":3801,"children":3803},{"className":3802},[],[3804],{"type":47,"value":3805},"wallet_sessionChanged",{"type":47,"value":3807}," on cold start). ",{"type":41,"tag":78,"props":3809,"children":3811},{"className":3810},[],[3812],{"type":47,"value":3782},{"type":47,"value":3814}," also returns the same wallet instance on every call now — safe to cache in a ",{"type":41,"tag":78,"props":3816,"children":3818},{"className":3817},[],[3819],{"type":47,"value":3820},"useRef",{"type":47,"value":3822}," \u002F ",{"type":41,"tag":78,"props":3824,"children":3826},{"className":3825},[],[3827],{"type":47,"value":3828},"useMemo",{"type":47,"value":3830}," value, no need to call it on every render.",{"type":41,"tag":67,"props":3832,"children":3833},{},[3834,3845,3847,3853,3855,3860,3862,3868],{"type":41,"tag":213,"props":3835,"children":3836},{},[3837,3843],{"type":41,"tag":78,"props":3838,"children":3840},{"className":3839},[],[3841],{"type":47,"value":3842},"getInfuraRpcUrls",{"type":47,"value":3844}," helper",{"type":47,"value":3846}," — use ",{"type":41,"tag":78,"props":3848,"children":3850},{"className":3849},[],[3851],{"type":47,"value":3852},"getInfuraRpcUrls({ infuraApiKey: 'YOUR_KEY', networks: ['mainnet', 'devnet'] })",{"type":47,"value":3854}," from ",{"type":41,"tag":78,"props":3856,"children":3858},{"className":3857},[],[3859],{"type":47,"value":190},{"type":47,"value":3861}," to auto-generate ",{"type":41,"tag":78,"props":3863,"children":3865},{"className":3864},[],[3866],{"type":47,"value":3867},"supportedNetworks",{"type":47,"value":3869}," from Infura.",{"type":41,"tag":67,"props":3871,"children":3872},{},[3873,3878],{"type":41,"tag":213,"props":3874,"children":3875},{},[3876],{"type":47,"value":3877},"Solana networks",{"type":47,"value":3879}," — mainnet, devnet, and testnet scopes are all modeled by the SDK and wallet-standard layer. Non-mainnet availability depends on the connected MetaMask build\u002Fversion, so handle connection errors rather than assuming a cluster is present.",{"type":41,"tag":67,"props":3881,"children":3882},{},[3883,3894],{"type":41,"tag":213,"props":3884,"children":3885},{},[3886,3892],{"type":41,"tag":78,"props":3887,"children":3889},{"className":3888},[],[3890],{"type":47,"value":3891},"disconnect()",{"type":47,"value":3893}," only revokes Solana scopes",{"type":47,"value":3895}," — if the user also has EVM sessions, those remain active. Each chain family manages its own session lifecycle.",{"type":41,"tag":67,"props":3897,"children":3898},{},[3899,3904,3906,3911],{"type":41,"tag":213,"props":3900,"children":3901},{},[3902],{"type":47,"value":3903},"Chrome on Android",{"type":47,"value":3905}," — a known browser bug can interrupt the connection flow. Apply the ",{"type":41,"tag":78,"props":3907,"children":3909},{"className":3908},[],[3910],{"type":47,"value":3541},{"type":47,"value":3912}," workaround shown in Step 6.",{"type":41,"tag":3914,"props":3915,"children":3916},"style",{},[3917],{"type":47,"value":3918},"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":3920,"total":2478},[3921,3942,3956,3968,3977,3986,4000,4016,4031,4042,4052,4062],{"slug":3922,"name":3922,"fn":3923,"description":3924,"org":3925,"tags":3926,"stars":3313,"repoUrl":3940,"updatedAt":3941},"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},[3927,3930,3933,3936,3939],{"name":3928,"slug":3929,"type":15},"API Development","api-development",{"name":3931,"slug":3932,"type":15},"Auth","auth",{"name":3934,"slug":3935,"type":15},"Ethereum","ethereum",{"name":3937,"slug":3938,"type":15},"Permissions","permissions",{"name":17,"slug":18,"type":15},"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fsmart-accounts-kit","2026-07-13T06:11:32.8327",{"slug":3943,"name":3943,"fn":3944,"description":3945,"org":3946,"tags":3947,"stars":3313,"repoUrl":3940,"updatedAt":3955},"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},[3948,3949,3952,3953],{"name":3928,"slug":3929,"type":15},{"name":3950,"slug":3951,"type":15},"Payments","payments",{"name":17,"slug":18,"type":15},{"name":3954,"slug":3954,"type":15},"x402","2026-07-13T06:11:30.877136",{"slug":3957,"name":3957,"fn":3958,"description":3959,"org":3960,"tags":3961,"stars":458,"repoUrl":3966,"updatedAt":3967},"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},[3962,3963],{"name":3928,"slug":3929,"type":15},{"name":3964,"slug":3965,"type":15},"Search","search","https:\u002F\u002Fgithub.com\u002FMetaMask\u002Focap-kernel","2026-07-13T06:12:37.024095",{"slug":8,"name":8,"fn":3969,"description":3970,"org":3971,"tags":3972,"stars":458,"repoUrl":3966,"updatedAt":3976},"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},[3973,3974,3975],{"name":3928,"slug":3929,"type":15},{"name":3934,"slug":3935,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:12:33.955806",{"slug":3280,"name":3280,"fn":3978,"description":3979,"org":3980,"tags":3981,"stars":458,"repoUrl":3966,"updatedAt":3985},"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},[3982,3983,3984],{"name":3934,"slug":3935,"type":15},{"name":3950,"slug":3951,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:12:35.380244",{"slug":3987,"name":3987,"fn":3988,"description":3989,"org":3990,"tags":3991,"stars":416,"repoUrl":3998,"updatedAt":3999},"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},[3992,3993,3994,3995,3997],{"name":3928,"slug":3929,"type":15},{"name":3934,"slug":3935,"type":15},{"name":20,"slug":21,"type":15},{"name":3996,"slug":3996,"type":15},"wagmi",{"name":17,"slug":18,"type":15},"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fconnect-monorepo","2026-07-13T06:11:34.445665",{"slug":4001,"name":4001,"fn":4002,"description":4003,"org":4004,"tags":4005,"stars":375,"repoUrl":4014,"updatedAt":4015},"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},[4006,4009,4012,4013],{"name":4007,"slug":4008,"type":15},"Blockchain","blockchain",{"name":4010,"slug":4011,"type":15},"DeFi","defi",{"name":3934,"slug":3935,"type":15},{"name":17,"slug":18,"type":15},"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fagent-skills","2026-08-01T05:45:07.976522",{"slug":4017,"name":4017,"fn":4018,"description":4019,"org":4020,"tags":4021,"stars":25,"repoUrl":26,"updatedAt":4030},"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},[4022,4023,4026,4029],{"name":3934,"slug":3935,"type":15},{"name":4024,"slug":4025,"type":15},"Migration","migration",{"name":4027,"slug":4028,"type":15},"SDK","sdk",{"name":17,"slug":18,"type":15},"2026-07-13T06:11:46.427441",{"slug":4032,"name":4032,"fn":4033,"description":4034,"org":4035,"tags":4036,"stars":25,"repoUrl":26,"updatedAt":4041},"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},[4037,4038,4039,4040],{"name":3934,"slug":3935,"type":15},{"name":4024,"slug":4025,"type":15},{"name":3996,"slug":3996,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:12:23.110706",{"slug":4043,"name":4043,"fn":4044,"description":4045,"org":4046,"tags":4047,"stars":25,"repoUrl":26,"updatedAt":4051},"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},[4048,4049,4050],{"name":3928,"slug":3929,"type":15},{"name":3934,"slug":3935,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:11:56.866623",{"slug":4053,"name":4053,"fn":4054,"description":4055,"org":4056,"tags":4057,"stars":25,"repoUrl":26,"updatedAt":4061},"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},[4058,4059,4060],{"name":3950,"slug":3951,"type":15},{"name":20,"slug":21,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:12:03.942378",{"slug":4063,"name":4063,"fn":4064,"description":4065,"org":4066,"tags":4067,"stars":25,"repoUrl":26,"updatedAt":4076},"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},[4068,4069,4070,4073,4075],{"name":3934,"slug":3935,"type":15},{"name":23,"slug":24,"type":15},{"name":4071,"slug":4072,"type":15},"JavaScript","javascript",{"name":4074,"slug":232,"type":15},"TypeScript",{"name":17,"slug":18,"type":15},"2026-07-13T06:12:01.334051",{"items":4078,"total":693},[4079,4086,4093,4099,4105,4113,4125],{"slug":4017,"name":4017,"fn":4018,"description":4019,"org":4080,"tags":4081,"stars":25,"repoUrl":26,"updatedAt":4030},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4082,4083,4084,4085],{"name":3934,"slug":3935,"type":15},{"name":4024,"slug":4025,"type":15},{"name":4027,"slug":4028,"type":15},{"name":17,"slug":18,"type":15},{"slug":4032,"name":4032,"fn":4033,"description":4034,"org":4087,"tags":4088,"stars":25,"repoUrl":26,"updatedAt":4041},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4089,4090,4091,4092],{"name":3934,"slug":3935,"type":15},{"name":4024,"slug":4025,"type":15},{"name":3996,"slug":3996,"type":15},{"name":17,"slug":18,"type":15},{"slug":4043,"name":4043,"fn":4044,"description":4045,"org":4094,"tags":4095,"stars":25,"repoUrl":26,"updatedAt":4051},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4096,4097,4098],{"name":3928,"slug":3929,"type":15},{"name":3934,"slug":3935,"type":15},{"name":17,"slug":18,"type":15},{"slug":4053,"name":4053,"fn":4054,"description":4055,"org":4100,"tags":4101,"stars":25,"repoUrl":26,"updatedAt":4061},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4102,4103,4104],{"name":3950,"slug":3951,"type":15},{"name":20,"slug":21,"type":15},{"name":17,"slug":18,"type":15},{"slug":4063,"name":4063,"fn":4064,"description":4065,"org":4106,"tags":4107,"stars":25,"repoUrl":26,"updatedAt":4076},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4108,4109,4110,4111,4112],{"name":3934,"slug":3935,"type":15},{"name":23,"slug":24,"type":15},{"name":4071,"slug":4072,"type":15},{"name":4074,"slug":232,"type":15},{"name":17,"slug":18,"type":15},{"slug":4114,"name":4114,"fn":4115,"description":4116,"org":4117,"tags":4118,"stars":25,"repoUrl":26,"updatedAt":4124},"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},[4119,4120,4121,4122,4123],{"name":3928,"slug":3929,"type":15},{"name":3934,"slug":3935,"type":15},{"name":23,"slug":24,"type":15},{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},"2026-07-13T06:11:52.764143",{"slug":4126,"name":4126,"fn":4127,"description":4128,"org":4129,"tags":4130,"stars":25,"repoUrl":26,"updatedAt":4139},"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},[4131,4132,4135,4138],{"name":3934,"slug":3935,"type":15},{"name":4133,"slug":4134,"type":15},"Mobile","mobile",{"name":4136,"slug":4137,"type":15},"React Native","react-native",{"name":17,"slug":18,"type":15},"2026-07-13T06:12:11.764689"]