[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-metamask-migrate-from-sdk":3,"mdc--dsvpwj-key":35,"related-repo-metamask-migrate-from-sdk":6062,"related-org-metamask-migrate-from-sdk":6153},{"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},"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},"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},"Web3","web3","tag",{"name":17,"slug":18,"type":15},"Migration","migration",{"name":20,"slug":21,"type":15},"SDK","sdk",{"name":23,"slug":24,"type":15},"Ethereum","ethereum",2,"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fmetamask-connect-cursor-plugin","2026-07-13T06:11:46.427441",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\u002Fmigrate-from-sdk","---\nname: migrate-from-sdk\ndescription: Migrate from @metamask\u002Fsdk to @metamask\u002Fconnect-evm, @metamask\u002Fconnect-multichain, and @metamask\u002Fconnect-solana with step-by-step package, API, and configuration changes\n---\n# Migrate from @metamask\u002Fsdk to @metamask\u002Fconnect\n\n## When to use\n\nUse this skill when:\n- Migrating an existing dApp from `@metamask\u002Fsdk` or `@metamask\u002Fsdk-react` to the new `@metamask\u002Fconnect-*` packages\n- Updating initialization code, provider access, or event handling for the new API\n- Converting a wagmi integration to use the new `metaMask()` connector\n- Adding multichain or Solana support during the migration\n\n## Workflow\n\n### Step 1: Replace packages\n\nRemove the old packages and install the new ones:\n\n```bash\n# Remove old\nnpm uninstall @metamask\u002Fsdk @metamask\u002Fsdk-react\n\n# Install new — pick the packages you need\nnpm install @metamask\u002Fconnect-evm\nnpm install @metamask\u002Fconnect-multichain\nnpm install @metamask\u002Fconnect-solana\n```\n\n---\n\n### Step 1b: React Native polyfills (if applicable)\n\nNo polyfill configuration is needed for web environments (Vite, Webpack, Next.js, etc.) — `@metamask\u002Fconnect-*` packages no longer depend on Node.js built-ins in the browser.\n\n**React Native only:** Polyfills must be imported in a specific order. See the `react-native-polyfills` rule for required import order, window\u002FEvent\u002FCustomEvent shims, and metro configuration. Note: `Buffer` is self-polyfilled by `@metamask\u002Fconnect-multichain` but should still be set early as a safety net for peer deps.\n\n---\n\n### Step 2: Update imports\n\n**Old:**\n\n```typescript\nimport { MetaMaskSDK } from '@metamask\u002Fsdk';\nimport { MetaMaskProvider, useSDK } from '@metamask\u002Fsdk-react';\n```\n\n**New (EVM):**\n\n```typescript\nimport { createEVMClient, getInfuraRpcUrls } from '@metamask\u002Fconnect-evm';\n```\n\n**New (Multichain):**\n\n```typescript\nimport { createMultichainClient } from '@metamask\u002Fconnect-multichain';\n```\n\n**New (Solana):**\n\n```typescript\nimport { createSolanaClient } from '@metamask\u002Fconnect-solana';\n```\n\n**New (wagmi connector):**\n\n```typescript\n\u002F\u002F Requires wagmi >= 3.6 \u002F @wagmi\u002Fconnectors >= 8 (the connect-evm-backed\n\u002F\u002F connector), with @metamask\u002Fconnect-evm installed at wagmi's declared peer\n\u002F\u002F range (currently ^1.3.0). On older wagmi, copy the reference connector\n\u002F\u002F from connect-monorepo\u002Fintegrations\u002Fwagmi\u002Fmetamask-connector.ts.\nimport { metaMask } from 'wagmi\u002Fconnectors';\n```\n\n---\n\n### Step 3: Update initialization\n\n**Old:**\n\n```typescript\nconst sdk = new MetaMaskSDK({\n  dappMetadata: {\n    name: 'My DApp',\n    url: window.location.href,\n  },\n  infuraAPIKey: 'YOUR_INFURA_KEY',\n  readonlyRPCMap: {\n    '0x89': 'https:\u002F\u002Fpolygon-rpc.com',\n  },\n  headless: true,\n  extensionOnly: false,\n  openDeeplink: (link) => window.open(link, '_blank'),\n});\nawait sdk.init();\n```\n\n**New:**\n\n```typescript\nconst client = await createEVMClient({\n  dapp: {\n    name: 'My DApp',\n    url: window.location.href,\n  },\n  api: {\n    supportedNetworks: {\n      ...getInfuraRpcUrls({ infuraApiKey: 'YOUR_INFURA_KEY', chainIds: ['0x1', '0x89'] }),\n      '0xa4b1': 'https:\u002F\u002Farb1.arbitrum.io\u002Frpc',\n    },\n  },\n  ui: {\n    headless: true,\n    preferExtension: false,\n  },\n  \u002F\u002F `mobile` block only needed for React Native\n  \u002F\u002F mobile: {\n  \u002F\u002F   preferredOpenLink: (link: string) => Linking.openURL(link),\n  \u002F\u002F },\n});\n```\n\n**Key option mappings:**\n\n| Old (`MetaMaskSDK`) | New (`createEVMClient`) | Notes |\n|---|---|---|\n| `dappMetadata` | `dapp` | Same shape: `{ name, url, iconUrl }` |\n| `dappMetadata.name` | `dapp.name` | Required |\n| `dappMetadata.url` | `dapp.url` | Optional |\n| `infuraAPIKey` | `api.supportedNetworks` via `getInfuraRpcUrls({ infuraApiKey: key })` | Helper generates URLs for all Infura-supported chains; optional `chainIds` to limit to specific chains |\n| `readonlyRPCMap` | `api.supportedNetworks` | Merge into the same object |\n| `headless` | `ui.headless` | Same behavior |\n| `extensionOnly` | `ui.preferExtension` | `true` prefers extension (default); not the same as \"only\" |\n| `openDeeplink` | `mobile.preferredOpenLink` | Same signature: `(deeplink: string) => void` |\n| `useDeeplink` | `mobile.useDeeplink` | Same behavior |\n| `timer` | Removed | No longer configurable |\n| `enableAnalytics` | `analytics: { enabled: boolean }` | Pass `analytics: { enabled: false }` at client creation. (A runtime `analytics.disable()` exists on the `@metamask\u002Fanalytics` singleton — `import { analytics } from '@metamask\u002Fanalytics'` — it is **not** a method on the connect client.) |\n| `communicationServerUrl` | Removed | Managed internally |\n| `storage` | Removed | Managed internally |\n\n---\n\n### Step 4: Update connection flow\n\n**Old:**\n\n```typescript\nconst accounts = await sdk.connect();\nconst chainId = await sdk.getProvider().request({ method: 'eth_chainId' });\n```\n\n**New:**\n\n```typescript\nconst { accounts, chainId } = await client.connect({\n  chainIds: ['0x1'],\n});\n```\n\nKey differences:\n- `connect()` now returns an **object** with both `accounts` and `chainId` — no separate call needed\n- `chainIds` parameter specifies which chains to request (hex strings)\n- Use `connectAndSign` for connect + personal_sign in one step:\n\n```typescript\nconst { accounts, chainId, signature } = await client.connectAndSign({\n  chainIds: ['0x1'],\n  message: 'Sign in to My DApp',\n});\n```\n\n- Use `connectWith` for connect + arbitrary RPC method:\n\n```typescript\nconst { accounts, chainId, result } = await client.connectWith({\n  chainIds: ['0x1'],\n  method: 'eth_sendTransaction',\n  params: [{ from: '0x...', to: '0x...', value: '0x0' }],\n});\n```\n\n---\n\n### Step 5: Update provider access\n\n**Old:**\n\n```typescript\nconst provider = sdk.getProvider(); \u002F\u002F SDKProvider\nawait provider.request({ method: 'eth_chainId' });\n```\n\n**New:**\n\n```typescript\nconst provider = client.getProvider(); \u002F\u002F EIP1193Provider\nawait provider.request({ method: 'eth_chainId' });\n```\n\nKey differences:\n- The provider is now a standard **EIP-1193 provider**, not the custom `SDKProvider`\n- The provider is available **immediately** after `createEVMClient` resolves — even before `connect()`\n- Before connection, RPC calls that require an account will fail; read-only calls (like `eth_blockNumber`) work against `supportedNetworks` RPCs\n- No more `sdk.getProvider()` returning `undefined` — the provider always exists\n\n---\n\n### Step 6: Update event handling\n\n**Old:**\n\n```typescript\nconst provider = sdk.getProvider();\nprovider.on('chainChanged', (chainId) => { \u002F* ... *\u002F });\nprovider.on('accountsChanged', (accounts) => { \u002F* ... *\u002F });\nprovider.on('disconnect', () => { \u002F* ... *\u002F });\n```\n\n**New (same EIP-1193 events still work):**\n\n```typescript\nconst provider = client.getProvider();\nprovider.on('chainChanged', (chainId) => { \u002F* ... *\u002F });\nprovider.on('accountsChanged', (accounts) => { \u002F* ... *\u002F });\nprovider.on('disconnect', () => { \u002F* ... *\u002F });\n```\n\n**New (additional SDK-level events via constructor):**\n\n```typescript\nconst client = await createEVMClient({\n  dapp: { name: 'My DApp' },\n  eventHandlers: {\n    displayUri: (uri) => { \u002F* render QR code *\u002F },\n  },\n});\n```\n\nOr subscribe on the EIP-1193 provider after creation:\n\n```typescript\nconst provider = client.getProvider();\nprovider.on('display_uri', (uri) => { \u002F* ... *\u002F });\n```\n\nFor `wallet_sessionChanged`, use the multichain client directly:\n\n```typescript\nconst client = await createMultichainClient({ \u002F* ... *\u002F });\nclient.on('wallet_sessionChanged', (session) => { \u002F* ... *\u002F });\n```\n\n---\n\n### Step 7: New capabilities to adopt\n\nThese features are **new** in the MetaMask Connect packages and have no old-SDK equivalent:\n\n| Capability | Description |\n|---|---|\n| **Multichain client** | `createMultichainClient` supports CAIP-25 scopes across EVM and non-EVM chains |\n| **`invokeMethod`** | Call RPC methods on specific CAIP scopes: `client.invokeMethod({ scope: 'eip155:1', request: { method, params } })` |\n| **Solana support** | `createSolanaClient` from `@metamask\u002Fconnect-solana` with wallet-standard adapter |\n| **`connectAndSign`** | Connect and sign a message in a single user approval |\n| **`connectWith`** | Connect and execute any RPC method in a single user approval |\n| **Partial disconnect** | `disconnect(scopes)` is available on the multichain client to revoke specific CAIP scopes while keeping others active |\n| **Singleton client** | Subsequent `createMultichainClient` calls merge into the existing instance |\n| **`wallet_sessionChanged`** | Multichain client event fired when session state changes or is restored |\n\n---\n\n### Step 8: Wagmi migration\n\n**Old:**\n\n```typescript\n\u002F\u002F Old @metamask\u002Fsdk constructor takes flat options (no `options` wrapper):\nimport { MetaMaskSDK } from '@metamask\u002Fsdk';\n\nconst sdk = new MetaMaskSDK({\n  dappMetadata: { name: 'My DApp', url: window.location.href },\n});\n\u002F\u002F (or the legacy wagmi `metaMask()` connector that wrapped @metamask\u002Fsdk)\n```\n\n**New:**\n\n```typescript\nimport { createConfig, http } from 'wagmi';\nimport { mainnet, sepolia } from 'wagmi\u002Fchains';\nimport { metaMask } from 'wagmi\u002Fconnectors';\n\nexport const wagmiConfig = createConfig({\n  chains: [mainnet, sepolia],\n  connectors: [\n    metaMask({\n      dapp: {\n        name: 'My DApp',\n        url: typeof window !== 'undefined' ? window.location.href : undefined,\n      },\n    }),\n  ],\n  transports: {\n    [mainnet.id]: http(),\n    [sepolia.id]: http(),\n  },\n});\n```\n\nKey differences:\n- The connect-evm-backed `metaMask()` connector ships in `wagmi\u002Fconnectors` from wagmi 3.6 \u002F `@wagmi\u002Fconnectors` 8 — there is no `@metamask\u002Fconnect-evm\u002Fwagmi` subpath; install `@metamask\u002Fconnect-evm` at wagmi's declared peer range\n- Use `dapp` not `dappMetadata`\n- Connector ID is `'metaMaskSDK'` — find it with `connectors.find(c => c.id === 'metaMaskSDK')`\n- Most wagmi hooks work unchanged, but note the wagmi v3 renames: `useConnect().connectors` → `useConnectors()`, `connectAsync` → `mutateAsync`, `useAccount` → `useConnection` (see the migrate-wagmi-metamask-connector skill)\n\n---\n\n## Quick Reference: Full Option Mapping\n\n| Old (`@metamask\u002Fsdk`) | New (`@metamask\u002Fconnect-*`) | Status |\n|---|---|---|\n| `new MetaMaskSDK(opts)` | `await createEVMClient(opts)` | Renamed, async |\n| `sdk.init()` | Not needed | Init happens in `createEVMClient` |\n| `sdk.connect()` | `client.connect({ chainIds })` | Returns `{ accounts, chainId }` |\n| `sdk.getProvider()` | `client.getProvider()` | Returns EIP-1193 provider |\n| `sdk.disconnect()` | `client.disconnect()` | Same for EVM; partial disconnect is multichain-only |\n| `sdk.terminate()` | `client.disconnect()` | `terminate` is removed — the EVM client's `disconnect()` revokes the EVM (`eip155:*`) scopes; for full multi-ecosystem teardown call the multichain client's `disconnect()` with no arguments |\n| `dappMetadata` | `dapp` | Renamed |\n| `infuraAPIKey` | `getInfuraRpcUrls({ infuraApiKey: key })` in `api.supportedNetworks` | Helper function; optional `chainIds` filters to specific chains |\n| `readonlyRPCMap` | `api.supportedNetworks` | Merged with Infura URLs |\n| `headless` | `ui.headless` | Moved to `ui` namespace |\n| `extensionOnly` | `ui.preferExtension` | Renamed, slightly different semantics |\n| `openDeeplink` | `mobile.preferredOpenLink` | Moved to `mobile` namespace |\n| `useDeeplink` | `mobile.useDeeplink` | Moved to `mobile` namespace |\n| `MetaMaskProvider` (React) | No direct equivalent | Use wagmi `WagmiProvider` or call `createEVMClient` directly |\n| `useSDK()` hook | No direct equivalent | Use wagmi hooks or manage client state manually |\n| `SDKProvider` | `EIP1193Provider` | Standard provider interface |\n| `timer` | Removed | — |\n| `enableAnalytics` | `analytics: { enabled: boolean }` | — |\n| `communicationServerUrl` | Removed | — |\n| `storage` | Removed | — |\n\n## Important Notes\n\n- **`createEVMClient` is async** — unlike `new MetaMaskSDK()`, it returns a promise. Ensure you `await` it or handle the promise before accessing the client.\n- **The multichain core is the singleton** — `createMultichainClient` merges into a shared instance, while EVM\u002FSolana create wrappers on top of that shared core. Do not recreate clients on every render.\n- **`connect()` returns an object now** — destructure `{ accounts, chainId }` instead of treating the return value as an accounts array.\n- **Chain IDs must be hex strings** — use `'0x1'` not `1` or `'1'` in `chainIds` and `supportedNetworks` keys.\n- **No more `sdk.init()`** — initialization is part of `createEVMClient`. There is no separate init step.\n- **Provider exists before connection** — `client.getProvider()` never returns `undefined`. But node-routed reads (`eth_blockNumber`, `eth_getBalance`, …) require a **selected chain** and throw `No chain ID selected` until one is set (after `connect()` or a restored session); only the intercepted `eth_chainId` \u002F `eth_accounts` (cached) are safe before connecting.\n- **`@metamask\u002Fsdk-react` has no 1:1 replacement** — if you were using `MetaMaskProvider` and `useSDK()`, migrate to either wagmi hooks or manage the client instance in your own React context.\n- **`sdk.terminate()` is replaced by `disconnect()`** — the EVM client's `disconnect()` revokes EVM (`eip155:*`) scopes only; if the session also has Solana scopes, terminate everything via the multichain client's `disconnect()` with no arguments. There is no separate `terminate` method.\n- **Test the migration on both extension and mobile** — the transport layer has changed, and behavior differences may surface in one environment but not the other.\n",{"data":36,"body":37},{"name":4,"description":6},{"type":38,"children":39},"root",[40,49,56,62,120,126,133,138,257,261,267,279,314,317,323,331,440,448,505,513,560,568,616,624,704,707,713,720,1126,1134,1567,1575,2016,2019,2025,2032,2168,2175,2292,2297,2357,2508,2523,2777,2780,2786,2793,2902,2909,3015,3019,3106,3109,3115,3122,3376,3384,3631,3639,3798,3803,3917,3930,4057,4060,4066,4078,4279,4282,4288,4295,4484,4491,5014,5018,5148,5151,5157,5753,5759,6056],{"type":41,"tag":42,"props":43,"children":45},"element","h1",{"id":44},"migrate-from-metamasksdk-to-metamaskconnect",[46],{"type":47,"value":48},"text","Migrate from @metamask\u002Fsdk to @metamask\u002Fconnect",{"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,97,102,115],{"type":41,"tag":67,"props":68,"children":69},"li",{},[70,72,79,81,87,89,95],{"type":47,"value":71},"Migrating an existing dApp from ",{"type":41,"tag":73,"props":74,"children":76},"code",{"className":75},[],[77],{"type":47,"value":78},"@metamask\u002Fsdk",{"type":47,"value":80}," or ",{"type":41,"tag":73,"props":82,"children":84},{"className":83},[],[85],{"type":47,"value":86},"@metamask\u002Fsdk-react",{"type":47,"value":88}," to the new ",{"type":41,"tag":73,"props":90,"children":92},{"className":91},[],[93],{"type":47,"value":94},"@metamask\u002Fconnect-*",{"type":47,"value":96}," packages",{"type":41,"tag":67,"props":98,"children":99},{},[100],{"type":47,"value":101},"Updating initialization code, provider access, or event handling for the new API",{"type":41,"tag":67,"props":103,"children":104},{},[105,107,113],{"type":47,"value":106},"Converting a wagmi integration to use the new ",{"type":41,"tag":73,"props":108,"children":110},{"className":109},[],[111],{"type":47,"value":112},"metaMask()",{"type":47,"value":114}," connector",{"type":41,"tag":67,"props":116,"children":117},{},[118],{"type":47,"value":119},"Adding multichain or Solana support during the migration",{"type":41,"tag":50,"props":121,"children":123},{"id":122},"workflow",[124],{"type":47,"value":125},"Workflow",{"type":41,"tag":127,"props":128,"children":130},"h3",{"id":129},"step-1-replace-packages",[131],{"type":47,"value":132},"Step 1: Replace packages",{"type":41,"tag":57,"props":134,"children":135},{},[136],{"type":47,"value":137},"Remove the old packages and install the new ones:",{"type":41,"tag":139,"props":140,"children":145},"pre",{"className":141,"code":142,"language":143,"meta":144,"style":144},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Remove old\nnpm uninstall @metamask\u002Fsdk @metamask\u002Fsdk-react\n\n# Install new — pick the packages you need\nnpm install @metamask\u002Fconnect-evm\nnpm install @metamask\u002Fconnect-multichain\nnpm install @metamask\u002Fconnect-solana\n","bash","",[146],{"type":41,"tag":73,"props":147,"children":148},{"__ignoreMap":144},[149,161,186,196,205,223,240],{"type":41,"tag":150,"props":151,"children":154},"span",{"class":152,"line":153},"line",1,[155],{"type":41,"tag":150,"props":156,"children":158},{"style":157},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[159],{"type":47,"value":160},"# Remove old\n",{"type":41,"tag":150,"props":162,"children":163},{"class":152,"line":25},[164,170,176,181],{"type":41,"tag":150,"props":165,"children":167},{"style":166},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[168],{"type":47,"value":169},"npm",{"type":41,"tag":150,"props":171,"children":173},{"style":172},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[174],{"type":47,"value":175}," uninstall",{"type":41,"tag":150,"props":177,"children":178},{"style":172},[179],{"type":47,"value":180}," @metamask\u002Fsdk",{"type":41,"tag":150,"props":182,"children":183},{"style":172},[184],{"type":47,"value":185}," @metamask\u002Fsdk-react\n",{"type":41,"tag":150,"props":187,"children":189},{"class":152,"line":188},3,[190],{"type":41,"tag":150,"props":191,"children":193},{"emptyLinePlaceholder":192},true,[194],{"type":47,"value":195},"\n",{"type":41,"tag":150,"props":197,"children":199},{"class":152,"line":198},4,[200],{"type":41,"tag":150,"props":201,"children":202},{"style":157},[203],{"type":47,"value":204},"# Install new — pick the packages you need\n",{"type":41,"tag":150,"props":206,"children":208},{"class":152,"line":207},5,[209,213,218],{"type":41,"tag":150,"props":210,"children":211},{"style":166},[212],{"type":47,"value":169},{"type":41,"tag":150,"props":214,"children":215},{"style":172},[216],{"type":47,"value":217}," install",{"type":41,"tag":150,"props":219,"children":220},{"style":172},[221],{"type":47,"value":222}," @metamask\u002Fconnect-evm\n",{"type":41,"tag":150,"props":224,"children":226},{"class":152,"line":225},6,[227,231,235],{"type":41,"tag":150,"props":228,"children":229},{"style":166},[230],{"type":47,"value":169},{"type":41,"tag":150,"props":232,"children":233},{"style":172},[234],{"type":47,"value":217},{"type":41,"tag":150,"props":236,"children":237},{"style":172},[238],{"type":47,"value":239}," @metamask\u002Fconnect-multichain\n",{"type":41,"tag":150,"props":241,"children":243},{"class":152,"line":242},7,[244,248,252],{"type":41,"tag":150,"props":245,"children":246},{"style":166},[247],{"type":47,"value":169},{"type":41,"tag":150,"props":249,"children":250},{"style":172},[251],{"type":47,"value":217},{"type":41,"tag":150,"props":253,"children":254},{"style":172},[255],{"type":47,"value":256}," @metamask\u002Fconnect-solana\n",{"type":41,"tag":258,"props":259,"children":260},"hr",{},[],{"type":41,"tag":127,"props":262,"children":264},{"id":263},"step-1b-react-native-polyfills-if-applicable",[265],{"type":47,"value":266},"Step 1b: React Native polyfills (if applicable)",{"type":41,"tag":57,"props":268,"children":269},{},[270,272,277],{"type":47,"value":271},"No polyfill configuration is needed for web environments (Vite, Webpack, Next.js, etc.) — ",{"type":41,"tag":73,"props":273,"children":275},{"className":274},[],[276],{"type":47,"value":94},{"type":47,"value":278}," packages no longer depend on Node.js built-ins in the browser.",{"type":41,"tag":57,"props":280,"children":281},{},[282,288,290,296,298,304,306,312],{"type":41,"tag":283,"props":284,"children":285},"strong",{},[286],{"type":47,"value":287},"React Native only:",{"type":47,"value":289}," Polyfills must be imported in a specific order. See the ",{"type":41,"tag":73,"props":291,"children":293},{"className":292},[],[294],{"type":47,"value":295},"react-native-polyfills",{"type":47,"value":297}," rule for required import order, window\u002FEvent\u002FCustomEvent shims, and metro configuration. Note: ",{"type":41,"tag":73,"props":299,"children":301},{"className":300},[],[302],{"type":47,"value":303},"Buffer",{"type":47,"value":305}," is self-polyfilled by ",{"type":41,"tag":73,"props":307,"children":309},{"className":308},[],[310],{"type":47,"value":311},"@metamask\u002Fconnect-multichain",{"type":47,"value":313}," but should still be set early as a safety net for peer deps.",{"type":41,"tag":258,"props":315,"children":316},{},[],{"type":41,"tag":127,"props":318,"children":320},{"id":319},"step-2-update-imports",[321],{"type":47,"value":322},"Step 2: Update imports",{"type":41,"tag":57,"props":324,"children":325},{},[326],{"type":41,"tag":283,"props":327,"children":328},{},[329],{"type":47,"value":330},"Old:",{"type":41,"tag":139,"props":332,"children":336},{"className":333,"code":334,"language":335,"meta":144,"style":144},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { MetaMaskSDK } from '@metamask\u002Fsdk';\nimport { MetaMaskProvider, useSDK } from '@metamask\u002Fsdk-react';\n","typescript",[337],{"type":41,"tag":73,"props":338,"children":339},{"__ignoreMap":144},[340,390],{"type":41,"tag":150,"props":341,"children":342},{"class":152,"line":153},[343,349,355,361,366,371,376,380,385],{"type":41,"tag":150,"props":344,"children":346},{"style":345},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[347],{"type":47,"value":348},"import",{"type":41,"tag":150,"props":350,"children":352},{"style":351},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[353],{"type":47,"value":354}," {",{"type":41,"tag":150,"props":356,"children":358},{"style":357},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[359],{"type":47,"value":360}," MetaMaskSDK",{"type":41,"tag":150,"props":362,"children":363},{"style":351},[364],{"type":47,"value":365}," }",{"type":41,"tag":150,"props":367,"children":368},{"style":345},[369],{"type":47,"value":370}," from",{"type":41,"tag":150,"props":372,"children":373},{"style":351},[374],{"type":47,"value":375}," '",{"type":41,"tag":150,"props":377,"children":378},{"style":172},[379],{"type":47,"value":78},{"type":41,"tag":150,"props":381,"children":382},{"style":351},[383],{"type":47,"value":384},"'",{"type":41,"tag":150,"props":386,"children":387},{"style":351},[388],{"type":47,"value":389},";\n",{"type":41,"tag":150,"props":391,"children":392},{"class":152,"line":25},[393,397,401,406,411,416,420,424,428,432,436],{"type":41,"tag":150,"props":394,"children":395},{"style":345},[396],{"type":47,"value":348},{"type":41,"tag":150,"props":398,"children":399},{"style":351},[400],{"type":47,"value":354},{"type":41,"tag":150,"props":402,"children":403},{"style":357},[404],{"type":47,"value":405}," MetaMaskProvider",{"type":41,"tag":150,"props":407,"children":408},{"style":351},[409],{"type":47,"value":410},",",{"type":41,"tag":150,"props":412,"children":413},{"style":357},[414],{"type":47,"value":415}," useSDK",{"type":41,"tag":150,"props":417,"children":418},{"style":351},[419],{"type":47,"value":365},{"type":41,"tag":150,"props":421,"children":422},{"style":345},[423],{"type":47,"value":370},{"type":41,"tag":150,"props":425,"children":426},{"style":351},[427],{"type":47,"value":375},{"type":41,"tag":150,"props":429,"children":430},{"style":172},[431],{"type":47,"value":86},{"type":41,"tag":150,"props":433,"children":434},{"style":351},[435],{"type":47,"value":384},{"type":41,"tag":150,"props":437,"children":438},{"style":351},[439],{"type":47,"value":389},{"type":41,"tag":57,"props":441,"children":442},{},[443],{"type":41,"tag":283,"props":444,"children":445},{},[446],{"type":47,"value":447},"New (EVM):",{"type":41,"tag":139,"props":449,"children":451},{"className":333,"code":450,"language":335,"meta":144,"style":144},"import { createEVMClient, getInfuraRpcUrls } from '@metamask\u002Fconnect-evm';\n",[452],{"type":41,"tag":73,"props":453,"children":454},{"__ignoreMap":144},[455],{"type":41,"tag":150,"props":456,"children":457},{"class":152,"line":153},[458,462,466,471,475,480,484,488,492,497,501],{"type":41,"tag":150,"props":459,"children":460},{"style":345},[461],{"type":47,"value":348},{"type":41,"tag":150,"props":463,"children":464},{"style":351},[465],{"type":47,"value":354},{"type":41,"tag":150,"props":467,"children":468},{"style":357},[469],{"type":47,"value":470}," createEVMClient",{"type":41,"tag":150,"props":472,"children":473},{"style":351},[474],{"type":47,"value":410},{"type":41,"tag":150,"props":476,"children":477},{"style":357},[478],{"type":47,"value":479}," getInfuraRpcUrls",{"type":41,"tag":150,"props":481,"children":482},{"style":351},[483],{"type":47,"value":365},{"type":41,"tag":150,"props":485,"children":486},{"style":345},[487],{"type":47,"value":370},{"type":41,"tag":150,"props":489,"children":490},{"style":351},[491],{"type":47,"value":375},{"type":41,"tag":150,"props":493,"children":494},{"style":172},[495],{"type":47,"value":496},"@metamask\u002Fconnect-evm",{"type":41,"tag":150,"props":498,"children":499},{"style":351},[500],{"type":47,"value":384},{"type":41,"tag":150,"props":502,"children":503},{"style":351},[504],{"type":47,"value":389},{"type":41,"tag":57,"props":506,"children":507},{},[508],{"type":41,"tag":283,"props":509,"children":510},{},[511],{"type":47,"value":512},"New (Multichain):",{"type":41,"tag":139,"props":514,"children":516},{"className":333,"code":515,"language":335,"meta":144,"style":144},"import { createMultichainClient } from '@metamask\u002Fconnect-multichain';\n",[517],{"type":41,"tag":73,"props":518,"children":519},{"__ignoreMap":144},[520],{"type":41,"tag":150,"props":521,"children":522},{"class":152,"line":153},[523,527,531,536,540,544,548,552,556],{"type":41,"tag":150,"props":524,"children":525},{"style":345},[526],{"type":47,"value":348},{"type":41,"tag":150,"props":528,"children":529},{"style":351},[530],{"type":47,"value":354},{"type":41,"tag":150,"props":532,"children":533},{"style":357},[534],{"type":47,"value":535}," createMultichainClient",{"type":41,"tag":150,"props":537,"children":538},{"style":351},[539],{"type":47,"value":365},{"type":41,"tag":150,"props":541,"children":542},{"style":345},[543],{"type":47,"value":370},{"type":41,"tag":150,"props":545,"children":546},{"style":351},[547],{"type":47,"value":375},{"type":41,"tag":150,"props":549,"children":550},{"style":172},[551],{"type":47,"value":311},{"type":41,"tag":150,"props":553,"children":554},{"style":351},[555],{"type":47,"value":384},{"type":41,"tag":150,"props":557,"children":558},{"style":351},[559],{"type":47,"value":389},{"type":41,"tag":57,"props":561,"children":562},{},[563],{"type":41,"tag":283,"props":564,"children":565},{},[566],{"type":47,"value":567},"New (Solana):",{"type":41,"tag":139,"props":569,"children":571},{"className":333,"code":570,"language":335,"meta":144,"style":144},"import { createSolanaClient } from '@metamask\u002Fconnect-solana';\n",[572],{"type":41,"tag":73,"props":573,"children":574},{"__ignoreMap":144},[575],{"type":41,"tag":150,"props":576,"children":577},{"class":152,"line":153},[578,582,586,591,595,599,603,608,612],{"type":41,"tag":150,"props":579,"children":580},{"style":345},[581],{"type":47,"value":348},{"type":41,"tag":150,"props":583,"children":584},{"style":351},[585],{"type":47,"value":354},{"type":41,"tag":150,"props":587,"children":588},{"style":357},[589],{"type":47,"value":590}," createSolanaClient",{"type":41,"tag":150,"props":592,"children":593},{"style":351},[594],{"type":47,"value":365},{"type":41,"tag":150,"props":596,"children":597},{"style":345},[598],{"type":47,"value":370},{"type":41,"tag":150,"props":600,"children":601},{"style":351},[602],{"type":47,"value":375},{"type":41,"tag":150,"props":604,"children":605},{"style":172},[606],{"type":47,"value":607},"@metamask\u002Fconnect-solana",{"type":41,"tag":150,"props":609,"children":610},{"style":351},[611],{"type":47,"value":384},{"type":41,"tag":150,"props":613,"children":614},{"style":351},[615],{"type":47,"value":389},{"type":41,"tag":57,"props":617,"children":618},{},[619],{"type":41,"tag":283,"props":620,"children":621},{},[622],{"type":47,"value":623},"New (wagmi connector):",{"type":41,"tag":139,"props":625,"children":627},{"className":333,"code":626,"language":335,"meta":144,"style":144},"\u002F\u002F Requires wagmi >= 3.6 \u002F @wagmi\u002Fconnectors >= 8 (the connect-evm-backed\n\u002F\u002F connector), with @metamask\u002Fconnect-evm installed at wagmi's declared peer\n\u002F\u002F range (currently ^1.3.0). On older wagmi, copy the reference connector\n\u002F\u002F from connect-monorepo\u002Fintegrations\u002Fwagmi\u002Fmetamask-connector.ts.\nimport { metaMask } from 'wagmi\u002Fconnectors';\n",[628],{"type":41,"tag":73,"props":629,"children":630},{"__ignoreMap":144},[631,639,647,655,663],{"type":41,"tag":150,"props":632,"children":633},{"class":152,"line":153},[634],{"type":41,"tag":150,"props":635,"children":636},{"style":157},[637],{"type":47,"value":638},"\u002F\u002F Requires wagmi >= 3.6 \u002F @wagmi\u002Fconnectors >= 8 (the connect-evm-backed\n",{"type":41,"tag":150,"props":640,"children":641},{"class":152,"line":25},[642],{"type":41,"tag":150,"props":643,"children":644},{"style":157},[645],{"type":47,"value":646},"\u002F\u002F connector), with @metamask\u002Fconnect-evm installed at wagmi's declared peer\n",{"type":41,"tag":150,"props":648,"children":649},{"class":152,"line":188},[650],{"type":41,"tag":150,"props":651,"children":652},{"style":157},[653],{"type":47,"value":654},"\u002F\u002F range (currently ^1.3.0). On older wagmi, copy the reference connector\n",{"type":41,"tag":150,"props":656,"children":657},{"class":152,"line":198},[658],{"type":41,"tag":150,"props":659,"children":660},{"style":157},[661],{"type":47,"value":662},"\u002F\u002F from connect-monorepo\u002Fintegrations\u002Fwagmi\u002Fmetamask-connector.ts.\n",{"type":41,"tag":150,"props":664,"children":665},{"class":152,"line":207},[666,670,674,679,683,687,691,696,700],{"type":41,"tag":150,"props":667,"children":668},{"style":345},[669],{"type":47,"value":348},{"type":41,"tag":150,"props":671,"children":672},{"style":351},[673],{"type":47,"value":354},{"type":41,"tag":150,"props":675,"children":676},{"style":357},[677],{"type":47,"value":678}," metaMask",{"type":41,"tag":150,"props":680,"children":681},{"style":351},[682],{"type":47,"value":365},{"type":41,"tag":150,"props":684,"children":685},{"style":345},[686],{"type":47,"value":370},{"type":41,"tag":150,"props":688,"children":689},{"style":351},[690],{"type":47,"value":375},{"type":41,"tag":150,"props":692,"children":693},{"style":172},[694],{"type":47,"value":695},"wagmi\u002Fconnectors",{"type":41,"tag":150,"props":697,"children":698},{"style":351},[699],{"type":47,"value":384},{"type":41,"tag":150,"props":701,"children":702},{"style":351},[703],{"type":47,"value":389},{"type":41,"tag":258,"props":705,"children":706},{},[],{"type":41,"tag":127,"props":708,"children":710},{"id":709},"step-3-update-initialization",[711],{"type":47,"value":712},"Step 3: Update initialization",{"type":41,"tag":57,"props":714,"children":715},{},[716],{"type":41,"tag":283,"props":717,"children":718},{},[719],{"type":47,"value":330},{"type":41,"tag":139,"props":721,"children":723},{"className":333,"code":722,"language":335,"meta":144,"style":144},"const sdk = new MetaMaskSDK({\n  dappMetadata: {\n    name: 'My DApp',\n    url: window.location.href,\n  },\n  infuraAPIKey: 'YOUR_INFURA_KEY',\n  readonlyRPCMap: {\n    '0x89': 'https:\u002F\u002Fpolygon-rpc.com',\n  },\n  headless: true,\n  extensionOnly: false,\n  openDeeplink: (link) => window.open(link, '_blank'),\n});\nawait sdk.init();\n",[724],{"type":41,"tag":73,"props":725,"children":726},{"__ignoreMap":144},[727,766,785,815,855,863,892,908,947,955,978,1000,1077,1094],{"type":41,"tag":150,"props":728,"children":729},{"class":152,"line":153},[730,736,741,746,751,756,761],{"type":41,"tag":150,"props":731,"children":733},{"style":732},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[734],{"type":47,"value":735},"const",{"type":41,"tag":150,"props":737,"children":738},{"style":357},[739],{"type":47,"value":740}," sdk ",{"type":41,"tag":150,"props":742,"children":743},{"style":351},[744],{"type":47,"value":745},"=",{"type":41,"tag":150,"props":747,"children":748},{"style":351},[749],{"type":47,"value":750}," new",{"type":41,"tag":150,"props":752,"children":754},{"style":753},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[755],{"type":47,"value":360},{"type":41,"tag":150,"props":757,"children":758},{"style":357},[759],{"type":47,"value":760},"(",{"type":41,"tag":150,"props":762,"children":763},{"style":351},[764],{"type":47,"value":765},"{\n",{"type":41,"tag":150,"props":767,"children":768},{"class":152,"line":25},[769,775,780],{"type":41,"tag":150,"props":770,"children":772},{"style":771},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[773],{"type":47,"value":774},"  dappMetadata",{"type":41,"tag":150,"props":776,"children":777},{"style":351},[778],{"type":47,"value":779},":",{"type":41,"tag":150,"props":781,"children":782},{"style":351},[783],{"type":47,"value":784}," {\n",{"type":41,"tag":150,"props":786,"children":787},{"class":152,"line":188},[788,793,797,801,806,810],{"type":41,"tag":150,"props":789,"children":790},{"style":771},[791],{"type":47,"value":792},"    name",{"type":41,"tag":150,"props":794,"children":795},{"style":351},[796],{"type":47,"value":779},{"type":41,"tag":150,"props":798,"children":799},{"style":351},[800],{"type":47,"value":375},{"type":41,"tag":150,"props":802,"children":803},{"style":172},[804],{"type":47,"value":805},"My DApp",{"type":41,"tag":150,"props":807,"children":808},{"style":351},[809],{"type":47,"value":384},{"type":41,"tag":150,"props":811,"children":812},{"style":351},[813],{"type":47,"value":814},",\n",{"type":41,"tag":150,"props":816,"children":817},{"class":152,"line":198},[818,823,827,832,837,842,846,851],{"type":41,"tag":150,"props":819,"children":820},{"style":771},[821],{"type":47,"value":822},"    url",{"type":41,"tag":150,"props":824,"children":825},{"style":351},[826],{"type":47,"value":779},{"type":41,"tag":150,"props":828,"children":829},{"style":357},[830],{"type":47,"value":831}," window",{"type":41,"tag":150,"props":833,"children":834},{"style":351},[835],{"type":47,"value":836},".",{"type":41,"tag":150,"props":838,"children":839},{"style":357},[840],{"type":47,"value":841},"location",{"type":41,"tag":150,"props":843,"children":844},{"style":351},[845],{"type":47,"value":836},{"type":41,"tag":150,"props":847,"children":848},{"style":357},[849],{"type":47,"value":850},"href",{"type":41,"tag":150,"props":852,"children":853},{"style":351},[854],{"type":47,"value":814},{"type":41,"tag":150,"props":856,"children":857},{"class":152,"line":207},[858],{"type":41,"tag":150,"props":859,"children":860},{"style":351},[861],{"type":47,"value":862},"  },\n",{"type":41,"tag":150,"props":864,"children":865},{"class":152,"line":225},[866,871,875,879,884,888],{"type":41,"tag":150,"props":867,"children":868},{"style":771},[869],{"type":47,"value":870},"  infuraAPIKey",{"type":41,"tag":150,"props":872,"children":873},{"style":351},[874],{"type":47,"value":779},{"type":41,"tag":150,"props":876,"children":877},{"style":351},[878],{"type":47,"value":375},{"type":41,"tag":150,"props":880,"children":881},{"style":172},[882],{"type":47,"value":883},"YOUR_INFURA_KEY",{"type":41,"tag":150,"props":885,"children":886},{"style":351},[887],{"type":47,"value":384},{"type":41,"tag":150,"props":889,"children":890},{"style":351},[891],{"type":47,"value":814},{"type":41,"tag":150,"props":893,"children":894},{"class":152,"line":242},[895,900,904],{"type":41,"tag":150,"props":896,"children":897},{"style":771},[898],{"type":47,"value":899},"  readonlyRPCMap",{"type":41,"tag":150,"props":901,"children":902},{"style":351},[903],{"type":47,"value":779},{"type":41,"tag":150,"props":905,"children":906},{"style":351},[907],{"type":47,"value":784},{"type":41,"tag":150,"props":909,"children":911},{"class":152,"line":910},8,[912,917,922,926,930,934,939,943],{"type":41,"tag":150,"props":913,"children":914},{"style":351},[915],{"type":47,"value":916},"    '",{"type":41,"tag":150,"props":918,"children":919},{"style":771},[920],{"type":47,"value":921},"0x89",{"type":41,"tag":150,"props":923,"children":924},{"style":351},[925],{"type":47,"value":384},{"type":41,"tag":150,"props":927,"children":928},{"style":351},[929],{"type":47,"value":779},{"type":41,"tag":150,"props":931,"children":932},{"style":351},[933],{"type":47,"value":375},{"type":41,"tag":150,"props":935,"children":936},{"style":172},[937],{"type":47,"value":938},"https:\u002F\u002Fpolygon-rpc.com",{"type":41,"tag":150,"props":940,"children":941},{"style":351},[942],{"type":47,"value":384},{"type":41,"tag":150,"props":944,"children":945},{"style":351},[946],{"type":47,"value":814},{"type":41,"tag":150,"props":948,"children":950},{"class":152,"line":949},9,[951],{"type":41,"tag":150,"props":952,"children":953},{"style":351},[954],{"type":47,"value":862},{"type":41,"tag":150,"props":956,"children":958},{"class":152,"line":957},10,[959,964,968,974],{"type":41,"tag":150,"props":960,"children":961},{"style":771},[962],{"type":47,"value":963},"  headless",{"type":41,"tag":150,"props":965,"children":966},{"style":351},[967],{"type":47,"value":779},{"type":41,"tag":150,"props":969,"children":971},{"style":970},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[972],{"type":47,"value":973}," true",{"type":41,"tag":150,"props":975,"children":976},{"style":351},[977],{"type":47,"value":814},{"type":41,"tag":150,"props":979,"children":981},{"class":152,"line":980},11,[982,987,991,996],{"type":41,"tag":150,"props":983,"children":984},{"style":771},[985],{"type":47,"value":986},"  extensionOnly",{"type":41,"tag":150,"props":988,"children":989},{"style":351},[990],{"type":47,"value":779},{"type":41,"tag":150,"props":992,"children":993},{"style":970},[994],{"type":47,"value":995}," false",{"type":41,"tag":150,"props":997,"children":998},{"style":351},[999],{"type":47,"value":814},{"type":41,"tag":150,"props":1001,"children":1003},{"class":152,"line":1002},12,[1004,1009,1013,1018,1024,1029,1034,1038,1042,1047,1052,1056,1060,1065,1069,1073],{"type":41,"tag":150,"props":1005,"children":1006},{"style":753},[1007],{"type":47,"value":1008},"  openDeeplink",{"type":41,"tag":150,"props":1010,"children":1011},{"style":351},[1012],{"type":47,"value":779},{"type":41,"tag":150,"props":1014,"children":1015},{"style":351},[1016],{"type":47,"value":1017}," (",{"type":41,"tag":150,"props":1019,"children":1021},{"style":1020},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[1022],{"type":47,"value":1023},"link",{"type":41,"tag":150,"props":1025,"children":1026},{"style":351},[1027],{"type":47,"value":1028},")",{"type":41,"tag":150,"props":1030,"children":1031},{"style":732},[1032],{"type":47,"value":1033}," =>",{"type":41,"tag":150,"props":1035,"children":1036},{"style":357},[1037],{"type":47,"value":831},{"type":41,"tag":150,"props":1039,"children":1040},{"style":351},[1041],{"type":47,"value":836},{"type":41,"tag":150,"props":1043,"children":1044},{"style":753},[1045],{"type":47,"value":1046},"open",{"type":41,"tag":150,"props":1048,"children":1049},{"style":357},[1050],{"type":47,"value":1051},"(link",{"type":41,"tag":150,"props":1053,"children":1054},{"style":351},[1055],{"type":47,"value":410},{"type":41,"tag":150,"props":1057,"children":1058},{"style":351},[1059],{"type":47,"value":375},{"type":41,"tag":150,"props":1061,"children":1062},{"style":172},[1063],{"type":47,"value":1064},"_blank",{"type":41,"tag":150,"props":1066,"children":1067},{"style":351},[1068],{"type":47,"value":384},{"type":41,"tag":150,"props":1070,"children":1071},{"style":357},[1072],{"type":47,"value":1028},{"type":41,"tag":150,"props":1074,"children":1075},{"style":351},[1076],{"type":47,"value":814},{"type":41,"tag":150,"props":1078,"children":1080},{"class":152,"line":1079},13,[1081,1086,1090],{"type":41,"tag":150,"props":1082,"children":1083},{"style":351},[1084],{"type":47,"value":1085},"}",{"type":41,"tag":150,"props":1087,"children":1088},{"style":357},[1089],{"type":47,"value":1028},{"type":41,"tag":150,"props":1091,"children":1092},{"style":351},[1093],{"type":47,"value":389},{"type":41,"tag":150,"props":1095,"children":1097},{"class":152,"line":1096},14,[1098,1103,1108,1112,1117,1122],{"type":41,"tag":150,"props":1099,"children":1100},{"style":345},[1101],{"type":47,"value":1102},"await",{"type":41,"tag":150,"props":1104,"children":1105},{"style":357},[1106],{"type":47,"value":1107}," sdk",{"type":41,"tag":150,"props":1109,"children":1110},{"style":351},[1111],{"type":47,"value":836},{"type":41,"tag":150,"props":1113,"children":1114},{"style":753},[1115],{"type":47,"value":1116},"init",{"type":41,"tag":150,"props":1118,"children":1119},{"style":357},[1120],{"type":47,"value":1121},"()",{"type":41,"tag":150,"props":1123,"children":1124},{"style":351},[1125],{"type":47,"value":389},{"type":41,"tag":57,"props":1127,"children":1128},{},[1129],{"type":41,"tag":283,"props":1130,"children":1131},{},[1132],{"type":47,"value":1133},"New:",{"type":41,"tag":139,"props":1135,"children":1137},{"className":333,"code":1136,"language":335,"meta":144,"style":144},"const client = await createEVMClient({\n  dapp: {\n    name: 'My DApp',\n    url: window.location.href,\n  },\n  api: {\n    supportedNetworks: {\n      ...getInfuraRpcUrls({ infuraApiKey: 'YOUR_INFURA_KEY', chainIds: ['0x1', '0x89'] }),\n      '0xa4b1': 'https:\u002F\u002Farb1.arbitrum.io\u002Frpc',\n    },\n  },\n  ui: {\n    headless: true,\n    preferExtension: false,\n  },\n  \u002F\u002F `mobile` block only needed for React Native\n  \u002F\u002F mobile: {\n  \u002F\u002F   preferredOpenLink: (link: string) => Linking.openURL(link),\n  \u002F\u002F },\n});\n",[1138],{"type":41,"tag":73,"props":1139,"children":1140},{"__ignoreMap":144},[1141,1174,1190,1217,1252,1259,1275,1291,1398,1436,1444,1451,1467,1487,1507,1515,1524,1533,1542,1551],{"type":41,"tag":150,"props":1142,"children":1143},{"class":152,"line":153},[1144,1148,1153,1157,1162,1166,1170],{"type":41,"tag":150,"props":1145,"children":1146},{"style":732},[1147],{"type":47,"value":735},{"type":41,"tag":150,"props":1149,"children":1150},{"style":357},[1151],{"type":47,"value":1152}," client ",{"type":41,"tag":150,"props":1154,"children":1155},{"style":351},[1156],{"type":47,"value":745},{"type":41,"tag":150,"props":1158,"children":1159},{"style":345},[1160],{"type":47,"value":1161}," await",{"type":41,"tag":150,"props":1163,"children":1164},{"style":753},[1165],{"type":47,"value":470},{"type":41,"tag":150,"props":1167,"children":1168},{"style":357},[1169],{"type":47,"value":760},{"type":41,"tag":150,"props":1171,"children":1172},{"style":351},[1173],{"type":47,"value":765},{"type":41,"tag":150,"props":1175,"children":1176},{"class":152,"line":25},[1177,1182,1186],{"type":41,"tag":150,"props":1178,"children":1179},{"style":771},[1180],{"type":47,"value":1181},"  dapp",{"type":41,"tag":150,"props":1183,"children":1184},{"style":351},[1185],{"type":47,"value":779},{"type":41,"tag":150,"props":1187,"children":1188},{"style":351},[1189],{"type":47,"value":784},{"type":41,"tag":150,"props":1191,"children":1192},{"class":152,"line":188},[1193,1197,1201,1205,1209,1213],{"type":41,"tag":150,"props":1194,"children":1195},{"style":771},[1196],{"type":47,"value":792},{"type":41,"tag":150,"props":1198,"children":1199},{"style":351},[1200],{"type":47,"value":779},{"type":41,"tag":150,"props":1202,"children":1203},{"style":351},[1204],{"type":47,"value":375},{"type":41,"tag":150,"props":1206,"children":1207},{"style":172},[1208],{"type":47,"value":805},{"type":41,"tag":150,"props":1210,"children":1211},{"style":351},[1212],{"type":47,"value":384},{"type":41,"tag":150,"props":1214,"children":1215},{"style":351},[1216],{"type":47,"value":814},{"type":41,"tag":150,"props":1218,"children":1219},{"class":152,"line":198},[1220,1224,1228,1232,1236,1240,1244,1248],{"type":41,"tag":150,"props":1221,"children":1222},{"style":771},[1223],{"type":47,"value":822},{"type":41,"tag":150,"props":1225,"children":1226},{"style":351},[1227],{"type":47,"value":779},{"type":41,"tag":150,"props":1229,"children":1230},{"style":357},[1231],{"type":47,"value":831},{"type":41,"tag":150,"props":1233,"children":1234},{"style":351},[1235],{"type":47,"value":836},{"type":41,"tag":150,"props":1237,"children":1238},{"style":357},[1239],{"type":47,"value":841},{"type":41,"tag":150,"props":1241,"children":1242},{"style":351},[1243],{"type":47,"value":836},{"type":41,"tag":150,"props":1245,"children":1246},{"style":357},[1247],{"type":47,"value":850},{"type":41,"tag":150,"props":1249,"children":1250},{"style":351},[1251],{"type":47,"value":814},{"type":41,"tag":150,"props":1253,"children":1254},{"class":152,"line":207},[1255],{"type":41,"tag":150,"props":1256,"children":1257},{"style":351},[1258],{"type":47,"value":862},{"type":41,"tag":150,"props":1260,"children":1261},{"class":152,"line":225},[1262,1267,1271],{"type":41,"tag":150,"props":1263,"children":1264},{"style":771},[1265],{"type":47,"value":1266},"  api",{"type":41,"tag":150,"props":1268,"children":1269},{"style":351},[1270],{"type":47,"value":779},{"type":41,"tag":150,"props":1272,"children":1273},{"style":351},[1274],{"type":47,"value":784},{"type":41,"tag":150,"props":1276,"children":1277},{"class":152,"line":242},[1278,1283,1287],{"type":41,"tag":150,"props":1279,"children":1280},{"style":771},[1281],{"type":47,"value":1282},"    supportedNetworks",{"type":41,"tag":150,"props":1284,"children":1285},{"style":351},[1286],{"type":47,"value":779},{"type":41,"tag":150,"props":1288,"children":1289},{"style":351},[1290],{"type":47,"value":784},{"type":41,"tag":150,"props":1292,"children":1293},{"class":152,"line":910},[1294,1299,1304,1308,1313,1318,1322,1326,1330,1334,1338,1343,1347,1352,1356,1361,1365,1369,1373,1377,1381,1386,1390,1394],{"type":41,"tag":150,"props":1295,"children":1296},{"style":351},[1297],{"type":47,"value":1298},"      ...",{"type":41,"tag":150,"props":1300,"children":1301},{"style":753},[1302],{"type":47,"value":1303},"getInfuraRpcUrls",{"type":41,"tag":150,"props":1305,"children":1306},{"style":357},[1307],{"type":47,"value":760},{"type":41,"tag":150,"props":1309,"children":1310},{"style":351},[1311],{"type":47,"value":1312},"{",{"type":41,"tag":150,"props":1314,"children":1315},{"style":771},[1316],{"type":47,"value":1317}," infuraApiKey",{"type":41,"tag":150,"props":1319,"children":1320},{"style":351},[1321],{"type":47,"value":779},{"type":41,"tag":150,"props":1323,"children":1324},{"style":351},[1325],{"type":47,"value":375},{"type":41,"tag":150,"props":1327,"children":1328},{"style":172},[1329],{"type":47,"value":883},{"type":41,"tag":150,"props":1331,"children":1332},{"style":351},[1333],{"type":47,"value":384},{"type":41,"tag":150,"props":1335,"children":1336},{"style":351},[1337],{"type":47,"value":410},{"type":41,"tag":150,"props":1339,"children":1340},{"style":771},[1341],{"type":47,"value":1342}," chainIds",{"type":41,"tag":150,"props":1344,"children":1345},{"style":351},[1346],{"type":47,"value":779},{"type":41,"tag":150,"props":1348,"children":1349},{"style":357},[1350],{"type":47,"value":1351}," [",{"type":41,"tag":150,"props":1353,"children":1354},{"style":351},[1355],{"type":47,"value":384},{"type":41,"tag":150,"props":1357,"children":1358},{"style":172},[1359],{"type":47,"value":1360},"0x1",{"type":41,"tag":150,"props":1362,"children":1363},{"style":351},[1364],{"type":47,"value":384},{"type":41,"tag":150,"props":1366,"children":1367},{"style":351},[1368],{"type":47,"value":410},{"type":41,"tag":150,"props":1370,"children":1371},{"style":351},[1372],{"type":47,"value":375},{"type":41,"tag":150,"props":1374,"children":1375},{"style":172},[1376],{"type":47,"value":921},{"type":41,"tag":150,"props":1378,"children":1379},{"style":351},[1380],{"type":47,"value":384},{"type":41,"tag":150,"props":1382,"children":1383},{"style":357},[1384],{"type":47,"value":1385},"] ",{"type":41,"tag":150,"props":1387,"children":1388},{"style":351},[1389],{"type":47,"value":1085},{"type":41,"tag":150,"props":1391,"children":1392},{"style":357},[1393],{"type":47,"value":1028},{"type":41,"tag":150,"props":1395,"children":1396},{"style":351},[1397],{"type":47,"value":814},{"type":41,"tag":150,"props":1399,"children":1400},{"class":152,"line":949},[1401,1406,1411,1415,1419,1423,1428,1432],{"type":41,"tag":150,"props":1402,"children":1403},{"style":351},[1404],{"type":47,"value":1405},"      '",{"type":41,"tag":150,"props":1407,"children":1408},{"style":771},[1409],{"type":47,"value":1410},"0xa4b1",{"type":41,"tag":150,"props":1412,"children":1413},{"style":351},[1414],{"type":47,"value":384},{"type":41,"tag":150,"props":1416,"children":1417},{"style":351},[1418],{"type":47,"value":779},{"type":41,"tag":150,"props":1420,"children":1421},{"style":351},[1422],{"type":47,"value":375},{"type":41,"tag":150,"props":1424,"children":1425},{"style":172},[1426],{"type":47,"value":1427},"https:\u002F\u002Farb1.arbitrum.io\u002Frpc",{"type":41,"tag":150,"props":1429,"children":1430},{"style":351},[1431],{"type":47,"value":384},{"type":41,"tag":150,"props":1433,"children":1434},{"style":351},[1435],{"type":47,"value":814},{"type":41,"tag":150,"props":1437,"children":1438},{"class":152,"line":957},[1439],{"type":41,"tag":150,"props":1440,"children":1441},{"style":351},[1442],{"type":47,"value":1443},"    },\n",{"type":41,"tag":150,"props":1445,"children":1446},{"class":152,"line":980},[1447],{"type":41,"tag":150,"props":1448,"children":1449},{"style":351},[1450],{"type":47,"value":862},{"type":41,"tag":150,"props":1452,"children":1453},{"class":152,"line":1002},[1454,1459,1463],{"type":41,"tag":150,"props":1455,"children":1456},{"style":771},[1457],{"type":47,"value":1458},"  ui",{"type":41,"tag":150,"props":1460,"children":1461},{"style":351},[1462],{"type":47,"value":779},{"type":41,"tag":150,"props":1464,"children":1465},{"style":351},[1466],{"type":47,"value":784},{"type":41,"tag":150,"props":1468,"children":1469},{"class":152,"line":1079},[1470,1475,1479,1483],{"type":41,"tag":150,"props":1471,"children":1472},{"style":771},[1473],{"type":47,"value":1474},"    headless",{"type":41,"tag":150,"props":1476,"children":1477},{"style":351},[1478],{"type":47,"value":779},{"type":41,"tag":150,"props":1480,"children":1481},{"style":970},[1482],{"type":47,"value":973},{"type":41,"tag":150,"props":1484,"children":1485},{"style":351},[1486],{"type":47,"value":814},{"type":41,"tag":150,"props":1488,"children":1489},{"class":152,"line":1096},[1490,1495,1499,1503],{"type":41,"tag":150,"props":1491,"children":1492},{"style":771},[1493],{"type":47,"value":1494},"    preferExtension",{"type":41,"tag":150,"props":1496,"children":1497},{"style":351},[1498],{"type":47,"value":779},{"type":41,"tag":150,"props":1500,"children":1501},{"style":970},[1502],{"type":47,"value":995},{"type":41,"tag":150,"props":1504,"children":1505},{"style":351},[1506],{"type":47,"value":814},{"type":41,"tag":150,"props":1508,"children":1510},{"class":152,"line":1509},15,[1511],{"type":41,"tag":150,"props":1512,"children":1513},{"style":351},[1514],{"type":47,"value":862},{"type":41,"tag":150,"props":1516,"children":1518},{"class":152,"line":1517},16,[1519],{"type":41,"tag":150,"props":1520,"children":1521},{"style":157},[1522],{"type":47,"value":1523},"  \u002F\u002F `mobile` block only needed for React Native\n",{"type":41,"tag":150,"props":1525,"children":1527},{"class":152,"line":1526},17,[1528],{"type":41,"tag":150,"props":1529,"children":1530},{"style":157},[1531],{"type":47,"value":1532},"  \u002F\u002F mobile: {\n",{"type":41,"tag":150,"props":1534,"children":1536},{"class":152,"line":1535},18,[1537],{"type":41,"tag":150,"props":1538,"children":1539},{"style":157},[1540],{"type":47,"value":1541},"  \u002F\u002F   preferredOpenLink: (link: string) => Linking.openURL(link),\n",{"type":41,"tag":150,"props":1543,"children":1545},{"class":152,"line":1544},19,[1546],{"type":41,"tag":150,"props":1547,"children":1548},{"style":157},[1549],{"type":47,"value":1550},"  \u002F\u002F },\n",{"type":41,"tag":150,"props":1552,"children":1554},{"class":152,"line":1553},20,[1555,1559,1563],{"type":41,"tag":150,"props":1556,"children":1557},{"style":351},[1558],{"type":47,"value":1085},{"type":41,"tag":150,"props":1560,"children":1561},{"style":357},[1562],{"type":47,"value":1028},{"type":41,"tag":150,"props":1564,"children":1565},{"style":351},[1566],{"type":47,"value":389},{"type":41,"tag":57,"props":1568,"children":1569},{},[1570],{"type":41,"tag":283,"props":1571,"children":1572},{},[1573],{"type":47,"value":1574},"Key option mappings:",{"type":41,"tag":1576,"props":1577,"children":1578},"table",{},[1579,1617],{"type":41,"tag":1580,"props":1581,"children":1582},"thead",{},[1583],{"type":41,"tag":1584,"props":1585,"children":1586},"tr",{},[1587,1600,1612],{"type":41,"tag":1588,"props":1589,"children":1590},"th",{},[1591,1593,1599],{"type":47,"value":1592},"Old (",{"type":41,"tag":73,"props":1594,"children":1596},{"className":1595},[],[1597],{"type":47,"value":1598},"MetaMaskSDK",{"type":47,"value":1028},{"type":41,"tag":1588,"props":1601,"children":1602},{},[1603,1605,1611],{"type":47,"value":1604},"New (",{"type":41,"tag":73,"props":1606,"children":1608},{"className":1607},[],[1609],{"type":47,"value":1610},"createEVMClient",{"type":47,"value":1028},{"type":41,"tag":1588,"props":1613,"children":1614},{},[1615],{"type":47,"value":1616},"Notes",{"type":41,"tag":1618,"props":1619,"children":1620},"tbody",{},[1621,1654,1680,1706,1748,1773,1799,1831,1863,1888,1910,1975,1996],{"type":41,"tag":1584,"props":1622,"children":1623},{},[1624,1634,1643],{"type":41,"tag":1625,"props":1626,"children":1627},"td",{},[1628],{"type":41,"tag":73,"props":1629,"children":1631},{"className":1630},[],[1632],{"type":47,"value":1633},"dappMetadata",{"type":41,"tag":1625,"props":1635,"children":1636},{},[1637],{"type":41,"tag":73,"props":1638,"children":1640},{"className":1639},[],[1641],{"type":47,"value":1642},"dapp",{"type":41,"tag":1625,"props":1644,"children":1645},{},[1646,1648],{"type":47,"value":1647},"Same shape: ",{"type":41,"tag":73,"props":1649,"children":1651},{"className":1650},[],[1652],{"type":47,"value":1653},"{ name, url, iconUrl }",{"type":41,"tag":1584,"props":1655,"children":1656},{},[1657,1666,1675],{"type":41,"tag":1625,"props":1658,"children":1659},{},[1660],{"type":41,"tag":73,"props":1661,"children":1663},{"className":1662},[],[1664],{"type":47,"value":1665},"dappMetadata.name",{"type":41,"tag":1625,"props":1667,"children":1668},{},[1669],{"type":41,"tag":73,"props":1670,"children":1672},{"className":1671},[],[1673],{"type":47,"value":1674},"dapp.name",{"type":41,"tag":1625,"props":1676,"children":1677},{},[1678],{"type":47,"value":1679},"Required",{"type":41,"tag":1584,"props":1681,"children":1682},{},[1683,1692,1701],{"type":41,"tag":1625,"props":1684,"children":1685},{},[1686],{"type":41,"tag":73,"props":1687,"children":1689},{"className":1688},[],[1690],{"type":47,"value":1691},"dappMetadata.url",{"type":41,"tag":1625,"props":1693,"children":1694},{},[1695],{"type":41,"tag":73,"props":1696,"children":1698},{"className":1697},[],[1699],{"type":47,"value":1700},"dapp.url",{"type":41,"tag":1625,"props":1702,"children":1703},{},[1704],{"type":47,"value":1705},"Optional",{"type":41,"tag":1584,"props":1707,"children":1708},{},[1709,1718,1735],{"type":41,"tag":1625,"props":1710,"children":1711},{},[1712],{"type":41,"tag":73,"props":1713,"children":1715},{"className":1714},[],[1716],{"type":47,"value":1717},"infuraAPIKey",{"type":41,"tag":1625,"props":1719,"children":1720},{},[1721,1727,1729],{"type":41,"tag":73,"props":1722,"children":1724},{"className":1723},[],[1725],{"type":47,"value":1726},"api.supportedNetworks",{"type":47,"value":1728}," via ",{"type":41,"tag":73,"props":1730,"children":1732},{"className":1731},[],[1733],{"type":47,"value":1734},"getInfuraRpcUrls({ infuraApiKey: key })",{"type":41,"tag":1625,"props":1736,"children":1737},{},[1738,1740,1746],{"type":47,"value":1739},"Helper generates URLs for all Infura-supported chains; optional ",{"type":41,"tag":73,"props":1741,"children":1743},{"className":1742},[],[1744],{"type":47,"value":1745},"chainIds",{"type":47,"value":1747}," to limit to specific chains",{"type":41,"tag":1584,"props":1749,"children":1750},{},[1751,1760,1768],{"type":41,"tag":1625,"props":1752,"children":1753},{},[1754],{"type":41,"tag":73,"props":1755,"children":1757},{"className":1756},[],[1758],{"type":47,"value":1759},"readonlyRPCMap",{"type":41,"tag":1625,"props":1761,"children":1762},{},[1763],{"type":41,"tag":73,"props":1764,"children":1766},{"className":1765},[],[1767],{"type":47,"value":1726},{"type":41,"tag":1625,"props":1769,"children":1770},{},[1771],{"type":47,"value":1772},"Merge into the same object",{"type":41,"tag":1584,"props":1774,"children":1775},{},[1776,1785,1794],{"type":41,"tag":1625,"props":1777,"children":1778},{},[1779],{"type":41,"tag":73,"props":1780,"children":1782},{"className":1781},[],[1783],{"type":47,"value":1784},"headless",{"type":41,"tag":1625,"props":1786,"children":1787},{},[1788],{"type":41,"tag":73,"props":1789,"children":1791},{"className":1790},[],[1792],{"type":47,"value":1793},"ui.headless",{"type":41,"tag":1625,"props":1795,"children":1796},{},[1797],{"type":47,"value":1798},"Same behavior",{"type":41,"tag":1584,"props":1800,"children":1801},{},[1802,1811,1820],{"type":41,"tag":1625,"props":1803,"children":1804},{},[1805],{"type":41,"tag":73,"props":1806,"children":1808},{"className":1807},[],[1809],{"type":47,"value":1810},"extensionOnly",{"type":41,"tag":1625,"props":1812,"children":1813},{},[1814],{"type":41,"tag":73,"props":1815,"children":1817},{"className":1816},[],[1818],{"type":47,"value":1819},"ui.preferExtension",{"type":41,"tag":1625,"props":1821,"children":1822},{},[1823,1829],{"type":41,"tag":73,"props":1824,"children":1826},{"className":1825},[],[1827],{"type":47,"value":1828},"true",{"type":47,"value":1830}," prefers extension (default); not the same as \"only\"",{"type":41,"tag":1584,"props":1832,"children":1833},{},[1834,1843,1852],{"type":41,"tag":1625,"props":1835,"children":1836},{},[1837],{"type":41,"tag":73,"props":1838,"children":1840},{"className":1839},[],[1841],{"type":47,"value":1842},"openDeeplink",{"type":41,"tag":1625,"props":1844,"children":1845},{},[1846],{"type":41,"tag":73,"props":1847,"children":1849},{"className":1848},[],[1850],{"type":47,"value":1851},"mobile.preferredOpenLink",{"type":41,"tag":1625,"props":1853,"children":1854},{},[1855,1857],{"type":47,"value":1856},"Same signature: ",{"type":41,"tag":73,"props":1858,"children":1860},{"className":1859},[],[1861],{"type":47,"value":1862},"(deeplink: string) => void",{"type":41,"tag":1584,"props":1864,"children":1865},{},[1866,1875,1884],{"type":41,"tag":1625,"props":1867,"children":1868},{},[1869],{"type":41,"tag":73,"props":1870,"children":1872},{"className":1871},[],[1873],{"type":47,"value":1874},"useDeeplink",{"type":41,"tag":1625,"props":1876,"children":1877},{},[1878],{"type":41,"tag":73,"props":1879,"children":1881},{"className":1880},[],[1882],{"type":47,"value":1883},"mobile.useDeeplink",{"type":41,"tag":1625,"props":1885,"children":1886},{},[1887],{"type":47,"value":1798},{"type":41,"tag":1584,"props":1889,"children":1890},{},[1891,1900,1905],{"type":41,"tag":1625,"props":1892,"children":1893},{},[1894],{"type":41,"tag":73,"props":1895,"children":1897},{"className":1896},[],[1898],{"type":47,"value":1899},"timer",{"type":41,"tag":1625,"props":1901,"children":1902},{},[1903],{"type":47,"value":1904},"Removed",{"type":41,"tag":1625,"props":1906,"children":1907},{},[1908],{"type":47,"value":1909},"No longer configurable",{"type":41,"tag":1584,"props":1911,"children":1912},{},[1913,1922,1931],{"type":41,"tag":1625,"props":1914,"children":1915},{},[1916],{"type":41,"tag":73,"props":1917,"children":1919},{"className":1918},[],[1920],{"type":47,"value":1921},"enableAnalytics",{"type":41,"tag":1625,"props":1923,"children":1924},{},[1925],{"type":41,"tag":73,"props":1926,"children":1928},{"className":1927},[],[1929],{"type":47,"value":1930},"analytics: { enabled: boolean }",{"type":41,"tag":1625,"props":1932,"children":1933},{},[1934,1936,1942,1944,1950,1952,1958,1960,1966,1968,1973],{"type":47,"value":1935},"Pass ",{"type":41,"tag":73,"props":1937,"children":1939},{"className":1938},[],[1940],{"type":47,"value":1941},"analytics: { enabled: false }",{"type":47,"value":1943}," at client creation. (A runtime ",{"type":41,"tag":73,"props":1945,"children":1947},{"className":1946},[],[1948],{"type":47,"value":1949},"analytics.disable()",{"type":47,"value":1951}," exists on the ",{"type":41,"tag":73,"props":1953,"children":1955},{"className":1954},[],[1956],{"type":47,"value":1957},"@metamask\u002Fanalytics",{"type":47,"value":1959}," singleton — ",{"type":41,"tag":73,"props":1961,"children":1963},{"className":1962},[],[1964],{"type":47,"value":1965},"import { analytics } from '@metamask\u002Fanalytics'",{"type":47,"value":1967}," — it is ",{"type":41,"tag":283,"props":1969,"children":1970},{},[1971],{"type":47,"value":1972},"not",{"type":47,"value":1974}," a method on the connect client.)",{"type":41,"tag":1584,"props":1976,"children":1977},{},[1978,1987,1991],{"type":41,"tag":1625,"props":1979,"children":1980},{},[1981],{"type":41,"tag":73,"props":1982,"children":1984},{"className":1983},[],[1985],{"type":47,"value":1986},"communicationServerUrl",{"type":41,"tag":1625,"props":1988,"children":1989},{},[1990],{"type":47,"value":1904},{"type":41,"tag":1625,"props":1992,"children":1993},{},[1994],{"type":47,"value":1995},"Managed internally",{"type":41,"tag":1584,"props":1997,"children":1998},{},[1999,2008,2012],{"type":41,"tag":1625,"props":2000,"children":2001},{},[2002],{"type":41,"tag":73,"props":2003,"children":2005},{"className":2004},[],[2006],{"type":47,"value":2007},"storage",{"type":41,"tag":1625,"props":2009,"children":2010},{},[2011],{"type":47,"value":1904},{"type":41,"tag":1625,"props":2013,"children":2014},{},[2015],{"type":47,"value":1995},{"type":41,"tag":258,"props":2017,"children":2018},{},[],{"type":41,"tag":127,"props":2020,"children":2022},{"id":2021},"step-4-update-connection-flow",[2023],{"type":47,"value":2024},"Step 4: Update connection flow",{"type":41,"tag":57,"props":2026,"children":2027},{},[2028],{"type":41,"tag":283,"props":2029,"children":2030},{},[2031],{"type":47,"value":330},{"type":41,"tag":139,"props":2033,"children":2035},{"className":333,"code":2034,"language":335,"meta":144,"style":144},"const accounts = await sdk.connect();\nconst chainId = await sdk.getProvider().request({ method: 'eth_chainId' });\n",[2036],{"type":41,"tag":73,"props":2037,"children":2038},{"__ignoreMap":144},[2039,2080],{"type":41,"tag":150,"props":2040,"children":2041},{"class":152,"line":153},[2042,2046,2051,2055,2059,2063,2067,2072,2076],{"type":41,"tag":150,"props":2043,"children":2044},{"style":732},[2045],{"type":47,"value":735},{"type":41,"tag":150,"props":2047,"children":2048},{"style":357},[2049],{"type":47,"value":2050}," accounts ",{"type":41,"tag":150,"props":2052,"children":2053},{"style":351},[2054],{"type":47,"value":745},{"type":41,"tag":150,"props":2056,"children":2057},{"style":345},[2058],{"type":47,"value":1161},{"type":41,"tag":150,"props":2060,"children":2061},{"style":357},[2062],{"type":47,"value":1107},{"type":41,"tag":150,"props":2064,"children":2065},{"style":351},[2066],{"type":47,"value":836},{"type":41,"tag":150,"props":2068,"children":2069},{"style":753},[2070],{"type":47,"value":2071},"connect",{"type":41,"tag":150,"props":2073,"children":2074},{"style":357},[2075],{"type":47,"value":1121},{"type":41,"tag":150,"props":2077,"children":2078},{"style":351},[2079],{"type":47,"value":389},{"type":41,"tag":150,"props":2081,"children":2082},{"class":152,"line":25},[2083,2087,2092,2096,2100,2104,2108,2113,2117,2121,2126,2130,2134,2139,2143,2147,2152,2156,2160,2164],{"type":41,"tag":150,"props":2084,"children":2085},{"style":732},[2086],{"type":47,"value":735},{"type":41,"tag":150,"props":2088,"children":2089},{"style":357},[2090],{"type":47,"value":2091}," chainId ",{"type":41,"tag":150,"props":2093,"children":2094},{"style":351},[2095],{"type":47,"value":745},{"type":41,"tag":150,"props":2097,"children":2098},{"style":345},[2099],{"type":47,"value":1161},{"type":41,"tag":150,"props":2101,"children":2102},{"style":357},[2103],{"type":47,"value":1107},{"type":41,"tag":150,"props":2105,"children":2106},{"style":351},[2107],{"type":47,"value":836},{"type":41,"tag":150,"props":2109,"children":2110},{"style":753},[2111],{"type":47,"value":2112},"getProvider",{"type":41,"tag":150,"props":2114,"children":2115},{"style":357},[2116],{"type":47,"value":1121},{"type":41,"tag":150,"props":2118,"children":2119},{"style":351},[2120],{"type":47,"value":836},{"type":41,"tag":150,"props":2122,"children":2123},{"style":753},[2124],{"type":47,"value":2125},"request",{"type":41,"tag":150,"props":2127,"children":2128},{"style":357},[2129],{"type":47,"value":760},{"type":41,"tag":150,"props":2131,"children":2132},{"style":351},[2133],{"type":47,"value":1312},{"type":41,"tag":150,"props":2135,"children":2136},{"style":771},[2137],{"type":47,"value":2138}," method",{"type":41,"tag":150,"props":2140,"children":2141},{"style":351},[2142],{"type":47,"value":779},{"type":41,"tag":150,"props":2144,"children":2145},{"style":351},[2146],{"type":47,"value":375},{"type":41,"tag":150,"props":2148,"children":2149},{"style":172},[2150],{"type":47,"value":2151},"eth_chainId",{"type":41,"tag":150,"props":2153,"children":2154},{"style":351},[2155],{"type":47,"value":384},{"type":41,"tag":150,"props":2157,"children":2158},{"style":351},[2159],{"type":47,"value":365},{"type":41,"tag":150,"props":2161,"children":2162},{"style":357},[2163],{"type":47,"value":1028},{"type":41,"tag":150,"props":2165,"children":2166},{"style":351},[2167],{"type":47,"value":389},{"type":41,"tag":57,"props":2169,"children":2170},{},[2171],{"type":41,"tag":283,"props":2172,"children":2173},{},[2174],{"type":47,"value":1133},{"type":41,"tag":139,"props":2176,"children":2178},{"className":333,"code":2177,"language":335,"meta":144,"style":144},"const { accounts, chainId } = await client.connect({\n  chainIds: ['0x1'],\n});\n",[2179],{"type":41,"tag":73,"props":2180,"children":2181},{"__ignoreMap":144},[2182,2240,2277],{"type":41,"tag":150,"props":2183,"children":2184},{"class":152,"line":153},[2185,2189,2193,2198,2202,2206,2210,2215,2219,2224,2228,2232,2236],{"type":41,"tag":150,"props":2186,"children":2187},{"style":732},[2188],{"type":47,"value":735},{"type":41,"tag":150,"props":2190,"children":2191},{"style":351},[2192],{"type":47,"value":354},{"type":41,"tag":150,"props":2194,"children":2195},{"style":357},[2196],{"type":47,"value":2197}," accounts",{"type":41,"tag":150,"props":2199,"children":2200},{"style":351},[2201],{"type":47,"value":410},{"type":41,"tag":150,"props":2203,"children":2204},{"style":357},[2205],{"type":47,"value":2091},{"type":41,"tag":150,"props":2207,"children":2208},{"style":351},[2209],{"type":47,"value":1085},{"type":41,"tag":150,"props":2211,"children":2212},{"style":351},[2213],{"type":47,"value":2214}," =",{"type":41,"tag":150,"props":2216,"children":2217},{"style":345},[2218],{"type":47,"value":1161},{"type":41,"tag":150,"props":2220,"children":2221},{"style":357},[2222],{"type":47,"value":2223}," client",{"type":41,"tag":150,"props":2225,"children":2226},{"style":351},[2227],{"type":47,"value":836},{"type":41,"tag":150,"props":2229,"children":2230},{"style":753},[2231],{"type":47,"value":2071},{"type":41,"tag":150,"props":2233,"children":2234},{"style":357},[2235],{"type":47,"value":760},{"type":41,"tag":150,"props":2237,"children":2238},{"style":351},[2239],{"type":47,"value":765},{"type":41,"tag":150,"props":2241,"children":2242},{"class":152,"line":25},[2243,2248,2252,2256,2260,2264,2268,2273],{"type":41,"tag":150,"props":2244,"children":2245},{"style":771},[2246],{"type":47,"value":2247},"  chainIds",{"type":41,"tag":150,"props":2249,"children":2250},{"style":351},[2251],{"type":47,"value":779},{"type":41,"tag":150,"props":2253,"children":2254},{"style":357},[2255],{"type":47,"value":1351},{"type":41,"tag":150,"props":2257,"children":2258},{"style":351},[2259],{"type":47,"value":384},{"type":41,"tag":150,"props":2261,"children":2262},{"style":172},[2263],{"type":47,"value":1360},{"type":41,"tag":150,"props":2265,"children":2266},{"style":351},[2267],{"type":47,"value":384},{"type":41,"tag":150,"props":2269,"children":2270},{"style":357},[2271],{"type":47,"value":2272},"]",{"type":41,"tag":150,"props":2274,"children":2275},{"style":351},[2276],{"type":47,"value":814},{"type":41,"tag":150,"props":2278,"children":2279},{"class":152,"line":188},[2280,2284,2288],{"type":41,"tag":150,"props":2281,"children":2282},{"style":351},[2283],{"type":47,"value":1085},{"type":41,"tag":150,"props":2285,"children":2286},{"style":357},[2287],{"type":47,"value":1028},{"type":41,"tag":150,"props":2289,"children":2290},{"style":351},[2291],{"type":47,"value":389},{"type":41,"tag":57,"props":2293,"children":2294},{},[2295],{"type":47,"value":2296},"Key differences:",{"type":41,"tag":63,"props":2298,"children":2299},{},[2300,2334,2344],{"type":41,"tag":67,"props":2301,"children":2302},{},[2303,2309,2311,2316,2318,2324,2326,2332],{"type":41,"tag":73,"props":2304,"children":2306},{"className":2305},[],[2307],{"type":47,"value":2308},"connect()",{"type":47,"value":2310}," now returns an ",{"type":41,"tag":283,"props":2312,"children":2313},{},[2314],{"type":47,"value":2315},"object",{"type":47,"value":2317}," with both ",{"type":41,"tag":73,"props":2319,"children":2321},{"className":2320},[],[2322],{"type":47,"value":2323},"accounts",{"type":47,"value":2325}," and ",{"type":41,"tag":73,"props":2327,"children":2329},{"className":2328},[],[2330],{"type":47,"value":2331},"chainId",{"type":47,"value":2333}," — no separate call needed",{"type":41,"tag":67,"props":2335,"children":2336},{},[2337,2342],{"type":41,"tag":73,"props":2338,"children":2340},{"className":2339},[],[2341],{"type":47,"value":1745},{"type":47,"value":2343}," parameter specifies which chains to request (hex strings)",{"type":41,"tag":67,"props":2345,"children":2346},{},[2347,2349,2355],{"type":47,"value":2348},"Use ",{"type":41,"tag":73,"props":2350,"children":2352},{"className":2351},[],[2353],{"type":47,"value":2354},"connectAndSign",{"type":47,"value":2356}," for connect + personal_sign in one step:",{"type":41,"tag":139,"props":2358,"children":2360},{"className":333,"code":2359,"language":335,"meta":144,"style":144},"const { accounts, chainId, signature } = await client.connectAndSign({\n  chainIds: ['0x1'],\n  message: 'Sign in to My DApp',\n});\n",[2361],{"type":41,"tag":73,"props":2362,"children":2363},{"__ignoreMap":144},[2364,2429,2464,2493],{"type":41,"tag":150,"props":2365,"children":2366},{"class":152,"line":153},[2367,2371,2375,2379,2383,2388,2392,2397,2401,2405,2409,2413,2417,2421,2425],{"type":41,"tag":150,"props":2368,"children":2369},{"style":732},[2370],{"type":47,"value":735},{"type":41,"tag":150,"props":2372,"children":2373},{"style":351},[2374],{"type":47,"value":354},{"type":41,"tag":150,"props":2376,"children":2377},{"style":357},[2378],{"type":47,"value":2197},{"type":41,"tag":150,"props":2380,"children":2381},{"style":351},[2382],{"type":47,"value":410},{"type":41,"tag":150,"props":2384,"children":2385},{"style":357},[2386],{"type":47,"value":2387}," chainId",{"type":41,"tag":150,"props":2389,"children":2390},{"style":351},[2391],{"type":47,"value":410},{"type":41,"tag":150,"props":2393,"children":2394},{"style":357},[2395],{"type":47,"value":2396}," signature ",{"type":41,"tag":150,"props":2398,"children":2399},{"style":351},[2400],{"type":47,"value":1085},{"type":41,"tag":150,"props":2402,"children":2403},{"style":351},[2404],{"type":47,"value":2214},{"type":41,"tag":150,"props":2406,"children":2407},{"style":345},[2408],{"type":47,"value":1161},{"type":41,"tag":150,"props":2410,"children":2411},{"style":357},[2412],{"type":47,"value":2223},{"type":41,"tag":150,"props":2414,"children":2415},{"style":351},[2416],{"type":47,"value":836},{"type":41,"tag":150,"props":2418,"children":2419},{"style":753},[2420],{"type":47,"value":2354},{"type":41,"tag":150,"props":2422,"children":2423},{"style":357},[2424],{"type":47,"value":760},{"type":41,"tag":150,"props":2426,"children":2427},{"style":351},[2428],{"type":47,"value":765},{"type":41,"tag":150,"props":2430,"children":2431},{"class":152,"line":25},[2432,2436,2440,2444,2448,2452,2456,2460],{"type":41,"tag":150,"props":2433,"children":2434},{"style":771},[2435],{"type":47,"value":2247},{"type":41,"tag":150,"props":2437,"children":2438},{"style":351},[2439],{"type":47,"value":779},{"type":41,"tag":150,"props":2441,"children":2442},{"style":357},[2443],{"type":47,"value":1351},{"type":41,"tag":150,"props":2445,"children":2446},{"style":351},[2447],{"type":47,"value":384},{"type":41,"tag":150,"props":2449,"children":2450},{"style":172},[2451],{"type":47,"value":1360},{"type":41,"tag":150,"props":2453,"children":2454},{"style":351},[2455],{"type":47,"value":384},{"type":41,"tag":150,"props":2457,"children":2458},{"style":357},[2459],{"type":47,"value":2272},{"type":41,"tag":150,"props":2461,"children":2462},{"style":351},[2463],{"type":47,"value":814},{"type":41,"tag":150,"props":2465,"children":2466},{"class":152,"line":188},[2467,2472,2476,2480,2485,2489],{"type":41,"tag":150,"props":2468,"children":2469},{"style":771},[2470],{"type":47,"value":2471},"  message",{"type":41,"tag":150,"props":2473,"children":2474},{"style":351},[2475],{"type":47,"value":779},{"type":41,"tag":150,"props":2477,"children":2478},{"style":351},[2479],{"type":47,"value":375},{"type":41,"tag":150,"props":2481,"children":2482},{"style":172},[2483],{"type":47,"value":2484},"Sign in to My DApp",{"type":41,"tag":150,"props":2486,"children":2487},{"style":351},[2488],{"type":47,"value":384},{"type":41,"tag":150,"props":2490,"children":2491},{"style":351},[2492],{"type":47,"value":814},{"type":41,"tag":150,"props":2494,"children":2495},{"class":152,"line":198},[2496,2500,2504],{"type":41,"tag":150,"props":2497,"children":2498},{"style":351},[2499],{"type":47,"value":1085},{"type":41,"tag":150,"props":2501,"children":2502},{"style":357},[2503],{"type":47,"value":1028},{"type":41,"tag":150,"props":2505,"children":2506},{"style":351},[2507],{"type":47,"value":389},{"type":41,"tag":63,"props":2509,"children":2510},{},[2511],{"type":41,"tag":67,"props":2512,"children":2513},{},[2514,2515,2521],{"type":47,"value":2348},{"type":41,"tag":73,"props":2516,"children":2518},{"className":2517},[],[2519],{"type":47,"value":2520},"connectWith",{"type":47,"value":2522}," for connect + arbitrary RPC method:",{"type":41,"tag":139,"props":2524,"children":2526},{"className":333,"code":2525,"language":335,"meta":144,"style":144},"const { accounts, chainId, result } = await client.connectWith({\n  chainIds: ['0x1'],\n  method: 'eth_sendTransaction',\n  params: [{ from: '0x...', to: '0x...', value: '0x0' }],\n});\n",[2527],{"type":41,"tag":73,"props":2528,"children":2529},{"__ignoreMap":144},[2530,2594,2629,2658,2762],{"type":41,"tag":150,"props":2531,"children":2532},{"class":152,"line":153},[2533,2537,2541,2545,2549,2553,2557,2562,2566,2570,2574,2578,2582,2586,2590],{"type":41,"tag":150,"props":2534,"children":2535},{"style":732},[2536],{"type":47,"value":735},{"type":41,"tag":150,"props":2538,"children":2539},{"style":351},[2540],{"type":47,"value":354},{"type":41,"tag":150,"props":2542,"children":2543},{"style":357},[2544],{"type":47,"value":2197},{"type":41,"tag":150,"props":2546,"children":2547},{"style":351},[2548],{"type":47,"value":410},{"type":41,"tag":150,"props":2550,"children":2551},{"style":357},[2552],{"type":47,"value":2387},{"type":41,"tag":150,"props":2554,"children":2555},{"style":351},[2556],{"type":47,"value":410},{"type":41,"tag":150,"props":2558,"children":2559},{"style":357},[2560],{"type":47,"value":2561}," result ",{"type":41,"tag":150,"props":2563,"children":2564},{"style":351},[2565],{"type":47,"value":1085},{"type":41,"tag":150,"props":2567,"children":2568},{"style":351},[2569],{"type":47,"value":2214},{"type":41,"tag":150,"props":2571,"children":2572},{"style":345},[2573],{"type":47,"value":1161},{"type":41,"tag":150,"props":2575,"children":2576},{"style":357},[2577],{"type":47,"value":2223},{"type":41,"tag":150,"props":2579,"children":2580},{"style":351},[2581],{"type":47,"value":836},{"type":41,"tag":150,"props":2583,"children":2584},{"style":753},[2585],{"type":47,"value":2520},{"type":41,"tag":150,"props":2587,"children":2588},{"style":357},[2589],{"type":47,"value":760},{"type":41,"tag":150,"props":2591,"children":2592},{"style":351},[2593],{"type":47,"value":765},{"type":41,"tag":150,"props":2595,"children":2596},{"class":152,"line":25},[2597,2601,2605,2609,2613,2617,2621,2625],{"type":41,"tag":150,"props":2598,"children":2599},{"style":771},[2600],{"type":47,"value":2247},{"type":41,"tag":150,"props":2602,"children":2603},{"style":351},[2604],{"type":47,"value":779},{"type":41,"tag":150,"props":2606,"children":2607},{"style":357},[2608],{"type":47,"value":1351},{"type":41,"tag":150,"props":2610,"children":2611},{"style":351},[2612],{"type":47,"value":384},{"type":41,"tag":150,"props":2614,"children":2615},{"style":172},[2616],{"type":47,"value":1360},{"type":41,"tag":150,"props":2618,"children":2619},{"style":351},[2620],{"type":47,"value":384},{"type":41,"tag":150,"props":2622,"children":2623},{"style":357},[2624],{"type":47,"value":2272},{"type":41,"tag":150,"props":2626,"children":2627},{"style":351},[2628],{"type":47,"value":814},{"type":41,"tag":150,"props":2630,"children":2631},{"class":152,"line":188},[2632,2637,2641,2645,2650,2654],{"type":41,"tag":150,"props":2633,"children":2634},{"style":771},[2635],{"type":47,"value":2636},"  method",{"type":41,"tag":150,"props":2638,"children":2639},{"style":351},[2640],{"type":47,"value":779},{"type":41,"tag":150,"props":2642,"children":2643},{"style":351},[2644],{"type":47,"value":375},{"type":41,"tag":150,"props":2646,"children":2647},{"style":172},[2648],{"type":47,"value":2649},"eth_sendTransaction",{"type":41,"tag":150,"props":2651,"children":2652},{"style":351},[2653],{"type":47,"value":384},{"type":41,"tag":150,"props":2655,"children":2656},{"style":351},[2657],{"type":47,"value":814},{"type":41,"tag":150,"props":2659,"children":2660},{"class":152,"line":198},[2661,2666,2670,2674,2678,2682,2686,2690,2695,2699,2703,2708,2712,2716,2720,2724,2728,2733,2737,2741,2746,2750,2754,2758],{"type":41,"tag":150,"props":2662,"children":2663},{"style":771},[2664],{"type":47,"value":2665},"  params",{"type":41,"tag":150,"props":2667,"children":2668},{"style":351},[2669],{"type":47,"value":779},{"type":41,"tag":150,"props":2671,"children":2672},{"style":357},[2673],{"type":47,"value":1351},{"type":41,"tag":150,"props":2675,"children":2676},{"style":351},[2677],{"type":47,"value":1312},{"type":41,"tag":150,"props":2679,"children":2680},{"style":771},[2681],{"type":47,"value":370},{"type":41,"tag":150,"props":2683,"children":2684},{"style":351},[2685],{"type":47,"value":779},{"type":41,"tag":150,"props":2687,"children":2688},{"style":351},[2689],{"type":47,"value":375},{"type":41,"tag":150,"props":2691,"children":2692},{"style":172},[2693],{"type":47,"value":2694},"0x...",{"type":41,"tag":150,"props":2696,"children":2697},{"style":351},[2698],{"type":47,"value":384},{"type":41,"tag":150,"props":2700,"children":2701},{"style":351},[2702],{"type":47,"value":410},{"type":41,"tag":150,"props":2704,"children":2705},{"style":771},[2706],{"type":47,"value":2707}," to",{"type":41,"tag":150,"props":2709,"children":2710},{"style":351},[2711],{"type":47,"value":779},{"type":41,"tag":150,"props":2713,"children":2714},{"style":351},[2715],{"type":47,"value":375},{"type":41,"tag":150,"props":2717,"children":2718},{"style":172},[2719],{"type":47,"value":2694},{"type":41,"tag":150,"props":2721,"children":2722},{"style":351},[2723],{"type":47,"value":384},{"type":41,"tag":150,"props":2725,"children":2726},{"style":351},[2727],{"type":47,"value":410},{"type":41,"tag":150,"props":2729,"children":2730},{"style":771},[2731],{"type":47,"value":2732}," value",{"type":41,"tag":150,"props":2734,"children":2735},{"style":351},[2736],{"type":47,"value":779},{"type":41,"tag":150,"props":2738,"children":2739},{"style":351},[2740],{"type":47,"value":375},{"type":41,"tag":150,"props":2742,"children":2743},{"style":172},[2744],{"type":47,"value":2745},"0x0",{"type":41,"tag":150,"props":2747,"children":2748},{"style":351},[2749],{"type":47,"value":384},{"type":41,"tag":150,"props":2751,"children":2752},{"style":351},[2753],{"type":47,"value":365},{"type":41,"tag":150,"props":2755,"children":2756},{"style":357},[2757],{"type":47,"value":2272},{"type":41,"tag":150,"props":2759,"children":2760},{"style":351},[2761],{"type":47,"value":814},{"type":41,"tag":150,"props":2763,"children":2764},{"class":152,"line":207},[2765,2769,2773],{"type":41,"tag":150,"props":2766,"children":2767},{"style":351},[2768],{"type":47,"value":1085},{"type":41,"tag":150,"props":2770,"children":2771},{"style":357},[2772],{"type":47,"value":1028},{"type":41,"tag":150,"props":2774,"children":2775},{"style":351},[2776],{"type":47,"value":389},{"type":41,"tag":258,"props":2778,"children":2779},{},[],{"type":41,"tag":127,"props":2781,"children":2783},{"id":2782},"step-5-update-provider-access",[2784],{"type":47,"value":2785},"Step 5: Update provider access",{"type":41,"tag":57,"props":2787,"children":2788},{},[2789],{"type":41,"tag":283,"props":2790,"children":2791},{},[2792],{"type":47,"value":330},{"type":41,"tag":139,"props":2794,"children":2796},{"className":333,"code":2795,"language":335,"meta":144,"style":144},"const provider = sdk.getProvider(); \u002F\u002F SDKProvider\nawait provider.request({ method: 'eth_chainId' });\n",[2797],{"type":41,"tag":73,"props":2798,"children":2799},{"__ignoreMap":144},[2800,2842],{"type":41,"tag":150,"props":2801,"children":2802},{"class":152,"line":153},[2803,2807,2812,2816,2820,2824,2828,2832,2837],{"type":41,"tag":150,"props":2804,"children":2805},{"style":732},[2806],{"type":47,"value":735},{"type":41,"tag":150,"props":2808,"children":2809},{"style":357},[2810],{"type":47,"value":2811}," provider ",{"type":41,"tag":150,"props":2813,"children":2814},{"style":351},[2815],{"type":47,"value":745},{"type":41,"tag":150,"props":2817,"children":2818},{"style":357},[2819],{"type":47,"value":1107},{"type":41,"tag":150,"props":2821,"children":2822},{"style":351},[2823],{"type":47,"value":836},{"type":41,"tag":150,"props":2825,"children":2826},{"style":753},[2827],{"type":47,"value":2112},{"type":41,"tag":150,"props":2829,"children":2830},{"style":357},[2831],{"type":47,"value":1121},{"type":41,"tag":150,"props":2833,"children":2834},{"style":351},[2835],{"type":47,"value":2836},";",{"type":41,"tag":150,"props":2838,"children":2839},{"style":157},[2840],{"type":47,"value":2841}," \u002F\u002F SDKProvider\n",{"type":41,"tag":150,"props":2843,"children":2844},{"class":152,"line":25},[2845,2849,2854,2858,2862,2866,2870,2874,2878,2882,2886,2890,2894,2898],{"type":41,"tag":150,"props":2846,"children":2847},{"style":345},[2848],{"type":47,"value":1102},{"type":41,"tag":150,"props":2850,"children":2851},{"style":357},[2852],{"type":47,"value":2853}," provider",{"type":41,"tag":150,"props":2855,"children":2856},{"style":351},[2857],{"type":47,"value":836},{"type":41,"tag":150,"props":2859,"children":2860},{"style":753},[2861],{"type":47,"value":2125},{"type":41,"tag":150,"props":2863,"children":2864},{"style":357},[2865],{"type":47,"value":760},{"type":41,"tag":150,"props":2867,"children":2868},{"style":351},[2869],{"type":47,"value":1312},{"type":41,"tag":150,"props":2871,"children":2872},{"style":771},[2873],{"type":47,"value":2138},{"type":41,"tag":150,"props":2875,"children":2876},{"style":351},[2877],{"type":47,"value":779},{"type":41,"tag":150,"props":2879,"children":2880},{"style":351},[2881],{"type":47,"value":375},{"type":41,"tag":150,"props":2883,"children":2884},{"style":172},[2885],{"type":47,"value":2151},{"type":41,"tag":150,"props":2887,"children":2888},{"style":351},[2889],{"type":47,"value":384},{"type":41,"tag":150,"props":2891,"children":2892},{"style":351},[2893],{"type":47,"value":365},{"type":41,"tag":150,"props":2895,"children":2896},{"style":357},[2897],{"type":47,"value":1028},{"type":41,"tag":150,"props":2899,"children":2900},{"style":351},[2901],{"type":47,"value":389},{"type":41,"tag":57,"props":2903,"children":2904},{},[2905],{"type":41,"tag":283,"props":2906,"children":2907},{},[2908],{"type":47,"value":1133},{"type":41,"tag":139,"props":2910,"children":2912},{"className":333,"code":2911,"language":335,"meta":144,"style":144},"const provider = client.getProvider(); \u002F\u002F EIP1193Provider\nawait provider.request({ method: 'eth_chainId' });\n",[2913],{"type":41,"tag":73,"props":2914,"children":2915},{"__ignoreMap":144},[2916,2956],{"type":41,"tag":150,"props":2917,"children":2918},{"class":152,"line":153},[2919,2923,2927,2931,2935,2939,2943,2947,2951],{"type":41,"tag":150,"props":2920,"children":2921},{"style":732},[2922],{"type":47,"value":735},{"type":41,"tag":150,"props":2924,"children":2925},{"style":357},[2926],{"type":47,"value":2811},{"type":41,"tag":150,"props":2928,"children":2929},{"style":351},[2930],{"type":47,"value":745},{"type":41,"tag":150,"props":2932,"children":2933},{"style":357},[2934],{"type":47,"value":2223},{"type":41,"tag":150,"props":2936,"children":2937},{"style":351},[2938],{"type":47,"value":836},{"type":41,"tag":150,"props":2940,"children":2941},{"style":753},[2942],{"type":47,"value":2112},{"type":41,"tag":150,"props":2944,"children":2945},{"style":357},[2946],{"type":47,"value":1121},{"type":41,"tag":150,"props":2948,"children":2949},{"style":351},[2950],{"type":47,"value":2836},{"type":41,"tag":150,"props":2952,"children":2953},{"style":157},[2954],{"type":47,"value":2955}," \u002F\u002F EIP1193Provider\n",{"type":41,"tag":150,"props":2957,"children":2958},{"class":152,"line":25},[2959,2963,2967,2971,2975,2979,2983,2987,2991,2995,2999,3003,3007,3011],{"type":41,"tag":150,"props":2960,"children":2961},{"style":345},[2962],{"type":47,"value":1102},{"type":41,"tag":150,"props":2964,"children":2965},{"style":357},[2966],{"type":47,"value":2853},{"type":41,"tag":150,"props":2968,"children":2969},{"style":351},[2970],{"type":47,"value":836},{"type":41,"tag":150,"props":2972,"children":2973},{"style":753},[2974],{"type":47,"value":2125},{"type":41,"tag":150,"props":2976,"children":2977},{"style":357},[2978],{"type":47,"value":760},{"type":41,"tag":150,"props":2980,"children":2981},{"style":351},[2982],{"type":47,"value":1312},{"type":41,"tag":150,"props":2984,"children":2985},{"style":771},[2986],{"type":47,"value":2138},{"type":41,"tag":150,"props":2988,"children":2989},{"style":351},[2990],{"type":47,"value":779},{"type":41,"tag":150,"props":2992,"children":2993},{"style":351},[2994],{"type":47,"value":375},{"type":41,"tag":150,"props":2996,"children":2997},{"style":172},[2998],{"type":47,"value":2151},{"type":41,"tag":150,"props":3000,"children":3001},{"style":351},[3002],{"type":47,"value":384},{"type":41,"tag":150,"props":3004,"children":3005},{"style":351},[3006],{"type":47,"value":365},{"type":41,"tag":150,"props":3008,"children":3009},{"style":357},[3010],{"type":47,"value":1028},{"type":41,"tag":150,"props":3012,"children":3013},{"style":351},[3014],{"type":47,"value":389},{"type":41,"tag":57,"props":3016,"children":3017},{},[3018],{"type":47,"value":2296},{"type":41,"tag":63,"props":3020,"children":3021},{},[3022,3040,3064,3085],{"type":41,"tag":67,"props":3023,"children":3024},{},[3025,3027,3032,3034],{"type":47,"value":3026},"The provider is now a standard ",{"type":41,"tag":283,"props":3028,"children":3029},{},[3030],{"type":47,"value":3031},"EIP-1193 provider",{"type":47,"value":3033},", not the custom ",{"type":41,"tag":73,"props":3035,"children":3037},{"className":3036},[],[3038],{"type":47,"value":3039},"SDKProvider",{"type":41,"tag":67,"props":3041,"children":3042},{},[3043,3045,3050,3052,3057,3059],{"type":47,"value":3044},"The provider is available ",{"type":41,"tag":283,"props":3046,"children":3047},{},[3048],{"type":47,"value":3049},"immediately",{"type":47,"value":3051}," after ",{"type":41,"tag":73,"props":3053,"children":3055},{"className":3054},[],[3056],{"type":47,"value":1610},{"type":47,"value":3058}," resolves — even before ",{"type":41,"tag":73,"props":3060,"children":3062},{"className":3061},[],[3063],{"type":47,"value":2308},{"type":41,"tag":67,"props":3065,"children":3066},{},[3067,3069,3075,3077,3083],{"type":47,"value":3068},"Before connection, RPC calls that require an account will fail; read-only calls (like ",{"type":41,"tag":73,"props":3070,"children":3072},{"className":3071},[],[3073],{"type":47,"value":3074},"eth_blockNumber",{"type":47,"value":3076},") work against ",{"type":41,"tag":73,"props":3078,"children":3080},{"className":3079},[],[3081],{"type":47,"value":3082},"supportedNetworks",{"type":47,"value":3084}," RPCs",{"type":41,"tag":67,"props":3086,"children":3087},{},[3088,3090,3096,3098,3104],{"type":47,"value":3089},"No more ",{"type":41,"tag":73,"props":3091,"children":3093},{"className":3092},[],[3094],{"type":47,"value":3095},"sdk.getProvider()",{"type":47,"value":3097}," returning ",{"type":41,"tag":73,"props":3099,"children":3101},{"className":3100},[],[3102],{"type":47,"value":3103},"undefined",{"type":47,"value":3105}," — the provider always exists",{"type":41,"tag":258,"props":3107,"children":3108},{},[],{"type":41,"tag":127,"props":3110,"children":3112},{"id":3111},"step-6-update-event-handling",[3113],{"type":47,"value":3114},"Step 6: Update event handling",{"type":41,"tag":57,"props":3116,"children":3117},{},[3118],{"type":41,"tag":283,"props":3119,"children":3120},{},[3121],{"type":47,"value":330},{"type":41,"tag":139,"props":3123,"children":3125},{"className":333,"code":3124,"language":335,"meta":144,"style":144},"const provider = sdk.getProvider();\nprovider.on('chainChanged', (chainId) => { \u002F* ... *\u002F });\nprovider.on('accountsChanged', (accounts) => { \u002F* ... *\u002F });\nprovider.on('disconnect', () => { \u002F* ... *\u002F });\n",[3126],{"type":41,"tag":73,"props":3127,"children":3128},{"__ignoreMap":144},[3129,3164,3239,3311],{"type":41,"tag":150,"props":3130,"children":3131},{"class":152,"line":153},[3132,3136,3140,3144,3148,3152,3156,3160],{"type":41,"tag":150,"props":3133,"children":3134},{"style":732},[3135],{"type":47,"value":735},{"type":41,"tag":150,"props":3137,"children":3138},{"style":357},[3139],{"type":47,"value":2811},{"type":41,"tag":150,"props":3141,"children":3142},{"style":351},[3143],{"type":47,"value":745},{"type":41,"tag":150,"props":3145,"children":3146},{"style":357},[3147],{"type":47,"value":1107},{"type":41,"tag":150,"props":3149,"children":3150},{"style":351},[3151],{"type":47,"value":836},{"type":41,"tag":150,"props":3153,"children":3154},{"style":753},[3155],{"type":47,"value":2112},{"type":41,"tag":150,"props":3157,"children":3158},{"style":357},[3159],{"type":47,"value":1121},{"type":41,"tag":150,"props":3161,"children":3162},{"style":351},[3163],{"type":47,"value":389},{"type":41,"tag":150,"props":3165,"children":3166},{"class":152,"line":25},[3167,3172,3176,3181,3185,3189,3194,3198,3202,3206,3210,3214,3218,3222,3227,3231,3235],{"type":41,"tag":150,"props":3168,"children":3169},{"style":357},[3170],{"type":47,"value":3171},"provider",{"type":41,"tag":150,"props":3173,"children":3174},{"style":351},[3175],{"type":47,"value":836},{"type":41,"tag":150,"props":3177,"children":3178},{"style":753},[3179],{"type":47,"value":3180},"on",{"type":41,"tag":150,"props":3182,"children":3183},{"style":357},[3184],{"type":47,"value":760},{"type":41,"tag":150,"props":3186,"children":3187},{"style":351},[3188],{"type":47,"value":384},{"type":41,"tag":150,"props":3190,"children":3191},{"style":172},[3192],{"type":47,"value":3193},"chainChanged",{"type":41,"tag":150,"props":3195,"children":3196},{"style":351},[3197],{"type":47,"value":384},{"type":41,"tag":150,"props":3199,"children":3200},{"style":351},[3201],{"type":47,"value":410},{"type":41,"tag":150,"props":3203,"children":3204},{"style":351},[3205],{"type":47,"value":1017},{"type":41,"tag":150,"props":3207,"children":3208},{"style":1020},[3209],{"type":47,"value":2331},{"type":41,"tag":150,"props":3211,"children":3212},{"style":351},[3213],{"type":47,"value":1028},{"type":41,"tag":150,"props":3215,"children":3216},{"style":732},[3217],{"type":47,"value":1033},{"type":41,"tag":150,"props":3219,"children":3220},{"style":351},[3221],{"type":47,"value":354},{"type":41,"tag":150,"props":3223,"children":3224},{"style":157},[3225],{"type":47,"value":3226}," \u002F* ... *\u002F",{"type":41,"tag":150,"props":3228,"children":3229},{"style":351},[3230],{"type":47,"value":365},{"type":41,"tag":150,"props":3232,"children":3233},{"style":357},[3234],{"type":47,"value":1028},{"type":41,"tag":150,"props":3236,"children":3237},{"style":351},[3238],{"type":47,"value":389},{"type":41,"tag":150,"props":3240,"children":3241},{"class":152,"line":188},[3242,3246,3250,3254,3258,3262,3267,3271,3275,3279,3283,3287,3291,3295,3299,3303,3307],{"type":41,"tag":150,"props":3243,"children":3244},{"style":357},[3245],{"type":47,"value":3171},{"type":41,"tag":150,"props":3247,"children":3248},{"style":351},[3249],{"type":47,"value":836},{"type":41,"tag":150,"props":3251,"children":3252},{"style":753},[3253],{"type":47,"value":3180},{"type":41,"tag":150,"props":3255,"children":3256},{"style":357},[3257],{"type":47,"value":760},{"type":41,"tag":150,"props":3259,"children":3260},{"style":351},[3261],{"type":47,"value":384},{"type":41,"tag":150,"props":3263,"children":3264},{"style":172},[3265],{"type":47,"value":3266},"accountsChanged",{"type":41,"tag":150,"props":3268,"children":3269},{"style":351},[3270],{"type":47,"value":384},{"type":41,"tag":150,"props":3272,"children":3273},{"style":351},[3274],{"type":47,"value":410},{"type":41,"tag":150,"props":3276,"children":3277},{"style":351},[3278],{"type":47,"value":1017},{"type":41,"tag":150,"props":3280,"children":3281},{"style":1020},[3282],{"type":47,"value":2323},{"type":41,"tag":150,"props":3284,"children":3285},{"style":351},[3286],{"type":47,"value":1028},{"type":41,"tag":150,"props":3288,"children":3289},{"style":732},[3290],{"type":47,"value":1033},{"type":41,"tag":150,"props":3292,"children":3293},{"style":351},[3294],{"type":47,"value":354},{"type":41,"tag":150,"props":3296,"children":3297},{"style":157},[3298],{"type":47,"value":3226},{"type":41,"tag":150,"props":3300,"children":3301},{"style":351},[3302],{"type":47,"value":365},{"type":41,"tag":150,"props":3304,"children":3305},{"style":357},[3306],{"type":47,"value":1028},{"type":41,"tag":150,"props":3308,"children":3309},{"style":351},[3310],{"type":47,"value":389},{"type":41,"tag":150,"props":3312,"children":3313},{"class":152,"line":198},[3314,3318,3322,3326,3330,3334,3339,3343,3347,3352,3356,3360,3364,3368,3372],{"type":41,"tag":150,"props":3315,"children":3316},{"style":357},[3317],{"type":47,"value":3171},{"type":41,"tag":150,"props":3319,"children":3320},{"style":351},[3321],{"type":47,"value":836},{"type":41,"tag":150,"props":3323,"children":3324},{"style":753},[3325],{"type":47,"value":3180},{"type":41,"tag":150,"props":3327,"children":3328},{"style":357},[3329],{"type":47,"value":760},{"type":41,"tag":150,"props":3331,"children":3332},{"style":351},[3333],{"type":47,"value":384},{"type":41,"tag":150,"props":3335,"children":3336},{"style":172},[3337],{"type":47,"value":3338},"disconnect",{"type":41,"tag":150,"props":3340,"children":3341},{"style":351},[3342],{"type":47,"value":384},{"type":41,"tag":150,"props":3344,"children":3345},{"style":351},[3346],{"type":47,"value":410},{"type":41,"tag":150,"props":3348,"children":3349},{"style":351},[3350],{"type":47,"value":3351}," ()",{"type":41,"tag":150,"props":3353,"children":3354},{"style":732},[3355],{"type":47,"value":1033},{"type":41,"tag":150,"props":3357,"children":3358},{"style":351},[3359],{"type":47,"value":354},{"type":41,"tag":150,"props":3361,"children":3362},{"style":157},[3363],{"type":47,"value":3226},{"type":41,"tag":150,"props":3365,"children":3366},{"style":351},[3367],{"type":47,"value":365},{"type":41,"tag":150,"props":3369,"children":3370},{"style":357},[3371],{"type":47,"value":1028},{"type":41,"tag":150,"props":3373,"children":3374},{"style":351},[3375],{"type":47,"value":389},{"type":41,"tag":57,"props":3377,"children":3378},{},[3379],{"type":41,"tag":283,"props":3380,"children":3381},{},[3382],{"type":47,"value":3383},"New (same EIP-1193 events still work):",{"type":41,"tag":139,"props":3385,"children":3387},{"className":333,"code":3386,"language":335,"meta":144,"style":144},"const provider = client.getProvider();\nprovider.on('chainChanged', (chainId) => { \u002F* ... *\u002F });\nprovider.on('accountsChanged', (accounts) => { \u002F* ... *\u002F });\nprovider.on('disconnect', () => { \u002F* ... *\u002F });\n",[3388],{"type":41,"tag":73,"props":3389,"children":3390},{"__ignoreMap":144},[3391,3426,3497,3568],{"type":41,"tag":150,"props":3392,"children":3393},{"class":152,"line":153},[3394,3398,3402,3406,3410,3414,3418,3422],{"type":41,"tag":150,"props":3395,"children":3396},{"style":732},[3397],{"type":47,"value":735},{"type":41,"tag":150,"props":3399,"children":3400},{"style":357},[3401],{"type":47,"value":2811},{"type":41,"tag":150,"props":3403,"children":3404},{"style":351},[3405],{"type":47,"value":745},{"type":41,"tag":150,"props":3407,"children":3408},{"style":357},[3409],{"type":47,"value":2223},{"type":41,"tag":150,"props":3411,"children":3412},{"style":351},[3413],{"type":47,"value":836},{"type":41,"tag":150,"props":3415,"children":3416},{"style":753},[3417],{"type":47,"value":2112},{"type":41,"tag":150,"props":3419,"children":3420},{"style":357},[3421],{"type":47,"value":1121},{"type":41,"tag":150,"props":3423,"children":3424},{"style":351},[3425],{"type":47,"value":389},{"type":41,"tag":150,"props":3427,"children":3428},{"class":152,"line":25},[3429,3433,3437,3441,3445,3449,3453,3457,3461,3465,3469,3473,3477,3481,3485,3489,3493],{"type":41,"tag":150,"props":3430,"children":3431},{"style":357},[3432],{"type":47,"value":3171},{"type":41,"tag":150,"props":3434,"children":3435},{"style":351},[3436],{"type":47,"value":836},{"type":41,"tag":150,"props":3438,"children":3439},{"style":753},[3440],{"type":47,"value":3180},{"type":41,"tag":150,"props":3442,"children":3443},{"style":357},[3444],{"type":47,"value":760},{"type":41,"tag":150,"props":3446,"children":3447},{"style":351},[3448],{"type":47,"value":384},{"type":41,"tag":150,"props":3450,"children":3451},{"style":172},[3452],{"type":47,"value":3193},{"type":41,"tag":150,"props":3454,"children":3455},{"style":351},[3456],{"type":47,"value":384},{"type":41,"tag":150,"props":3458,"children":3459},{"style":351},[3460],{"type":47,"value":410},{"type":41,"tag":150,"props":3462,"children":3463},{"style":351},[3464],{"type":47,"value":1017},{"type":41,"tag":150,"props":3466,"children":3467},{"style":1020},[3468],{"type":47,"value":2331},{"type":41,"tag":150,"props":3470,"children":3471},{"style":351},[3472],{"type":47,"value":1028},{"type":41,"tag":150,"props":3474,"children":3475},{"style":732},[3476],{"type":47,"value":1033},{"type":41,"tag":150,"props":3478,"children":3479},{"style":351},[3480],{"type":47,"value":354},{"type":41,"tag":150,"props":3482,"children":3483},{"style":157},[3484],{"type":47,"value":3226},{"type":41,"tag":150,"props":3486,"children":3487},{"style":351},[3488],{"type":47,"value":365},{"type":41,"tag":150,"props":3490,"children":3491},{"style":357},[3492],{"type":47,"value":1028},{"type":41,"tag":150,"props":3494,"children":3495},{"style":351},[3496],{"type":47,"value":389},{"type":41,"tag":150,"props":3498,"children":3499},{"class":152,"line":188},[3500,3504,3508,3512,3516,3520,3524,3528,3532,3536,3540,3544,3548,3552,3556,3560,3564],{"type":41,"tag":150,"props":3501,"children":3502},{"style":357},[3503],{"type":47,"value":3171},{"type":41,"tag":150,"props":3505,"children":3506},{"style":351},[3507],{"type":47,"value":836},{"type":41,"tag":150,"props":3509,"children":3510},{"style":753},[3511],{"type":47,"value":3180},{"type":41,"tag":150,"props":3513,"children":3514},{"style":357},[3515],{"type":47,"value":760},{"type":41,"tag":150,"props":3517,"children":3518},{"style":351},[3519],{"type":47,"value":384},{"type":41,"tag":150,"props":3521,"children":3522},{"style":172},[3523],{"type":47,"value":3266},{"type":41,"tag":150,"props":3525,"children":3526},{"style":351},[3527],{"type":47,"value":384},{"type":41,"tag":150,"props":3529,"children":3530},{"style":351},[3531],{"type":47,"value":410},{"type":41,"tag":150,"props":3533,"children":3534},{"style":351},[3535],{"type":47,"value":1017},{"type":41,"tag":150,"props":3537,"children":3538},{"style":1020},[3539],{"type":47,"value":2323},{"type":41,"tag":150,"props":3541,"children":3542},{"style":351},[3543],{"type":47,"value":1028},{"type":41,"tag":150,"props":3545,"children":3546},{"style":732},[3547],{"type":47,"value":1033},{"type":41,"tag":150,"props":3549,"children":3550},{"style":351},[3551],{"type":47,"value":354},{"type":41,"tag":150,"props":3553,"children":3554},{"style":157},[3555],{"type":47,"value":3226},{"type":41,"tag":150,"props":3557,"children":3558},{"style":351},[3559],{"type":47,"value":365},{"type":41,"tag":150,"props":3561,"children":3562},{"style":357},[3563],{"type":47,"value":1028},{"type":41,"tag":150,"props":3565,"children":3566},{"style":351},[3567],{"type":47,"value":389},{"type":41,"tag":150,"props":3569,"children":3570},{"class":152,"line":198},[3571,3575,3579,3583,3587,3591,3595,3599,3603,3607,3611,3615,3619,3623,3627],{"type":41,"tag":150,"props":3572,"children":3573},{"style":357},[3574],{"type":47,"value":3171},{"type":41,"tag":150,"props":3576,"children":3577},{"style":351},[3578],{"type":47,"value":836},{"type":41,"tag":150,"props":3580,"children":3581},{"style":753},[3582],{"type":47,"value":3180},{"type":41,"tag":150,"props":3584,"children":3585},{"style":357},[3586],{"type":47,"value":760},{"type":41,"tag":150,"props":3588,"children":3589},{"style":351},[3590],{"type":47,"value":384},{"type":41,"tag":150,"props":3592,"children":3593},{"style":172},[3594],{"type":47,"value":3338},{"type":41,"tag":150,"props":3596,"children":3597},{"style":351},[3598],{"type":47,"value":384},{"type":41,"tag":150,"props":3600,"children":3601},{"style":351},[3602],{"type":47,"value":410},{"type":41,"tag":150,"props":3604,"children":3605},{"style":351},[3606],{"type":47,"value":3351},{"type":41,"tag":150,"props":3608,"children":3609},{"style":732},[3610],{"type":47,"value":1033},{"type":41,"tag":150,"props":3612,"children":3613},{"style":351},[3614],{"type":47,"value":354},{"type":41,"tag":150,"props":3616,"children":3617},{"style":157},[3618],{"type":47,"value":3226},{"type":41,"tag":150,"props":3620,"children":3621},{"style":351},[3622],{"type":47,"value":365},{"type":41,"tag":150,"props":3624,"children":3625},{"style":357},[3626],{"type":47,"value":1028},{"type":41,"tag":150,"props":3628,"children":3629},{"style":351},[3630],{"type":47,"value":389},{"type":41,"tag":57,"props":3632,"children":3633},{},[3634],{"type":41,"tag":283,"props":3635,"children":3636},{},[3637],{"type":47,"value":3638},"New (additional SDK-level events via constructor):",{"type":41,"tag":139,"props":3640,"children":3642},{"className":333,"code":3641,"language":335,"meta":144,"style":144},"const client = await createEVMClient({\n  dapp: { name: 'My DApp' },\n  eventHandlers: {\n    displayUri: (uri) => { \u002F* render QR code *\u002F },\n  },\n});\n",[3643],{"type":41,"tag":73,"props":3644,"children":3645},{"__ignoreMap":144},[3646,3677,3718,3734,3776,3783],{"type":41,"tag":150,"props":3647,"children":3648},{"class":152,"line":153},[3649,3653,3657,3661,3665,3669,3673],{"type":41,"tag":150,"props":3650,"children":3651},{"style":732},[3652],{"type":47,"value":735},{"type":41,"tag":150,"props":3654,"children":3655},{"style":357},[3656],{"type":47,"value":1152},{"type":41,"tag":150,"props":3658,"children":3659},{"style":351},[3660],{"type":47,"value":745},{"type":41,"tag":150,"props":3662,"children":3663},{"style":345},[3664],{"type":47,"value":1161},{"type":41,"tag":150,"props":3666,"children":3667},{"style":753},[3668],{"type":47,"value":470},{"type":41,"tag":150,"props":3670,"children":3671},{"style":357},[3672],{"type":47,"value":760},{"type":41,"tag":150,"props":3674,"children":3675},{"style":351},[3676],{"type":47,"value":765},{"type":41,"tag":150,"props":3678,"children":3679},{"class":152,"line":25},[3680,3684,3688,3692,3697,3701,3705,3709,3713],{"type":41,"tag":150,"props":3681,"children":3682},{"style":771},[3683],{"type":47,"value":1181},{"type":41,"tag":150,"props":3685,"children":3686},{"style":351},[3687],{"type":47,"value":779},{"type":41,"tag":150,"props":3689,"children":3690},{"style":351},[3691],{"type":47,"value":354},{"type":41,"tag":150,"props":3693,"children":3694},{"style":771},[3695],{"type":47,"value":3696}," name",{"type":41,"tag":150,"props":3698,"children":3699},{"style":351},[3700],{"type":47,"value":779},{"type":41,"tag":150,"props":3702,"children":3703},{"style":351},[3704],{"type":47,"value":375},{"type":41,"tag":150,"props":3706,"children":3707},{"style":172},[3708],{"type":47,"value":805},{"type":41,"tag":150,"props":3710,"children":3711},{"style":351},[3712],{"type":47,"value":384},{"type":41,"tag":150,"props":3714,"children":3715},{"style":351},[3716],{"type":47,"value":3717}," },\n",{"type":41,"tag":150,"props":3719,"children":3720},{"class":152,"line":188},[3721,3726,3730],{"type":41,"tag":150,"props":3722,"children":3723},{"style":771},[3724],{"type":47,"value":3725},"  eventHandlers",{"type":41,"tag":150,"props":3727,"children":3728},{"style":351},[3729],{"type":47,"value":779},{"type":41,"tag":150,"props":3731,"children":3732},{"style":351},[3733],{"type":47,"value":784},{"type":41,"tag":150,"props":3735,"children":3736},{"class":152,"line":198},[3737,3742,3746,3750,3755,3759,3763,3767,3772],{"type":41,"tag":150,"props":3738,"children":3739},{"style":753},[3740],{"type":47,"value":3741},"    displayUri",{"type":41,"tag":150,"props":3743,"children":3744},{"style":351},[3745],{"type":47,"value":779},{"type":41,"tag":150,"props":3747,"children":3748},{"style":351},[3749],{"type":47,"value":1017},{"type":41,"tag":150,"props":3751,"children":3752},{"style":1020},[3753],{"type":47,"value":3754},"uri",{"type":41,"tag":150,"props":3756,"children":3757},{"style":351},[3758],{"type":47,"value":1028},{"type":41,"tag":150,"props":3760,"children":3761},{"style":732},[3762],{"type":47,"value":1033},{"type":41,"tag":150,"props":3764,"children":3765},{"style":351},[3766],{"type":47,"value":354},{"type":41,"tag":150,"props":3768,"children":3769},{"style":157},[3770],{"type":47,"value":3771}," \u002F* render QR code *\u002F",{"type":41,"tag":150,"props":3773,"children":3774},{"style":351},[3775],{"type":47,"value":3717},{"type":41,"tag":150,"props":3777,"children":3778},{"class":152,"line":207},[3779],{"type":41,"tag":150,"props":3780,"children":3781},{"style":351},[3782],{"type":47,"value":862},{"type":41,"tag":150,"props":3784,"children":3785},{"class":152,"line":225},[3786,3790,3794],{"type":41,"tag":150,"props":3787,"children":3788},{"style":351},[3789],{"type":47,"value":1085},{"type":41,"tag":150,"props":3791,"children":3792},{"style":357},[3793],{"type":47,"value":1028},{"type":41,"tag":150,"props":3795,"children":3796},{"style":351},[3797],{"type":47,"value":389},{"type":41,"tag":57,"props":3799,"children":3800},{},[3801],{"type":47,"value":3802},"Or subscribe on the EIP-1193 provider after creation:",{"type":41,"tag":139,"props":3804,"children":3806},{"className":333,"code":3805,"language":335,"meta":144,"style":144},"const provider = client.getProvider();\nprovider.on('display_uri', (uri) => { \u002F* ... *\u002F });\n",[3807],{"type":41,"tag":73,"props":3808,"children":3809},{"__ignoreMap":144},[3810,3845],{"type":41,"tag":150,"props":3811,"children":3812},{"class":152,"line":153},[3813,3817,3821,3825,3829,3833,3837,3841],{"type":41,"tag":150,"props":3814,"children":3815},{"style":732},[3816],{"type":47,"value":735},{"type":41,"tag":150,"props":3818,"children":3819},{"style":357},[3820],{"type":47,"value":2811},{"type":41,"tag":150,"props":3822,"children":3823},{"style":351},[3824],{"type":47,"value":745},{"type":41,"tag":150,"props":3826,"children":3827},{"style":357},[3828],{"type":47,"value":2223},{"type":41,"tag":150,"props":3830,"children":3831},{"style":351},[3832],{"type":47,"value":836},{"type":41,"tag":150,"props":3834,"children":3835},{"style":753},[3836],{"type":47,"value":2112},{"type":41,"tag":150,"props":3838,"children":3839},{"style":357},[3840],{"type":47,"value":1121},{"type":41,"tag":150,"props":3842,"children":3843},{"style":351},[3844],{"type":47,"value":389},{"type":41,"tag":150,"props":3846,"children":3847},{"class":152,"line":25},[3848,3852,3856,3860,3864,3868,3873,3877,3881,3885,3889,3893,3897,3901,3905,3909,3913],{"type":41,"tag":150,"props":3849,"children":3850},{"style":357},[3851],{"type":47,"value":3171},{"type":41,"tag":150,"props":3853,"children":3854},{"style":351},[3855],{"type":47,"value":836},{"type":41,"tag":150,"props":3857,"children":3858},{"style":753},[3859],{"type":47,"value":3180},{"type":41,"tag":150,"props":3861,"children":3862},{"style":357},[3863],{"type":47,"value":760},{"type":41,"tag":150,"props":3865,"children":3866},{"style":351},[3867],{"type":47,"value":384},{"type":41,"tag":150,"props":3869,"children":3870},{"style":172},[3871],{"type":47,"value":3872},"display_uri",{"type":41,"tag":150,"props":3874,"children":3875},{"style":351},[3876],{"type":47,"value":384},{"type":41,"tag":150,"props":3878,"children":3879},{"style":351},[3880],{"type":47,"value":410},{"type":41,"tag":150,"props":3882,"children":3883},{"style":351},[3884],{"type":47,"value":1017},{"type":41,"tag":150,"props":3886,"children":3887},{"style":1020},[3888],{"type":47,"value":3754},{"type":41,"tag":150,"props":3890,"children":3891},{"style":351},[3892],{"type":47,"value":1028},{"type":41,"tag":150,"props":3894,"children":3895},{"style":732},[3896],{"type":47,"value":1033},{"type":41,"tag":150,"props":3898,"children":3899},{"style":351},[3900],{"type":47,"value":354},{"type":41,"tag":150,"props":3902,"children":3903},{"style":157},[3904],{"type":47,"value":3226},{"type":41,"tag":150,"props":3906,"children":3907},{"style":351},[3908],{"type":47,"value":365},{"type":41,"tag":150,"props":3910,"children":3911},{"style":357},[3912],{"type":47,"value":1028},{"type":41,"tag":150,"props":3914,"children":3915},{"style":351},[3916],{"type":47,"value":389},{"type":41,"tag":57,"props":3918,"children":3919},{},[3920,3922,3928],{"type":47,"value":3921},"For ",{"type":41,"tag":73,"props":3923,"children":3925},{"className":3924},[],[3926],{"type":47,"value":3927},"wallet_sessionChanged",{"type":47,"value":3929},", use the multichain client directly:",{"type":41,"tag":139,"props":3931,"children":3933},{"className":333,"code":3932,"language":335,"meta":144,"style":144},"const client = await createMultichainClient({ \u002F* ... *\u002F });\nclient.on('wallet_sessionChanged', (session) => { \u002F* ... *\u002F });\n",[3934],{"type":41,"tag":73,"props":3935,"children":3936},{"__ignoreMap":144},[3937,3984],{"type":41,"tag":150,"props":3938,"children":3939},{"class":152,"line":153},[3940,3944,3948,3952,3956,3960,3964,3968,3972,3976,3980],{"type":41,"tag":150,"props":3941,"children":3942},{"style":732},[3943],{"type":47,"value":735},{"type":41,"tag":150,"props":3945,"children":3946},{"style":357},[3947],{"type":47,"value":1152},{"type":41,"tag":150,"props":3949,"children":3950},{"style":351},[3951],{"type":47,"value":745},{"type":41,"tag":150,"props":3953,"children":3954},{"style":345},[3955],{"type":47,"value":1161},{"type":41,"tag":150,"props":3957,"children":3958},{"style":753},[3959],{"type":47,"value":535},{"type":41,"tag":150,"props":3961,"children":3962},{"style":357},[3963],{"type":47,"value":760},{"type":41,"tag":150,"props":3965,"children":3966},{"style":351},[3967],{"type":47,"value":1312},{"type":41,"tag":150,"props":3969,"children":3970},{"style":157},[3971],{"type":47,"value":3226},{"type":41,"tag":150,"props":3973,"children":3974},{"style":351},[3975],{"type":47,"value":365},{"type":41,"tag":150,"props":3977,"children":3978},{"style":357},[3979],{"type":47,"value":1028},{"type":41,"tag":150,"props":3981,"children":3982},{"style":351},[3983],{"type":47,"value":389},{"type":41,"tag":150,"props":3985,"children":3986},{"class":152,"line":25},[3987,3992,3996,4000,4004,4008,4012,4016,4020,4024,4029,4033,4037,4041,4045,4049,4053],{"type":41,"tag":150,"props":3988,"children":3989},{"style":357},[3990],{"type":47,"value":3991},"client",{"type":41,"tag":150,"props":3993,"children":3994},{"style":351},[3995],{"type":47,"value":836},{"type":41,"tag":150,"props":3997,"children":3998},{"style":753},[3999],{"type":47,"value":3180},{"type":41,"tag":150,"props":4001,"children":4002},{"style":357},[4003],{"type":47,"value":760},{"type":41,"tag":150,"props":4005,"children":4006},{"style":351},[4007],{"type":47,"value":384},{"type":41,"tag":150,"props":4009,"children":4010},{"style":172},[4011],{"type":47,"value":3927},{"type":41,"tag":150,"props":4013,"children":4014},{"style":351},[4015],{"type":47,"value":384},{"type":41,"tag":150,"props":4017,"children":4018},{"style":351},[4019],{"type":47,"value":410},{"type":41,"tag":150,"props":4021,"children":4022},{"style":351},[4023],{"type":47,"value":1017},{"type":41,"tag":150,"props":4025,"children":4026},{"style":1020},[4027],{"type":47,"value":4028},"session",{"type":41,"tag":150,"props":4030,"children":4031},{"style":351},[4032],{"type":47,"value":1028},{"type":41,"tag":150,"props":4034,"children":4035},{"style":732},[4036],{"type":47,"value":1033},{"type":41,"tag":150,"props":4038,"children":4039},{"style":351},[4040],{"type":47,"value":354},{"type":41,"tag":150,"props":4042,"children":4043},{"style":157},[4044],{"type":47,"value":3226},{"type":41,"tag":150,"props":4046,"children":4047},{"style":351},[4048],{"type":47,"value":365},{"type":41,"tag":150,"props":4050,"children":4051},{"style":357},[4052],{"type":47,"value":1028},{"type":41,"tag":150,"props":4054,"children":4055},{"style":351},[4056],{"type":47,"value":389},{"type":41,"tag":258,"props":4058,"children":4059},{},[],{"type":41,"tag":127,"props":4061,"children":4063},{"id":4062},"step-7-new-capabilities-to-adopt",[4064],{"type":47,"value":4065},"Step 7: New capabilities to adopt",{"type":41,"tag":57,"props":4067,"children":4068},{},[4069,4071,4076],{"type":47,"value":4070},"These features are ",{"type":41,"tag":283,"props":4072,"children":4073},{},[4074],{"type":47,"value":4075},"new",{"type":47,"value":4077}," in the MetaMask Connect packages and have no old-SDK equivalent:",{"type":41,"tag":1576,"props":4079,"children":4080},{},[4081,4097],{"type":41,"tag":1580,"props":4082,"children":4083},{},[4084],{"type":41,"tag":1584,"props":4085,"children":4086},{},[4087,4092],{"type":41,"tag":1588,"props":4088,"children":4089},{},[4090],{"type":47,"value":4091},"Capability",{"type":41,"tag":1588,"props":4093,"children":4094},{},[4095],{"type":47,"value":4096},"Description",{"type":41,"tag":1618,"props":4098,"children":4099},{},[4100,4122,4148,4177,4196,4215,4237,4260],{"type":41,"tag":1584,"props":4101,"children":4102},{},[4103,4111],{"type":41,"tag":1625,"props":4104,"children":4105},{},[4106],{"type":41,"tag":283,"props":4107,"children":4108},{},[4109],{"type":47,"value":4110},"Multichain client",{"type":41,"tag":1625,"props":4112,"children":4113},{},[4114,4120],{"type":41,"tag":73,"props":4115,"children":4117},{"className":4116},[],[4118],{"type":47,"value":4119},"createMultichainClient",{"type":47,"value":4121}," supports CAIP-25 scopes across EVM and non-EVM chains",{"type":41,"tag":1584,"props":4123,"children":4124},{},[4125,4137],{"type":41,"tag":1625,"props":4126,"children":4127},{},[4128],{"type":41,"tag":283,"props":4129,"children":4130},{},[4131],{"type":41,"tag":73,"props":4132,"children":4134},{"className":4133},[],[4135],{"type":47,"value":4136},"invokeMethod",{"type":41,"tag":1625,"props":4138,"children":4139},{},[4140,4142],{"type":47,"value":4141},"Call RPC methods on specific CAIP scopes: ",{"type":41,"tag":73,"props":4143,"children":4145},{"className":4144},[],[4146],{"type":47,"value":4147},"client.invokeMethod({ scope: 'eip155:1', request: { method, params } })",{"type":41,"tag":1584,"props":4149,"children":4150},{},[4151,4159],{"type":41,"tag":1625,"props":4152,"children":4153},{},[4154],{"type":41,"tag":283,"props":4155,"children":4156},{},[4157],{"type":47,"value":4158},"Solana support",{"type":41,"tag":1625,"props":4160,"children":4161},{},[4162,4168,4170,4175],{"type":41,"tag":73,"props":4163,"children":4165},{"className":4164},[],[4166],{"type":47,"value":4167},"createSolanaClient",{"type":47,"value":4169}," from ",{"type":41,"tag":73,"props":4171,"children":4173},{"className":4172},[],[4174],{"type":47,"value":607},{"type":47,"value":4176}," with wallet-standard adapter",{"type":41,"tag":1584,"props":4178,"children":4179},{},[4180,4191],{"type":41,"tag":1625,"props":4181,"children":4182},{},[4183],{"type":41,"tag":283,"props":4184,"children":4185},{},[4186],{"type":41,"tag":73,"props":4187,"children":4189},{"className":4188},[],[4190],{"type":47,"value":2354},{"type":41,"tag":1625,"props":4192,"children":4193},{},[4194],{"type":47,"value":4195},"Connect and sign a message in a single user approval",{"type":41,"tag":1584,"props":4197,"children":4198},{},[4199,4210],{"type":41,"tag":1625,"props":4200,"children":4201},{},[4202],{"type":41,"tag":283,"props":4203,"children":4204},{},[4205],{"type":41,"tag":73,"props":4206,"children":4208},{"className":4207},[],[4209],{"type":47,"value":2520},{"type":41,"tag":1625,"props":4211,"children":4212},{},[4213],{"type":47,"value":4214},"Connect and execute any RPC method in a single user approval",{"type":41,"tag":1584,"props":4216,"children":4217},{},[4218,4226],{"type":41,"tag":1625,"props":4219,"children":4220},{},[4221],{"type":41,"tag":283,"props":4222,"children":4223},{},[4224],{"type":47,"value":4225},"Partial disconnect",{"type":41,"tag":1625,"props":4227,"children":4228},{},[4229,4235],{"type":41,"tag":73,"props":4230,"children":4232},{"className":4231},[],[4233],{"type":47,"value":4234},"disconnect(scopes)",{"type":47,"value":4236}," is available on the multichain client to revoke specific CAIP scopes while keeping others active",{"type":41,"tag":1584,"props":4238,"children":4239},{},[4240,4248],{"type":41,"tag":1625,"props":4241,"children":4242},{},[4243],{"type":41,"tag":283,"props":4244,"children":4245},{},[4246],{"type":47,"value":4247},"Singleton client",{"type":41,"tag":1625,"props":4249,"children":4250},{},[4251,4253,4258],{"type":47,"value":4252},"Subsequent ",{"type":41,"tag":73,"props":4254,"children":4256},{"className":4255},[],[4257],{"type":47,"value":4119},{"type":47,"value":4259}," calls merge into the existing instance",{"type":41,"tag":1584,"props":4261,"children":4262},{},[4263,4274],{"type":41,"tag":1625,"props":4264,"children":4265},{},[4266],{"type":41,"tag":283,"props":4267,"children":4268},{},[4269],{"type":41,"tag":73,"props":4270,"children":4272},{"className":4271},[],[4273],{"type":47,"value":3927},{"type":41,"tag":1625,"props":4275,"children":4276},{},[4277],{"type":47,"value":4278},"Multichain client event fired when session state changes or is restored",{"type":41,"tag":258,"props":4280,"children":4281},{},[],{"type":41,"tag":127,"props":4283,"children":4285},{"id":4284},"step-8-wagmi-migration",[4286],{"type":47,"value":4287},"Step 8: Wagmi migration",{"type":41,"tag":57,"props":4289,"children":4290},{},[4291],{"type":41,"tag":283,"props":4292,"children":4293},{},[4294],{"type":47,"value":330},{"type":41,"tag":139,"props":4296,"children":4298},{"className":333,"code":4297,"language":335,"meta":144,"style":144},"\u002F\u002F Old @metamask\u002Fsdk constructor takes flat options (no `options` wrapper):\nimport { MetaMaskSDK } from '@metamask\u002Fsdk';\n\nconst sdk = new MetaMaskSDK({\n  dappMetadata: { name: 'My DApp', url: window.location.href },\n});\n\u002F\u002F (or the legacy wagmi `metaMask()` connector that wrapped @metamask\u002Fsdk)\n",[4299],{"type":41,"tag":73,"props":4300,"children":4301},{"__ignoreMap":144},[4302,4310,4349,4356,4387,4461,4476],{"type":41,"tag":150,"props":4303,"children":4304},{"class":152,"line":153},[4305],{"type":41,"tag":150,"props":4306,"children":4307},{"style":157},[4308],{"type":47,"value":4309},"\u002F\u002F Old @metamask\u002Fsdk constructor takes flat options (no `options` wrapper):\n",{"type":41,"tag":150,"props":4311,"children":4312},{"class":152,"line":25},[4313,4317,4321,4325,4329,4333,4337,4341,4345],{"type":41,"tag":150,"props":4314,"children":4315},{"style":345},[4316],{"type":47,"value":348},{"type":41,"tag":150,"props":4318,"children":4319},{"style":351},[4320],{"type":47,"value":354},{"type":41,"tag":150,"props":4322,"children":4323},{"style":357},[4324],{"type":47,"value":360},{"type":41,"tag":150,"props":4326,"children":4327},{"style":351},[4328],{"type":47,"value":365},{"type":41,"tag":150,"props":4330,"children":4331},{"style":345},[4332],{"type":47,"value":370},{"type":41,"tag":150,"props":4334,"children":4335},{"style":351},[4336],{"type":47,"value":375},{"type":41,"tag":150,"props":4338,"children":4339},{"style":172},[4340],{"type":47,"value":78},{"type":41,"tag":150,"props":4342,"children":4343},{"style":351},[4344],{"type":47,"value":384},{"type":41,"tag":150,"props":4346,"children":4347},{"style":351},[4348],{"type":47,"value":389},{"type":41,"tag":150,"props":4350,"children":4351},{"class":152,"line":188},[4352],{"type":41,"tag":150,"props":4353,"children":4354},{"emptyLinePlaceholder":192},[4355],{"type":47,"value":195},{"type":41,"tag":150,"props":4357,"children":4358},{"class":152,"line":198},[4359,4363,4367,4371,4375,4379,4383],{"type":41,"tag":150,"props":4360,"children":4361},{"style":732},[4362],{"type":47,"value":735},{"type":41,"tag":150,"props":4364,"children":4365},{"style":357},[4366],{"type":47,"value":740},{"type":41,"tag":150,"props":4368,"children":4369},{"style":351},[4370],{"type":47,"value":745},{"type":41,"tag":150,"props":4372,"children":4373},{"style":351},[4374],{"type":47,"value":750},{"type":41,"tag":150,"props":4376,"children":4377},{"style":753},[4378],{"type":47,"value":360},{"type":41,"tag":150,"props":4380,"children":4381},{"style":357},[4382],{"type":47,"value":760},{"type":41,"tag":150,"props":4384,"children":4385},{"style":351},[4386],{"type":47,"value":765},{"type":41,"tag":150,"props":4388,"children":4389},{"class":152,"line":207},[4390,4394,4398,4402,4406,4410,4414,4418,4422,4426,4431,4435,4439,4443,4447,4451,4456],{"type":41,"tag":150,"props":4391,"children":4392},{"style":771},[4393],{"type":47,"value":774},{"type":41,"tag":150,"props":4395,"children":4396},{"style":351},[4397],{"type":47,"value":779},{"type":41,"tag":150,"props":4399,"children":4400},{"style":351},[4401],{"type":47,"value":354},{"type":41,"tag":150,"props":4403,"children":4404},{"style":771},[4405],{"type":47,"value":3696},{"type":41,"tag":150,"props":4407,"children":4408},{"style":351},[4409],{"type":47,"value":779},{"type":41,"tag":150,"props":4411,"children":4412},{"style":351},[4413],{"type":47,"value":375},{"type":41,"tag":150,"props":4415,"children":4416},{"style":172},[4417],{"type":47,"value":805},{"type":41,"tag":150,"props":4419,"children":4420},{"style":351},[4421],{"type":47,"value":384},{"type":41,"tag":150,"props":4423,"children":4424},{"style":351},[4425],{"type":47,"value":410},{"type":41,"tag":150,"props":4427,"children":4428},{"style":771},[4429],{"type":47,"value":4430}," url",{"type":41,"tag":150,"props":4432,"children":4433},{"style":351},[4434],{"type":47,"value":779},{"type":41,"tag":150,"props":4436,"children":4437},{"style":357},[4438],{"type":47,"value":831},{"type":41,"tag":150,"props":4440,"children":4441},{"style":351},[4442],{"type":47,"value":836},{"type":41,"tag":150,"props":4444,"children":4445},{"style":357},[4446],{"type":47,"value":841},{"type":41,"tag":150,"props":4448,"children":4449},{"style":351},[4450],{"type":47,"value":836},{"type":41,"tag":150,"props":4452,"children":4453},{"style":357},[4454],{"type":47,"value":4455},"href ",{"type":41,"tag":150,"props":4457,"children":4458},{"style":351},[4459],{"type":47,"value":4460},"},\n",{"type":41,"tag":150,"props":4462,"children":4463},{"class":152,"line":225},[4464,4468,4472],{"type":41,"tag":150,"props":4465,"children":4466},{"style":351},[4467],{"type":47,"value":1085},{"type":41,"tag":150,"props":4469,"children":4470},{"style":357},[4471],{"type":47,"value":1028},{"type":41,"tag":150,"props":4473,"children":4474},{"style":351},[4475],{"type":47,"value":389},{"type":41,"tag":150,"props":4477,"children":4478},{"class":152,"line":242},[4479],{"type":41,"tag":150,"props":4480,"children":4481},{"style":157},[4482],{"type":47,"value":4483},"\u002F\u002F (or the legacy wagmi `metaMask()` connector that wrapped @metamask\u002Fsdk)\n",{"type":41,"tag":57,"props":4485,"children":4486},{},[4487],{"type":41,"tag":283,"props":4488,"children":4489},{},[4490],{"type":47,"value":1133},{"type":41,"tag":139,"props":4492,"children":4494},{"className":333,"code":4493,"language":335,"meta":144,"style":144},"import { createConfig, http } from 'wagmi';\nimport { mainnet, sepolia } from 'wagmi\u002Fchains';\nimport { metaMask } from 'wagmi\u002Fconnectors';\n\nexport const wagmiConfig = createConfig({\n  chains: [mainnet, sepolia],\n  connectors: [\n    metaMask({\n      dapp: {\n        name: 'My DApp',\n        url: typeof window !== 'undefined' ? window.location.href : undefined,\n      },\n    }),\n  ],\n  transports: {\n    [mainnet.id]: http(),\n    [sepolia.id]: http(),\n  },\n});\n",[4495],{"type":41,"tag":73,"props":4496,"children":4497},{"__ignoreMap":144},[4498,4548,4598,4637,4644,4678,4708,4725,4741,4757,4785,4858,4866,4882,4894,4910,4952,4992,4999],{"type":41,"tag":150,"props":4499,"children":4500},{"class":152,"line":153},[4501,4505,4509,4514,4518,4523,4527,4531,4535,4540,4544],{"type":41,"tag":150,"props":4502,"children":4503},{"style":345},[4504],{"type":47,"value":348},{"type":41,"tag":150,"props":4506,"children":4507},{"style":351},[4508],{"type":47,"value":354},{"type":41,"tag":150,"props":4510,"children":4511},{"style":357},[4512],{"type":47,"value":4513}," createConfig",{"type":41,"tag":150,"props":4515,"children":4516},{"style":351},[4517],{"type":47,"value":410},{"type":41,"tag":150,"props":4519,"children":4520},{"style":357},[4521],{"type":47,"value":4522}," http",{"type":41,"tag":150,"props":4524,"children":4525},{"style":351},[4526],{"type":47,"value":365},{"type":41,"tag":150,"props":4528,"children":4529},{"style":345},[4530],{"type":47,"value":370},{"type":41,"tag":150,"props":4532,"children":4533},{"style":351},[4534],{"type":47,"value":375},{"type":41,"tag":150,"props":4536,"children":4537},{"style":172},[4538],{"type":47,"value":4539},"wagmi",{"type":41,"tag":150,"props":4541,"children":4542},{"style":351},[4543],{"type":47,"value":384},{"type":41,"tag":150,"props":4545,"children":4546},{"style":351},[4547],{"type":47,"value":389},{"type":41,"tag":150,"props":4549,"children":4550},{"class":152,"line":25},[4551,4555,4559,4564,4568,4573,4577,4581,4585,4590,4594],{"type":41,"tag":150,"props":4552,"children":4553},{"style":345},[4554],{"type":47,"value":348},{"type":41,"tag":150,"props":4556,"children":4557},{"style":351},[4558],{"type":47,"value":354},{"type":41,"tag":150,"props":4560,"children":4561},{"style":357},[4562],{"type":47,"value":4563}," mainnet",{"type":41,"tag":150,"props":4565,"children":4566},{"style":351},[4567],{"type":47,"value":410},{"type":41,"tag":150,"props":4569,"children":4570},{"style":357},[4571],{"type":47,"value":4572}," sepolia",{"type":41,"tag":150,"props":4574,"children":4575},{"style":351},[4576],{"type":47,"value":365},{"type":41,"tag":150,"props":4578,"children":4579},{"style":345},[4580],{"type":47,"value":370},{"type":41,"tag":150,"props":4582,"children":4583},{"style":351},[4584],{"type":47,"value":375},{"type":41,"tag":150,"props":4586,"children":4587},{"style":172},[4588],{"type":47,"value":4589},"wagmi\u002Fchains",{"type":41,"tag":150,"props":4591,"children":4592},{"style":351},[4593],{"type":47,"value":384},{"type":41,"tag":150,"props":4595,"children":4596},{"style":351},[4597],{"type":47,"value":389},{"type":41,"tag":150,"props":4599,"children":4600},{"class":152,"line":188},[4601,4605,4609,4613,4617,4621,4625,4629,4633],{"type":41,"tag":150,"props":4602,"children":4603},{"style":345},[4604],{"type":47,"value":348},{"type":41,"tag":150,"props":4606,"children":4607},{"style":351},[4608],{"type":47,"value":354},{"type":41,"tag":150,"props":4610,"children":4611},{"style":357},[4612],{"type":47,"value":678},{"type":41,"tag":150,"props":4614,"children":4615},{"style":351},[4616],{"type":47,"value":365},{"type":41,"tag":150,"props":4618,"children":4619},{"style":345},[4620],{"type":47,"value":370},{"type":41,"tag":150,"props":4622,"children":4623},{"style":351},[4624],{"type":47,"value":375},{"type":41,"tag":150,"props":4626,"children":4627},{"style":172},[4628],{"type":47,"value":695},{"type":41,"tag":150,"props":4630,"children":4631},{"style":351},[4632],{"type":47,"value":384},{"type":41,"tag":150,"props":4634,"children":4635},{"style":351},[4636],{"type":47,"value":389},{"type":41,"tag":150,"props":4638,"children":4639},{"class":152,"line":198},[4640],{"type":41,"tag":150,"props":4641,"children":4642},{"emptyLinePlaceholder":192},[4643],{"type":47,"value":195},{"type":41,"tag":150,"props":4645,"children":4646},{"class":152,"line":207},[4647,4652,4657,4662,4666,4670,4674],{"type":41,"tag":150,"props":4648,"children":4649},{"style":345},[4650],{"type":47,"value":4651},"export",{"type":41,"tag":150,"props":4653,"children":4654},{"style":732},[4655],{"type":47,"value":4656}," const",{"type":41,"tag":150,"props":4658,"children":4659},{"style":357},[4660],{"type":47,"value":4661}," wagmiConfig ",{"type":41,"tag":150,"props":4663,"children":4664},{"style":351},[4665],{"type":47,"value":745},{"type":41,"tag":150,"props":4667,"children":4668},{"style":753},[4669],{"type":47,"value":4513},{"type":41,"tag":150,"props":4671,"children":4672},{"style":357},[4673],{"type":47,"value":760},{"type":41,"tag":150,"props":4675,"children":4676},{"style":351},[4677],{"type":47,"value":765},{"type":41,"tag":150,"props":4679,"children":4680},{"class":152,"line":225},[4681,4686,4690,4695,4699,4704],{"type":41,"tag":150,"props":4682,"children":4683},{"style":771},[4684],{"type":47,"value":4685},"  chains",{"type":41,"tag":150,"props":4687,"children":4688},{"style":351},[4689],{"type":47,"value":779},{"type":41,"tag":150,"props":4691,"children":4692},{"style":357},[4693],{"type":47,"value":4694}," [mainnet",{"type":41,"tag":150,"props":4696,"children":4697},{"style":351},[4698],{"type":47,"value":410},{"type":41,"tag":150,"props":4700,"children":4701},{"style":357},[4702],{"type":47,"value":4703}," sepolia]",{"type":41,"tag":150,"props":4705,"children":4706},{"style":351},[4707],{"type":47,"value":814},{"type":41,"tag":150,"props":4709,"children":4710},{"class":152,"line":242},[4711,4716,4720],{"type":41,"tag":150,"props":4712,"children":4713},{"style":771},[4714],{"type":47,"value":4715},"  connectors",{"type":41,"tag":150,"props":4717,"children":4718},{"style":351},[4719],{"type":47,"value":779},{"type":41,"tag":150,"props":4721,"children":4722},{"style":357},[4723],{"type":47,"value":4724}," [\n",{"type":41,"tag":150,"props":4726,"children":4727},{"class":152,"line":910},[4728,4733,4737],{"type":41,"tag":150,"props":4729,"children":4730},{"style":753},[4731],{"type":47,"value":4732},"    metaMask",{"type":41,"tag":150,"props":4734,"children":4735},{"style":357},[4736],{"type":47,"value":760},{"type":41,"tag":150,"props":4738,"children":4739},{"style":351},[4740],{"type":47,"value":765},{"type":41,"tag":150,"props":4742,"children":4743},{"class":152,"line":949},[4744,4749,4753],{"type":41,"tag":150,"props":4745,"children":4746},{"style":771},[4747],{"type":47,"value":4748},"      dapp",{"type":41,"tag":150,"props":4750,"children":4751},{"style":351},[4752],{"type":47,"value":779},{"type":41,"tag":150,"props":4754,"children":4755},{"style":351},[4756],{"type":47,"value":784},{"type":41,"tag":150,"props":4758,"children":4759},{"class":152,"line":957},[4760,4765,4769,4773,4777,4781],{"type":41,"tag":150,"props":4761,"children":4762},{"style":771},[4763],{"type":47,"value":4764},"        name",{"type":41,"tag":150,"props":4766,"children":4767},{"style":351},[4768],{"type":47,"value":779},{"type":41,"tag":150,"props":4770,"children":4771},{"style":351},[4772],{"type":47,"value":375},{"type":41,"tag":150,"props":4774,"children":4775},{"style":172},[4776],{"type":47,"value":805},{"type":41,"tag":150,"props":4778,"children":4779},{"style":351},[4780],{"type":47,"value":384},{"type":41,"tag":150,"props":4782,"children":4783},{"style":351},[4784],{"type":47,"value":814},{"type":41,"tag":150,"props":4786,"children":4787},{"class":152,"line":980},[4788,4793,4797,4802,4807,4812,4816,4820,4824,4829,4833,4837,4841,4845,4849,4853],{"type":41,"tag":150,"props":4789,"children":4790},{"style":771},[4791],{"type":47,"value":4792},"        url",{"type":41,"tag":150,"props":4794,"children":4795},{"style":351},[4796],{"type":47,"value":779},{"type":41,"tag":150,"props":4798,"children":4799},{"style":351},[4800],{"type":47,"value":4801}," typeof",{"type":41,"tag":150,"props":4803,"children":4804},{"style":357},[4805],{"type":47,"value":4806}," window ",{"type":41,"tag":150,"props":4808,"children":4809},{"style":351},[4810],{"type":47,"value":4811},"!==",{"type":41,"tag":150,"props":4813,"children":4814},{"style":351},[4815],{"type":47,"value":375},{"type":41,"tag":150,"props":4817,"children":4818},{"style":172},[4819],{"type":47,"value":3103},{"type":41,"tag":150,"props":4821,"children":4822},{"style":351},[4823],{"type":47,"value":384},{"type":41,"tag":150,"props":4825,"children":4826},{"style":351},[4827],{"type":47,"value":4828}," ?",{"type":41,"tag":150,"props":4830,"children":4831},{"style":357},[4832],{"type":47,"value":831},{"type":41,"tag":150,"props":4834,"children":4835},{"style":351},[4836],{"type":47,"value":836},{"type":41,"tag":150,"props":4838,"children":4839},{"style":357},[4840],{"type":47,"value":841},{"type":41,"tag":150,"props":4842,"children":4843},{"style":351},[4844],{"type":47,"value":836},{"type":41,"tag":150,"props":4846,"children":4847},{"style":357},[4848],{"type":47,"value":4455},{"type":41,"tag":150,"props":4850,"children":4851},{"style":351},[4852],{"type":47,"value":779},{"type":41,"tag":150,"props":4854,"children":4855},{"style":351},[4856],{"type":47,"value":4857}," undefined,\n",{"type":41,"tag":150,"props":4859,"children":4860},{"class":152,"line":1002},[4861],{"type":41,"tag":150,"props":4862,"children":4863},{"style":351},[4864],{"type":47,"value":4865},"      },\n",{"type":41,"tag":150,"props":4867,"children":4868},{"class":152,"line":1079},[4869,4874,4878],{"type":41,"tag":150,"props":4870,"children":4871},{"style":351},[4872],{"type":47,"value":4873},"    }",{"type":41,"tag":150,"props":4875,"children":4876},{"style":357},[4877],{"type":47,"value":1028},{"type":41,"tag":150,"props":4879,"children":4880},{"style":351},[4881],{"type":47,"value":814},{"type":41,"tag":150,"props":4883,"children":4884},{"class":152,"line":1096},[4885,4890],{"type":41,"tag":150,"props":4886,"children":4887},{"style":357},[4888],{"type":47,"value":4889},"  ]",{"type":41,"tag":150,"props":4891,"children":4892},{"style":351},[4893],{"type":47,"value":814},{"type":41,"tag":150,"props":4895,"children":4896},{"class":152,"line":1509},[4897,4902,4906],{"type":41,"tag":150,"props":4898,"children":4899},{"style":771},[4900],{"type":47,"value":4901},"  transports",{"type":41,"tag":150,"props":4903,"children":4904},{"style":351},[4905],{"type":47,"value":779},{"type":41,"tag":150,"props":4907,"children":4908},{"style":351},[4909],{"type":47,"value":784},{"type":41,"tag":150,"props":4911,"children":4912},{"class":152,"line":1517},[4913,4918,4923,4927,4932,4936,4940,4944,4948],{"type":41,"tag":150,"props":4914,"children":4915},{"style":771},[4916],{"type":47,"value":4917},"    [",{"type":41,"tag":150,"props":4919,"children":4920},{"style":357},[4921],{"type":47,"value":4922},"mainnet",{"type":41,"tag":150,"props":4924,"children":4925},{"style":351},[4926],{"type":47,"value":836},{"type":41,"tag":150,"props":4928,"children":4929},{"style":357},[4930],{"type":47,"value":4931},"id",{"type":41,"tag":150,"props":4933,"children":4934},{"style":771},[4935],{"type":47,"value":2272},{"type":41,"tag":150,"props":4937,"children":4938},{"style":351},[4939],{"type":47,"value":779},{"type":41,"tag":150,"props":4941,"children":4942},{"style":753},[4943],{"type":47,"value":4522},{"type":41,"tag":150,"props":4945,"children":4946},{"style":357},[4947],{"type":47,"value":1121},{"type":41,"tag":150,"props":4949,"children":4950},{"style":351},[4951],{"type":47,"value":814},{"type":41,"tag":150,"props":4953,"children":4954},{"class":152,"line":1526},[4955,4959,4964,4968,4972,4976,4980,4984,4988],{"type":41,"tag":150,"props":4956,"children":4957},{"style":771},[4958],{"type":47,"value":4917},{"type":41,"tag":150,"props":4960,"children":4961},{"style":357},[4962],{"type":47,"value":4963},"sepolia",{"type":41,"tag":150,"props":4965,"children":4966},{"style":351},[4967],{"type":47,"value":836},{"type":41,"tag":150,"props":4969,"children":4970},{"style":357},[4971],{"type":47,"value":4931},{"type":41,"tag":150,"props":4973,"children":4974},{"style":771},[4975],{"type":47,"value":2272},{"type":41,"tag":150,"props":4977,"children":4978},{"style":351},[4979],{"type":47,"value":779},{"type":41,"tag":150,"props":4981,"children":4982},{"style":753},[4983],{"type":47,"value":4522},{"type":41,"tag":150,"props":4985,"children":4986},{"style":357},[4987],{"type":47,"value":1121},{"type":41,"tag":150,"props":4989,"children":4990},{"style":351},[4991],{"type":47,"value":814},{"type":41,"tag":150,"props":4993,"children":4994},{"class":152,"line":1535},[4995],{"type":41,"tag":150,"props":4996,"children":4997},{"style":351},[4998],{"type":47,"value":862},{"type":41,"tag":150,"props":5000,"children":5001},{"class":152,"line":1544},[5002,5006,5010],{"type":41,"tag":150,"props":5003,"children":5004},{"style":351},[5005],{"type":47,"value":1085},{"type":41,"tag":150,"props":5007,"children":5008},{"style":357},[5009],{"type":47,"value":1028},{"type":41,"tag":150,"props":5011,"children":5012},{"style":351},[5013],{"type":47,"value":389},{"type":41,"tag":57,"props":5015,"children":5016},{},[5017],{"type":47,"value":2296},{"type":41,"tag":63,"props":5019,"children":5020},{},[5021,5063,5079,5098],{"type":41,"tag":67,"props":5022,"children":5023},{},[5024,5026,5031,5033,5038,5040,5046,5048,5054,5056,5061],{"type":47,"value":5025},"The connect-evm-backed ",{"type":41,"tag":73,"props":5027,"children":5029},{"className":5028},[],[5030],{"type":47,"value":112},{"type":47,"value":5032}," connector ships in ",{"type":41,"tag":73,"props":5034,"children":5036},{"className":5035},[],[5037],{"type":47,"value":695},{"type":47,"value":5039}," from wagmi 3.6 \u002F ",{"type":41,"tag":73,"props":5041,"children":5043},{"className":5042},[],[5044],{"type":47,"value":5045},"@wagmi\u002Fconnectors",{"type":47,"value":5047}," 8 — there is no ",{"type":41,"tag":73,"props":5049,"children":5051},{"className":5050},[],[5052],{"type":47,"value":5053},"@metamask\u002Fconnect-evm\u002Fwagmi",{"type":47,"value":5055}," subpath; install ",{"type":41,"tag":73,"props":5057,"children":5059},{"className":5058},[],[5060],{"type":47,"value":496},{"type":47,"value":5062}," at wagmi's declared peer range",{"type":41,"tag":67,"props":5064,"children":5065},{},[5066,5067,5072,5074],{"type":47,"value":2348},{"type":41,"tag":73,"props":5068,"children":5070},{"className":5069},[],[5071],{"type":47,"value":1642},{"type":47,"value":5073}," not ",{"type":41,"tag":73,"props":5075,"children":5077},{"className":5076},[],[5078],{"type":47,"value":1633},{"type":41,"tag":67,"props":5080,"children":5081},{},[5082,5084,5090,5092],{"type":47,"value":5083},"Connector ID is ",{"type":41,"tag":73,"props":5085,"children":5087},{"className":5086},[],[5088],{"type":47,"value":5089},"'metaMaskSDK'",{"type":47,"value":5091}," — find it with ",{"type":41,"tag":73,"props":5093,"children":5095},{"className":5094},[],[5096],{"type":47,"value":5097},"connectors.find(c => c.id === 'metaMaskSDK')",{"type":41,"tag":67,"props":5099,"children":5100},{},[5101,5103,5109,5111,5117,5119,5125,5126,5132,5133,5139,5140,5146],{"type":47,"value":5102},"Most wagmi hooks work unchanged, but note the wagmi v3 renames: ",{"type":41,"tag":73,"props":5104,"children":5106},{"className":5105},[],[5107],{"type":47,"value":5108},"useConnect().connectors",{"type":47,"value":5110}," → ",{"type":41,"tag":73,"props":5112,"children":5114},{"className":5113},[],[5115],{"type":47,"value":5116},"useConnectors()",{"type":47,"value":5118},", ",{"type":41,"tag":73,"props":5120,"children":5122},{"className":5121},[],[5123],{"type":47,"value":5124},"connectAsync",{"type":47,"value":5110},{"type":41,"tag":73,"props":5127,"children":5129},{"className":5128},[],[5130],{"type":47,"value":5131},"mutateAsync",{"type":47,"value":5118},{"type":41,"tag":73,"props":5134,"children":5136},{"className":5135},[],[5137],{"type":47,"value":5138},"useAccount",{"type":47,"value":5110},{"type":41,"tag":73,"props":5141,"children":5143},{"className":5142},[],[5144],{"type":47,"value":5145},"useConnection",{"type":47,"value":5147}," (see the migrate-wagmi-metamask-connector skill)",{"type":41,"tag":258,"props":5149,"children":5150},{},[],{"type":41,"tag":50,"props":5152,"children":5154},{"id":5153},"quick-reference-full-option-mapping",[5155],{"type":47,"value":5156},"Quick Reference: Full Option Mapping",{"type":41,"tag":1576,"props":5158,"children":5159},{},[5160,5191],{"type":41,"tag":1580,"props":5161,"children":5162},{},[5163],{"type":41,"tag":1584,"props":5164,"children":5165},{},[5166,5176,5186],{"type":41,"tag":1588,"props":5167,"children":5168},{},[5169,5170,5175],{"type":47,"value":1592},{"type":41,"tag":73,"props":5171,"children":5173},{"className":5172},[],[5174],{"type":47,"value":78},{"type":47,"value":1028},{"type":41,"tag":1588,"props":5177,"children":5178},{},[5179,5180,5185],{"type":47,"value":1604},{"type":41,"tag":73,"props":5181,"children":5183},{"className":5182},[],[5184],{"type":47,"value":94},{"type":47,"value":1028},{"type":41,"tag":1588,"props":5187,"children":5188},{},[5189],{"type":47,"value":5190},"Status",{"type":41,"tag":1618,"props":5192,"children":5193},{},[5194,5220,5247,5279,5304,5330,5384,5408,5446,5470,5502,5526,5556,5585,5624,5647,5672,5692,5715,5734],{"type":41,"tag":1584,"props":5195,"children":5196},{},[5197,5206,5215],{"type":41,"tag":1625,"props":5198,"children":5199},{},[5200],{"type":41,"tag":73,"props":5201,"children":5203},{"className":5202},[],[5204],{"type":47,"value":5205},"new MetaMaskSDK(opts)",{"type":41,"tag":1625,"props":5207,"children":5208},{},[5209],{"type":41,"tag":73,"props":5210,"children":5212},{"className":5211},[],[5213],{"type":47,"value":5214},"await createEVMClient(opts)",{"type":41,"tag":1625,"props":5216,"children":5217},{},[5218],{"type":47,"value":5219},"Renamed, async",{"type":41,"tag":1584,"props":5221,"children":5222},{},[5223,5232,5237],{"type":41,"tag":1625,"props":5224,"children":5225},{},[5226],{"type":41,"tag":73,"props":5227,"children":5229},{"className":5228},[],[5230],{"type":47,"value":5231},"sdk.init()",{"type":41,"tag":1625,"props":5233,"children":5234},{},[5235],{"type":47,"value":5236},"Not needed",{"type":41,"tag":1625,"props":5238,"children":5239},{},[5240,5242],{"type":47,"value":5241},"Init happens in ",{"type":41,"tag":73,"props":5243,"children":5245},{"className":5244},[],[5246],{"type":47,"value":1610},{"type":41,"tag":1584,"props":5248,"children":5249},{},[5250,5259,5268],{"type":41,"tag":1625,"props":5251,"children":5252},{},[5253],{"type":41,"tag":73,"props":5254,"children":5256},{"className":5255},[],[5257],{"type":47,"value":5258},"sdk.connect()",{"type":41,"tag":1625,"props":5260,"children":5261},{},[5262],{"type":41,"tag":73,"props":5263,"children":5265},{"className":5264},[],[5266],{"type":47,"value":5267},"client.connect({ chainIds })",{"type":41,"tag":1625,"props":5269,"children":5270},{},[5271,5273],{"type":47,"value":5272},"Returns ",{"type":41,"tag":73,"props":5274,"children":5276},{"className":5275},[],[5277],{"type":47,"value":5278},"{ accounts, chainId }",{"type":41,"tag":1584,"props":5280,"children":5281},{},[5282,5290,5299],{"type":41,"tag":1625,"props":5283,"children":5284},{},[5285],{"type":41,"tag":73,"props":5286,"children":5288},{"className":5287},[],[5289],{"type":47,"value":3095},{"type":41,"tag":1625,"props":5291,"children":5292},{},[5293],{"type":41,"tag":73,"props":5294,"children":5296},{"className":5295},[],[5297],{"type":47,"value":5298},"client.getProvider()",{"type":41,"tag":1625,"props":5300,"children":5301},{},[5302],{"type":47,"value":5303},"Returns EIP-1193 provider",{"type":41,"tag":1584,"props":5305,"children":5306},{},[5307,5316,5325],{"type":41,"tag":1625,"props":5308,"children":5309},{},[5310],{"type":41,"tag":73,"props":5311,"children":5313},{"className":5312},[],[5314],{"type":47,"value":5315},"sdk.disconnect()",{"type":41,"tag":1625,"props":5317,"children":5318},{},[5319],{"type":41,"tag":73,"props":5320,"children":5322},{"className":5321},[],[5323],{"type":47,"value":5324},"client.disconnect()",{"type":41,"tag":1625,"props":5326,"children":5327},{},[5328],{"type":47,"value":5329},"Same for EVM; partial disconnect is multichain-only",{"type":41,"tag":1584,"props":5331,"children":5332},{},[5333,5342,5350],{"type":41,"tag":1625,"props":5334,"children":5335},{},[5336],{"type":41,"tag":73,"props":5337,"children":5339},{"className":5338},[],[5340],{"type":47,"value":5341},"sdk.terminate()",{"type":41,"tag":1625,"props":5343,"children":5344},{},[5345],{"type":41,"tag":73,"props":5346,"children":5348},{"className":5347},[],[5349],{"type":47,"value":5324},{"type":41,"tag":1625,"props":5351,"children":5352},{},[5353,5359,5361,5367,5369,5375,5377,5382],{"type":41,"tag":73,"props":5354,"children":5356},{"className":5355},[],[5357],{"type":47,"value":5358},"terminate",{"type":47,"value":5360}," is removed — the EVM client's ",{"type":41,"tag":73,"props":5362,"children":5364},{"className":5363},[],[5365],{"type":47,"value":5366},"disconnect()",{"type":47,"value":5368}," revokes the EVM (",{"type":41,"tag":73,"props":5370,"children":5372},{"className":5371},[],[5373],{"type":47,"value":5374},"eip155:*",{"type":47,"value":5376},") scopes; for full multi-ecosystem teardown call the multichain client's ",{"type":41,"tag":73,"props":5378,"children":5380},{"className":5379},[],[5381],{"type":47,"value":5366},{"type":47,"value":5383}," with no arguments",{"type":41,"tag":1584,"props":5385,"children":5386},{},[5387,5395,5403],{"type":41,"tag":1625,"props":5388,"children":5389},{},[5390],{"type":41,"tag":73,"props":5391,"children":5393},{"className":5392},[],[5394],{"type":47,"value":1633},{"type":41,"tag":1625,"props":5396,"children":5397},{},[5398],{"type":41,"tag":73,"props":5399,"children":5401},{"className":5400},[],[5402],{"type":47,"value":1642},{"type":41,"tag":1625,"props":5404,"children":5405},{},[5406],{"type":47,"value":5407},"Renamed",{"type":41,"tag":1584,"props":5409,"children":5410},{},[5411,5419,5434],{"type":41,"tag":1625,"props":5412,"children":5413},{},[5414],{"type":41,"tag":73,"props":5415,"children":5417},{"className":5416},[],[5418],{"type":47,"value":1717},{"type":41,"tag":1625,"props":5420,"children":5421},{},[5422,5427,5429],{"type":41,"tag":73,"props":5423,"children":5425},{"className":5424},[],[5426],{"type":47,"value":1734},{"type":47,"value":5428}," in ",{"type":41,"tag":73,"props":5430,"children":5432},{"className":5431},[],[5433],{"type":47,"value":1726},{"type":41,"tag":1625,"props":5435,"children":5436},{},[5437,5439,5444],{"type":47,"value":5438},"Helper function; optional ",{"type":41,"tag":73,"props":5440,"children":5442},{"className":5441},[],[5443],{"type":47,"value":1745},{"type":47,"value":5445}," filters to specific chains",{"type":41,"tag":1584,"props":5447,"children":5448},{},[5449,5457,5465],{"type":41,"tag":1625,"props":5450,"children":5451},{},[5452],{"type":41,"tag":73,"props":5453,"children":5455},{"className":5454},[],[5456],{"type":47,"value":1759},{"type":41,"tag":1625,"props":5458,"children":5459},{},[5460],{"type":41,"tag":73,"props":5461,"children":5463},{"className":5462},[],[5464],{"type":47,"value":1726},{"type":41,"tag":1625,"props":5466,"children":5467},{},[5468],{"type":47,"value":5469},"Merged with Infura URLs",{"type":41,"tag":1584,"props":5471,"children":5472},{},[5473,5481,5489],{"type":41,"tag":1625,"props":5474,"children":5475},{},[5476],{"type":41,"tag":73,"props":5477,"children":5479},{"className":5478},[],[5480],{"type":47,"value":1784},{"type":41,"tag":1625,"props":5482,"children":5483},{},[5484],{"type":41,"tag":73,"props":5485,"children":5487},{"className":5486},[],[5488],{"type":47,"value":1793},{"type":41,"tag":1625,"props":5490,"children":5491},{},[5492,5494,5500],{"type":47,"value":5493},"Moved to ",{"type":41,"tag":73,"props":5495,"children":5497},{"className":5496},[],[5498],{"type":47,"value":5499},"ui",{"type":47,"value":5501}," namespace",{"type":41,"tag":1584,"props":5503,"children":5504},{},[5505,5513,5521],{"type":41,"tag":1625,"props":5506,"children":5507},{},[5508],{"type":41,"tag":73,"props":5509,"children":5511},{"className":5510},[],[5512],{"type":47,"value":1810},{"type":41,"tag":1625,"props":5514,"children":5515},{},[5516],{"type":41,"tag":73,"props":5517,"children":5519},{"className":5518},[],[5520],{"type":47,"value":1819},{"type":41,"tag":1625,"props":5522,"children":5523},{},[5524],{"type":47,"value":5525},"Renamed, slightly different semantics",{"type":41,"tag":1584,"props":5527,"children":5528},{},[5529,5537,5545],{"type":41,"tag":1625,"props":5530,"children":5531},{},[5532],{"type":41,"tag":73,"props":5533,"children":5535},{"className":5534},[],[5536],{"type":47,"value":1842},{"type":41,"tag":1625,"props":5538,"children":5539},{},[5540],{"type":41,"tag":73,"props":5541,"children":5543},{"className":5542},[],[5544],{"type":47,"value":1851},{"type":41,"tag":1625,"props":5546,"children":5547},{},[5548,5549,5555],{"type":47,"value":5493},{"type":41,"tag":73,"props":5550,"children":5552},{"className":5551},[],[5553],{"type":47,"value":5554},"mobile",{"type":47,"value":5501},{"type":41,"tag":1584,"props":5557,"children":5558},{},[5559,5567,5575],{"type":41,"tag":1625,"props":5560,"children":5561},{},[5562],{"type":41,"tag":73,"props":5563,"children":5565},{"className":5564},[],[5566],{"type":47,"value":1874},{"type":41,"tag":1625,"props":5568,"children":5569},{},[5570],{"type":41,"tag":73,"props":5571,"children":5573},{"className":5572},[],[5574],{"type":47,"value":1883},{"type":41,"tag":1625,"props":5576,"children":5577},{},[5578,5579,5584],{"type":47,"value":5493},{"type":41,"tag":73,"props":5580,"children":5582},{"className":5581},[],[5583],{"type":47,"value":5554},{"type":47,"value":5501},{"type":41,"tag":1584,"props":5586,"children":5587},{},[5588,5599,5604],{"type":41,"tag":1625,"props":5589,"children":5590},{},[5591,5597],{"type":41,"tag":73,"props":5592,"children":5594},{"className":5593},[],[5595],{"type":47,"value":5596},"MetaMaskProvider",{"type":47,"value":5598}," (React)",{"type":41,"tag":1625,"props":5600,"children":5601},{},[5602],{"type":47,"value":5603},"No direct equivalent",{"type":41,"tag":1625,"props":5605,"children":5606},{},[5607,5609,5615,5617,5622],{"type":47,"value":5608},"Use wagmi ",{"type":41,"tag":73,"props":5610,"children":5612},{"className":5611},[],[5613],{"type":47,"value":5614},"WagmiProvider",{"type":47,"value":5616}," or call ",{"type":41,"tag":73,"props":5618,"children":5620},{"className":5619},[],[5621],{"type":47,"value":1610},{"type":47,"value":5623}," directly",{"type":41,"tag":1584,"props":5625,"children":5626},{},[5627,5638,5642],{"type":41,"tag":1625,"props":5628,"children":5629},{},[5630,5636],{"type":41,"tag":73,"props":5631,"children":5633},{"className":5632},[],[5634],{"type":47,"value":5635},"useSDK()",{"type":47,"value":5637}," hook",{"type":41,"tag":1625,"props":5639,"children":5640},{},[5641],{"type":47,"value":5603},{"type":41,"tag":1625,"props":5643,"children":5644},{},[5645],{"type":47,"value":5646},"Use wagmi hooks or manage client state manually",{"type":41,"tag":1584,"props":5648,"children":5649},{},[5650,5658,5667],{"type":41,"tag":1625,"props":5651,"children":5652},{},[5653],{"type":41,"tag":73,"props":5654,"children":5656},{"className":5655},[],[5657],{"type":47,"value":3039},{"type":41,"tag":1625,"props":5659,"children":5660},{},[5661],{"type":41,"tag":73,"props":5662,"children":5664},{"className":5663},[],[5665],{"type":47,"value":5666},"EIP1193Provider",{"type":41,"tag":1625,"props":5668,"children":5669},{},[5670],{"type":47,"value":5671},"Standard provider interface",{"type":41,"tag":1584,"props":5673,"children":5674},{},[5675,5683,5687],{"type":41,"tag":1625,"props":5676,"children":5677},{},[5678],{"type":41,"tag":73,"props":5679,"children":5681},{"className":5680},[],[5682],{"type":47,"value":1899},{"type":41,"tag":1625,"props":5684,"children":5685},{},[5686],{"type":47,"value":1904},{"type":41,"tag":1625,"props":5688,"children":5689},{},[5690],{"type":47,"value":5691},"—",{"type":41,"tag":1584,"props":5693,"children":5694},{},[5695,5703,5711],{"type":41,"tag":1625,"props":5696,"children":5697},{},[5698],{"type":41,"tag":73,"props":5699,"children":5701},{"className":5700},[],[5702],{"type":47,"value":1921},{"type":41,"tag":1625,"props":5704,"children":5705},{},[5706],{"type":41,"tag":73,"props":5707,"children":5709},{"className":5708},[],[5710],{"type":47,"value":1930},{"type":41,"tag":1625,"props":5712,"children":5713},{},[5714],{"type":47,"value":5691},{"type":41,"tag":1584,"props":5716,"children":5717},{},[5718,5726,5730],{"type":41,"tag":1625,"props":5719,"children":5720},{},[5721],{"type":41,"tag":73,"props":5722,"children":5724},{"className":5723},[],[5725],{"type":47,"value":1986},{"type":41,"tag":1625,"props":5727,"children":5728},{},[5729],{"type":47,"value":1904},{"type":41,"tag":1625,"props":5731,"children":5732},{},[5733],{"type":47,"value":5691},{"type":41,"tag":1584,"props":5735,"children":5736},{},[5737,5745,5749],{"type":41,"tag":1625,"props":5738,"children":5739},{},[5740],{"type":41,"tag":73,"props":5741,"children":5743},{"className":5742},[],[5744],{"type":47,"value":2007},{"type":41,"tag":1625,"props":5746,"children":5747},{},[5748],{"type":47,"value":1904},{"type":41,"tag":1625,"props":5750,"children":5751},{},[5752],{"type":47,"value":5691},{"type":41,"tag":50,"props":5754,"children":5756},{"id":5755},"important-notes",[5757],{"type":47,"value":5758},"Important Notes",{"type":41,"tag":63,"props":5760,"children":5761},{},[5762,5792,5809,5831,5875,5896,5970,5998,6046],{"type":41,"tag":67,"props":5763,"children":5764},{},[5765,5775,5777,5783,5785,5790],{"type":41,"tag":283,"props":5766,"children":5767},{},[5768,5773],{"type":41,"tag":73,"props":5769,"children":5771},{"className":5770},[],[5772],{"type":47,"value":1610},{"type":47,"value":5774}," is async",{"type":47,"value":5776}," — unlike ",{"type":41,"tag":73,"props":5778,"children":5780},{"className":5779},[],[5781],{"type":47,"value":5782},"new MetaMaskSDK()",{"type":47,"value":5784},", it returns a promise. Ensure you ",{"type":41,"tag":73,"props":5786,"children":5788},{"className":5787},[],[5789],{"type":47,"value":1102},{"type":47,"value":5791}," it or handle the promise before accessing the client.",{"type":41,"tag":67,"props":5793,"children":5794},{},[5795,5800,5802,5807],{"type":41,"tag":283,"props":5796,"children":5797},{},[5798],{"type":47,"value":5799},"The multichain core is the singleton",{"type":47,"value":5801}," — ",{"type":41,"tag":73,"props":5803,"children":5805},{"className":5804},[],[5806],{"type":47,"value":4119},{"type":47,"value":5808}," merges into a shared instance, while EVM\u002FSolana create wrappers on top of that shared core. Do not recreate clients on every render.",{"type":41,"tag":67,"props":5810,"children":5811},{},[5812,5822,5824,5829],{"type":41,"tag":283,"props":5813,"children":5814},{},[5815,5820],{"type":41,"tag":73,"props":5816,"children":5818},{"className":5817},[],[5819],{"type":47,"value":2308},{"type":47,"value":5821}," returns an object now",{"type":47,"value":5823}," — destructure ",{"type":41,"tag":73,"props":5825,"children":5827},{"className":5826},[],[5828],{"type":47,"value":5278},{"type":47,"value":5830}," instead of treating the return value as an accounts array.",{"type":41,"tag":67,"props":5832,"children":5833},{},[5834,5839,5841,5847,5848,5854,5855,5861,5862,5867,5868,5873],{"type":41,"tag":283,"props":5835,"children":5836},{},[5837],{"type":47,"value":5838},"Chain IDs must be hex strings",{"type":47,"value":5840}," — use ",{"type":41,"tag":73,"props":5842,"children":5844},{"className":5843},[],[5845],{"type":47,"value":5846},"'0x1'",{"type":47,"value":5073},{"type":41,"tag":73,"props":5849,"children":5851},{"className":5850},[],[5852],{"type":47,"value":5853},"1",{"type":47,"value":80},{"type":41,"tag":73,"props":5856,"children":5858},{"className":5857},[],[5859],{"type":47,"value":5860},"'1'",{"type":47,"value":5428},{"type":41,"tag":73,"props":5863,"children":5865},{"className":5864},[],[5866],{"type":47,"value":1745},{"type":47,"value":2325},{"type":41,"tag":73,"props":5869,"children":5871},{"className":5870},[],[5872],{"type":47,"value":3082},{"type":47,"value":5874}," keys.",{"type":41,"tag":67,"props":5876,"children":5877},{},[5878,5887,5889,5894],{"type":41,"tag":283,"props":5879,"children":5880},{},[5881,5882],{"type":47,"value":3089},{"type":41,"tag":73,"props":5883,"children":5885},{"className":5884},[],[5886],{"type":47,"value":5231},{"type":47,"value":5888}," — initialization is part of ",{"type":41,"tag":73,"props":5890,"children":5892},{"className":5891},[],[5893],{"type":47,"value":1610},{"type":47,"value":5895},". There is no separate init step.",{"type":41,"tag":67,"props":5897,"children":5898},{},[5899,5904,5905,5910,5912,5917,5919,5924,5925,5931,5933,5938,5940,5946,5948,5953,5955,5960,5962,5968],{"type":41,"tag":283,"props":5900,"children":5901},{},[5902],{"type":47,"value":5903},"Provider exists before connection",{"type":47,"value":5801},{"type":41,"tag":73,"props":5906,"children":5908},{"className":5907},[],[5909],{"type":47,"value":5298},{"type":47,"value":5911}," never returns ",{"type":41,"tag":73,"props":5913,"children":5915},{"className":5914},[],[5916],{"type":47,"value":3103},{"type":47,"value":5918},". But node-routed reads (",{"type":41,"tag":73,"props":5920,"children":5922},{"className":5921},[],[5923],{"type":47,"value":3074},{"type":47,"value":5118},{"type":41,"tag":73,"props":5926,"children":5928},{"className":5927},[],[5929],{"type":47,"value":5930},"eth_getBalance",{"type":47,"value":5932},", …) require a ",{"type":41,"tag":283,"props":5934,"children":5935},{},[5936],{"type":47,"value":5937},"selected chain",{"type":47,"value":5939}," and throw ",{"type":41,"tag":73,"props":5941,"children":5943},{"className":5942},[],[5944],{"type":47,"value":5945},"No chain ID selected",{"type":47,"value":5947}," until one is set (after ",{"type":41,"tag":73,"props":5949,"children":5951},{"className":5950},[],[5952],{"type":47,"value":2308},{"type":47,"value":5954}," or a restored session); only the intercepted ",{"type":41,"tag":73,"props":5956,"children":5958},{"className":5957},[],[5959],{"type":47,"value":2151},{"type":47,"value":5961}," \u002F ",{"type":41,"tag":73,"props":5963,"children":5965},{"className":5964},[],[5966],{"type":47,"value":5967},"eth_accounts",{"type":47,"value":5969}," (cached) are safe before connecting.",{"type":41,"tag":67,"props":5971,"children":5972},{},[5973,5983,5985,5990,5991,5996],{"type":41,"tag":283,"props":5974,"children":5975},{},[5976,5981],{"type":41,"tag":73,"props":5977,"children":5979},{"className":5978},[],[5980],{"type":47,"value":86},{"type":47,"value":5982}," has no 1:1 replacement",{"type":47,"value":5984}," — if you were using ",{"type":41,"tag":73,"props":5986,"children":5988},{"className":5987},[],[5989],{"type":47,"value":5596},{"type":47,"value":2325},{"type":41,"tag":73,"props":5992,"children":5994},{"className":5993},[],[5995],{"type":47,"value":5635},{"type":47,"value":5997},", migrate to either wagmi hooks or manage the client instance in your own React context.",{"type":41,"tag":67,"props":5999,"children":6000},{},[6001,6016,6018,6023,6025,6030,6032,6037,6039,6044],{"type":41,"tag":283,"props":6002,"children":6003},{},[6004,6009,6011],{"type":41,"tag":73,"props":6005,"children":6007},{"className":6006},[],[6008],{"type":47,"value":5341},{"type":47,"value":6010}," is replaced by ",{"type":41,"tag":73,"props":6012,"children":6014},{"className":6013},[],[6015],{"type":47,"value":5366},{"type":47,"value":6017}," — the EVM client's ",{"type":41,"tag":73,"props":6019,"children":6021},{"className":6020},[],[6022],{"type":47,"value":5366},{"type":47,"value":6024}," revokes EVM (",{"type":41,"tag":73,"props":6026,"children":6028},{"className":6027},[],[6029],{"type":47,"value":5374},{"type":47,"value":6031},") scopes only; if the session also has Solana scopes, terminate everything via the multichain client's ",{"type":41,"tag":73,"props":6033,"children":6035},{"className":6034},[],[6036],{"type":47,"value":5366},{"type":47,"value":6038}," with no arguments. There is no separate ",{"type":41,"tag":73,"props":6040,"children":6042},{"className":6041},[],[6043],{"type":47,"value":5358},{"type":47,"value":6045}," method.",{"type":41,"tag":67,"props":6047,"children":6048},{},[6049,6054],{"type":41,"tag":283,"props":6050,"children":6051},{},[6052],{"type":47,"value":6053},"Test the migration on both extension and mobile",{"type":47,"value":6055}," — the transport layer has changed, and behavior differences may surface in one environment but not the other.",{"type":41,"tag":6057,"props":6058,"children":6059},"style",{},[6060],{"type":47,"value":6061},"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":6063,"total":1535},[6064,6071,6082,6094,6108,6125,6139],{"slug":4,"name":4,"fn":5,"description":6,"org":6065,"tags":6066,"stars":25,"repoUrl":26,"updatedAt":27},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[6067,6068,6069,6070],{"name":23,"slug":24,"type":15},{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"slug":6072,"name":6072,"fn":6073,"description":6074,"org":6075,"tags":6076,"stars":25,"repoUrl":26,"updatedAt":6081},"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},[6077,6078,6079,6080],{"name":23,"slug":24,"type":15},{"name":17,"slug":18,"type":15},{"name":4539,"slug":4539,"type":15},{"name":13,"slug":14,"type":15},"2026-07-13T06:12:23.110706",{"slug":6083,"name":6083,"fn":6084,"description":6085,"org":6086,"tags":6087,"stars":25,"repoUrl":26,"updatedAt":6093},"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},[6088,6091,6092],{"name":6089,"slug":6090,"type":15},"API Development","api-development",{"name":23,"slug":24,"type":15},{"name":13,"slug":14,"type":15},"2026-07-13T06:11:56.866623",{"slug":6095,"name":6095,"fn":6096,"description":6097,"org":6098,"tags":6099,"stars":25,"repoUrl":26,"updatedAt":6107},"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},[6100,6103,6106],{"name":6101,"slug":6102,"type":15},"Payments","payments",{"name":6104,"slug":6105,"type":15},"Solana","solana",{"name":13,"slug":14,"type":15},"2026-07-13T06:12:03.942378",{"slug":6109,"name":6109,"fn":6110,"description":6111,"org":6112,"tags":6113,"stars":25,"repoUrl":26,"updatedAt":6124},"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},[6114,6115,6118,6121,6123],{"name":23,"slug":24,"type":15},{"name":6116,"slug":6117,"type":15},"Frontend","frontend",{"name":6119,"slug":6120,"type":15},"JavaScript","javascript",{"name":6122,"slug":335,"type":15},"TypeScript",{"name":13,"slug":14,"type":15},"2026-07-13T06:12:01.334051",{"slug":6126,"name":6126,"fn":6127,"description":6128,"org":6129,"tags":6130,"stars":25,"repoUrl":26,"updatedAt":6138},"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},[6131,6132,6133,6134,6137],{"name":6089,"slug":6090,"type":15},{"name":23,"slug":24,"type":15},{"name":6116,"slug":6117,"type":15},{"name":6135,"slug":6136,"type":15},"React","react",{"name":13,"slug":14,"type":15},"2026-07-13T06:11:52.764143",{"slug":6140,"name":6140,"fn":6141,"description":6142,"org":6143,"tags":6144,"stars":25,"repoUrl":26,"updatedAt":6152},"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},[6145,6146,6148,6151],{"name":23,"slug":24,"type":15},{"name":6147,"slug":5554,"type":15},"Mobile",{"name":6149,"slug":6150,"type":15},"React Native","react-native",{"name":13,"slug":14,"type":15},"2026-07-13T06:12:11.764689",{"items":6154,"total":6279},[6155,6173,6185,6197,6206,6216,6229,6245,6252,6259,6265,6271],{"slug":6156,"name":6156,"fn":6157,"description":6158,"org":6159,"tags":6160,"stars":6170,"repoUrl":6171,"updatedAt":6172},"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},[6161,6162,6165,6166,6169],{"name":6089,"slug":6090,"type":15},{"name":6163,"slug":6164,"type":15},"Auth","auth",{"name":23,"slug":24,"type":15},{"name":6167,"slug":6168,"type":15},"Permissions","permissions",{"name":13,"slug":14,"type":15},54,"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fsmart-accounts-kit","2026-07-13T06:11:32.8327",{"slug":6174,"name":6174,"fn":6175,"description":6176,"org":6177,"tags":6178,"stars":6170,"repoUrl":6171,"updatedAt":6184},"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},[6179,6180,6181,6182],{"name":6089,"slug":6090,"type":15},{"name":6101,"slug":6102,"type":15},{"name":13,"slug":14,"type":15},{"name":6183,"slug":6183,"type":15},"x402","2026-07-13T06:11:30.877136",{"slug":6186,"name":6186,"fn":6187,"description":6188,"org":6189,"tags":6190,"stars":949,"repoUrl":6195,"updatedAt":6196},"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},[6191,6192],{"name":6089,"slug":6090,"type":15},{"name":6193,"slug":6194,"type":15},"Search","search","https:\u002F\u002Fgithub.com\u002FMetaMask\u002Focap-kernel","2026-07-13T06:12:37.024095",{"slug":8,"name":8,"fn":6198,"description":6199,"org":6200,"tags":6201,"stars":949,"repoUrl":6195,"updatedAt":6205},"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},[6202,6203,6204],{"name":6089,"slug":6090,"type":15},{"name":23,"slug":24,"type":15},{"name":13,"slug":14,"type":15},"2026-07-13T06:12:33.955806",{"slug":6207,"name":6207,"fn":6208,"description":6209,"org":6210,"tags":6211,"stars":949,"repoUrl":6195,"updatedAt":6215},"wallet","manage wallet balances and transactions","Use the wallet tools for all balance, send, and sign operations. Supports both ETH and ERC-20 tokens. The away wallet operates autonomously after setup — the home device does not need to be online.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[6212,6213,6214],{"name":23,"slug":24,"type":15},{"name":6101,"slug":6102,"type":15},{"name":13,"slug":14,"type":15},"2026-07-13T06:12:35.380244",{"slug":6217,"name":6217,"fn":6218,"description":6219,"org":6220,"tags":6221,"stars":242,"repoUrl":6227,"updatedAt":6228},"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},[6222,6223,6224,6225,6226],{"name":6089,"slug":6090,"type":15},{"name":23,"slug":24,"type":15},{"name":6104,"slug":6105,"type":15},{"name":4539,"slug":4539,"type":15},{"name":13,"slug":14,"type":15},"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fconnect-monorepo","2026-07-13T06:11:34.445665",{"slug":6230,"name":6230,"fn":6231,"description":6232,"org":6233,"tags":6234,"stars":207,"repoUrl":6243,"updatedAt":6244},"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},[6235,6238,6241,6242],{"name":6236,"slug":6237,"type":15},"Blockchain","blockchain",{"name":6239,"slug":6240,"type":15},"DeFi","defi",{"name":23,"slug":24,"type":15},{"name":13,"slug":14,"type":15},"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fagent-skills","2026-08-01T05:45:07.976522",{"slug":4,"name":4,"fn":5,"description":6,"org":6246,"tags":6247,"stars":25,"repoUrl":26,"updatedAt":27},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[6248,6249,6250,6251],{"name":23,"slug":24,"type":15},{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"slug":6072,"name":6072,"fn":6073,"description":6074,"org":6253,"tags":6254,"stars":25,"repoUrl":26,"updatedAt":6081},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[6255,6256,6257,6258],{"name":23,"slug":24,"type":15},{"name":17,"slug":18,"type":15},{"name":4539,"slug":4539,"type":15},{"name":13,"slug":14,"type":15},{"slug":6083,"name":6083,"fn":6084,"description":6085,"org":6260,"tags":6261,"stars":25,"repoUrl":26,"updatedAt":6093},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[6262,6263,6264],{"name":6089,"slug":6090,"type":15},{"name":23,"slug":24,"type":15},{"name":13,"slug":14,"type":15},{"slug":6095,"name":6095,"fn":6096,"description":6097,"org":6266,"tags":6267,"stars":25,"repoUrl":26,"updatedAt":6107},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[6268,6269,6270],{"name":6101,"slug":6102,"type":15},{"name":6104,"slug":6105,"type":15},{"name":13,"slug":14,"type":15},{"slug":6109,"name":6109,"fn":6110,"description":6111,"org":6272,"tags":6273,"stars":25,"repoUrl":26,"updatedAt":6124},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[6274,6275,6276,6277,6278],{"name":23,"slug":24,"type":15},{"name":6116,"slug":6117,"type":15},{"name":6119,"slug":6120,"type":15},{"name":6122,"slug":335,"type":15},{"name":13,"slug":14,"type":15},26]