This upgrade guide helps developers transition from using the Web3Wallet library to the WalletKit within reown-kotlin. The guide involves updating imports, modifying class references and updating artefacts dependencies. Follow these steps to ensure a smooth migration.
Currently, Dapps create a new pairing whenever the user selects the “Connect Wallet” button, instead of reusing existing pairings. Although pairings were not intended to be reused, they were being persisted for 30 days, causing unnecessary resource usage for both Dapps and wallet clients, including redundant socket connections.This led to an accumulation of stale pairings in wallets, resulting in degraded efficiency and increased resource consumption. To address this issue, we have introduced changes to how pairings are managed to ensure more efficient connection handling.Pairings were never intended to be listed in the wallet, and wallets should only display active sessions to users.
We’ve optimized the WebSocket connection management to improve performance and resource utilization. The SDK will now establish a WebSocket connection only when there’s an explicit intention to send a request or subscribe to a topic. If none of these conditions are met, the WebSocket connection will remain closed by default.
Previous Behavior: The SDK automatically initiated a WebSocket connection upon startup, regardless of active sessions or pending actions.New Behavior: The SDK delays establishing a WebSocket connection until it’s necessary based on the app’s activities.
This adjustment reduces unnecessary network traffic and conserves device resources, leading to better performance and battery life, especially important for mobile applications.
Disconnected State on Launch: Apps without active sessions at launch will start with the WebSocket in a disconnected state.
UI Elements Depending on WebSocket: Buttons or features that rely on an active WebSocket connection may not function until the connection is established.
Wallets are no longer expected to handle pairing-related methods. If your wallet has been listing pairings, please replace this with listing active sessions instead.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"WalletConnect Pay Docs","description":"Documentation for WalletConnect Pay. Integrate secure crypto payments into your app with step-by-step guides, APIs, and best practices.","colors":{"primary":"#0988f0","light":"#0988f0","dark":"#0988f0"},"logo":{"light":"https://mintcdn.com/walletconnect_pay_docs/hAPTTKKg55YyUMTO/logo/light.svg?fit=max\u0026auto=format\u0026n=hAPTTKKg55YyUMTO\u0026q=85\u0026s=ebf607462c774689b134b3c9d014f2b6","dark":"https://mintcdn.com/walletconnect_pay_docs/hAPTTKKg55YyUMTO/logo/dark.svg?fit=max\u0026auto=format\u0026n=hAPTTKKg55YyUMTO\u0026q=85\u0026s=c6587dca1b7047e52e05128cae4d761d"},"favicon":"https://mintcdn.com/walletconnect_pay_docs/lm0OdcLBlwNo7Hlw/favicon.ico?fit=max\u0026auto=format\u0026n=lm0OdcLBlwNo7Hlw\u0026q=85\u0026s=79443c7fd764d213336cee1ac43b8872","navbar":{"links":[{"href":"https://walletguide.walletconnect.com/","label":"WalletGuide"}],"primary":{"type":"button","label":"Request Demo","href":"https://share.hsforms.com/19Dpp4ayYR9uriB3xNAh0JAnxw6s"}},"footer":{"socials":{"website":"https://walletconnect.com","x":"https://x.com/walletconnect","discord":"https://discord.walletconnect.com","github":"https://github.com/WalletConnect","linkedin":"https://www.linkedin.com/company/walletconnectnetwork"}},"integrations":{"posthog":{"apiKey":"phc_yUywlbA5HctEGSHSK7ueMEH56ktyqyqEBtY4Cl35Fgf","apiHost":"https://pineapple.walletconnect.com"}},"errors":{"404":{"redirect":true}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"WalletConnect","icon":"globe","href":"https://walletconnect.com"},{"anchor":"Blog","icon":"newspaper","href":"https://walletconnect.com/blog"},{"anchor":"Whitepaper","icon":"book","href":"https://whitepaper.walletconnect.com/"},{"anchor":"Report an Issue","icon":"bug","href":"/report-an-issue"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"walletconnect_pay_docs","hasAudioNarration":false,"actualSubdomain":"walletconnect_pay_docs","customDomains":["docs.walletconnect.com"],"gitSource":{"type":"github","owner":"walletconnect","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad8d62635c96ca2475ce892","collectionId":"6d7c9e3e-207c-45cf-99cd-ec13686f58cc","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad8d62635c96ca2475ce892"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad8e9ffad82cbcc460f84c0","clientVersion":"0.0.3926","searchFilterCounts":[{"language":"default","tag":"Wallets","count":103},{"language":"default","tag":"Payments","count":55},{"language":"default","tag":"API Reference","count":49},{"language":"default","tag":"Wallet SDK - Overview","count":36},{"language":"default","tag":"Core","count":30},{"language":"default","tag":"Merchants","count":22},{"language":"default","tag":"For Wallets","count":18},{"language":"default","tag":"Cloud","count":18},{"language":"default","tag":"Get Started","count":16},{"language":"default","tag":"Android","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"wallets/more/web3wallet-migration/android","slug":"/wallets/more/web3wallet-migration/android","pageMetadata":{"title":"Upgrade from Web3Wallet to WalletKit for Android","sidebarTitle":"WalletKit - Android","description":null,"href":"/wallets/more/web3wallet-migration/android"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`upgrade-to-walletkit`,children:`Upgrade to WalletKit`}),`\n`,_jsx(_components.p,{children:`This upgrade guide helps developers transition from using the Web3Wallet library to the WalletKit within reown-kotlin. The guide involves updating imports, modifying class references and updating artefacts dependencies. Follow these steps to ensure a smooth migration.`}),`\n`,_jsx(Heading,{level:`3`,id:`step-1-update-the-repository-dependencies`,children:`Step 1. Update the Repository Dependencies`}),`\n`,_jsx(_components.p,{children:`The Web3Wallet library has been deprecated and moved to a new repository under the reown-com organization. Update your dependencies to use WalletKit:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-delete-start */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` dependencies`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` implementation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`platform`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"com.walletconnect:android-bom:{BOM version}\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` implementation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"com.walletconnect:android-core\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` implementation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"com.walletconnect:web3wallet\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-delete-end */`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-add-start */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` dependencies`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` implementation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`platform`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"com.reown:android-bom:{BOM version}\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` implementation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"com.reown:android-core\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` implementation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"com.reown:walletkit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-add-end */`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`step-2-update-imports-in-your-code`,children:`Step 2. Update Imports in Your Code`}),`\n`,_jsx(_components.p,{children:`All references to Web3Wallet in your import statements should be updated to use WalletKit.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-delete-start */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` import`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` com`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`walletconnect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`android`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`*`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` import`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` com`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`walletconnect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`web3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`wallet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`*`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-delete-end */`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-add-start */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` import`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` com`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`reown`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`android`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`*`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` import`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` com`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`reown`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`walletkit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`*`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-add-end */`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`step-3-update-class-name`,children:`Step 3. Update Class Name`}),`\n`,_jsx(_components.p,{children:`The singleton instance for Web3Wallet has been replaced with WalletKit. Update all instances where Web3Wallet is used with WalletKit.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-delete-start */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Web3Wallet.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`initialize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(Wallet.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(core `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` CoreClient), onSuccess, onError)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Web3Wallet.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`approveSession`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(approveProposal, onSuccess, onError)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-delete-end */`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-add-start */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` WalletKit.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`initialize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(Wallet.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(core `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` CoreClient), onSuccess, onError)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` WalletKit.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`approveSession`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(approveProposal, onSuccess, onError)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-add-end */`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`step-4-update-proguard-file-rules`,children:`Step 4. Update ProGuard file rules`}),`\n`,_jsx(_components.p,{children:`If you have ProGuard rules defined remember to update`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-delete-start */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`keep `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` com`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.walletconnect.web3.wallet.client.Wallet$Model { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; }`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`keep `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` com`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.walletconnect.web3.wallet.client.Wallet { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-delete-end */`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-add-start */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`keep `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` com`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.reown.walletkit.client.Wallet$Model { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; }`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`keep `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` com`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.reown.walletkit.client.Wallet { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* highlight-add-end */`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`step-5-test-your-changes`,children:`Step 5. Test Your Changes`}),`\n`,_jsx(_components.p,{children:`After updating all references to Web3Wallet to use WalletKit, thoroughly test your application to ensure that all functionalities work as expected.`}),`\n`,_jsx(Heading,{level:`2`,id:`pairing-expiry`,children:`Pairing Expiry`}),`\n`,_jsxs(_components.p,{children:[`Currently, Dapps create a new pairing whenever the user selects the `,_jsx(_components.strong,{children:`“Connect Wallet”`}),` button, instead of reusing existing pairings. Although pairings were not intended to be reused, they were being persisted for 30 days, causing unnecessary resource usage for both Dapps and wallet clients, including redundant socket connections.`]}),`\n`,_jsx(_components.p,{children:`This led to an accumulation of stale pairings in wallets, resulting in degraded efficiency and increased resource consumption. To address this issue, we have introduced changes to how pairings are managed to ensure more efficient connection handling.`}),`\n`,_jsx(_components.p,{children:`Pairings were never intended to be listed in the wallet, and wallets should only display active sessions to users.`}),`\n`,_jsx(Heading,{level:`2`,id:`websocket-connection-handling`,children:`WebSocket Connection Handling`}),`\n`,_jsx(_components.p,{children:`We’ve optimized the WebSocket connection management to improve performance and resource utilization. The SDK will now establish a WebSocket connection only when there’s an explicit intention to send a request or subscribe to a topic. If none of these conditions are met, the WebSocket connection will remain closed by default.`}),`\n`,_jsx(Heading,{level:`3`,id:`what’s-changed`,children:`What’s Changed?`}),`\n`,_jsx(_components.p,{children:`Previous Behavior: The SDK automatically initiated a WebSocket connection upon startup, regardless of active sessions or pending actions.`}),`\n`,_jsx(_components.p,{children:`New Behavior: The SDK delays establishing a WebSocket connection until it’s necessary based on the app’s activities.`}),`\n`,_jsx(Heading,{level:`3`,id:`why-this-change`,children:`Why This Change?`}),`\n`,_jsx(_components.p,{children:`This adjustment reduces unnecessary network traffic and conserves device resources, leading to better performance and battery life, especially important for mobile applications.`}),`\n`,_jsx(Heading,{level:`3`,id:`impact-on-your-application`,children:`Impact on Your Application`}),`\n`,_jsx(_components.p,{children:`Disconnected State on Launch: Apps without active sessions at launch will start with the WebSocket in a disconnected state.\nUI Elements Depending on WebSocket: Buttons or features that rely on an active WebSocket connection may not function until the connection is established.`}),`\n`,_jsx(Heading,{level:`3`,id:`steps-for-migration`,children:`Steps for Migration`}),`\n`,_jsx(_components.p,{children:`Wallets are no longer expected to handle pairing-related methods. If your wallet has been listing pairings, please replace this with listing active sessions instead.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Upgrade from Web3Wallet to WalletKit for Android","sidebarTitle":"WalletKit - Android","description":null,"href":"/wallets/more/web3wallet-migration/android"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Upgrade to WalletKit","slug":"upgrade-to-walletkit","depth":2,"children":[{"title":"Step 1. Update the Repository Dependencies","slug":"step-1-update-the-repository-dependencies","depth":3,"children":[]},{"title":"Step 2. Update Imports in Your Code","slug":"step-2-update-imports-in-your-code","depth":3,"children":[]},{"title":"Step 3. Update Class Name","slug":"step-3-update-class-name","depth":3,"children":[]},{"title":"Step 4. Update ProGuard file rules","slug":"step-4-update-proguard-file-rules","depth":3,"children":[]},{"title":"Step 5. Test Your Changes","slug":"step-5-test-your-changes","depth":3,"children":[]}]},{"title":"Pairing Expiry","slug":"pairing-expiry","depth":2,"children":[]},{"title":"WebSocket Connection Handling","slug":"websocket-connection-handling","depth":2,"children":[{"title":"What’s Changed?","slug":"what’s-changed","depth":3,"children":[]},{"title":"Why This Change?","slug":"why-this-change","depth":3,"children":[]},{"title":"Impact on Your Application","slug":"impact-on-your-application","depth":3,"children":[]},{"title":"Steps for Migration","slug":"steps-for-migration","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/walletconnect--5f--pay--5f--docs/3bc26322da5c91d6/copy-agent-prompt.js"],"subdomain":"walletconnect--5f--pay--5f--docs","siteName":"WalletConnect Pay Docs","title":"Upgrade from Web3Wallet to WalletKit for Android - WalletConnect Pay Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-21T16:36:28.911Z","originalFileLocation":"wallets/more/web3wallet-migration/android.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"WalletConnect Pay Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/walletconnect_pay_docs/AOcwI5P3wfLhVKH9/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/walletconnect_pay_docs/AOcwI5P3wfLhVKH9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/walletconnect_pay_docs/AOcwI5P3wfLhVKH9/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/walletconnect_pay_docs/AOcwI5P3wfLhVKH9/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/walletconnect_pay_docs/AOcwI5P3wfLhVKH9/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/walletconnect_pay_docs/AOcwI5P3wfLhVKH9/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/walletconnect_pay_docs/AOcwI5P3wfLhVKH9/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/walletconnect_pay_docs/AOcwI5P3wfLhVKH9/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/walletconnect_pay_docs/AOcwI5P3wfLhVKH9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Upgrade from Web3Wallet to WalletKit for Android - WalletConnect Pay Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"WalletConnect Pay Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.walletconnect.com/wallets/more/web3wallet-migration/android\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://walletconnect_pay_docs.mintlify.app/_mintlify/api/og/v2?division=Web3Wallet+to+Wallet+SDK\u0026amp;title=Upgrade+from+Web3Wallet+to+WalletKit+for+Android\u0026amp;theme=5c31f0324a02a3f0089e9719\u0026amp;signature=6bd996f34ed2157c4eb4d618267e8787ed9c59a6b1af67bbd9a791eb0241d5dd\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Upgrade from Web3Wallet to WalletKit for Android - WalletConnect Pay Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://walletconnect_pay_docs.mintlify.app/_mintlify/api/og/v2?division=Web3Wallet+to+Wallet+SDK\u0026amp;title=Upgrade+from+Web3Wallet+to+WalletKit+for+Android\u0026amp;theme=5c31f0324a02a3f0089e9719\u0026amp;signature=6bd996f34ed2157c4eb4d618267e8787ed9c59a6b1af67bbd9a791eb0241d5dd\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/walletconnect_pay_docs/AOcwI5P3wfLhVKH9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"WalletConnect Pay Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0988f0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.walletconnect.com/wallets/more/web3wallet-migration/android\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/wallets/more/web3wallet-migration/android.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.walletconnect.com/#organization\",\"name\":\"WalletConnect Pay Docs\",\"url\":\"https://docs.walletconnect.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/walletconnect_pay_docs/hAPTTKKg55YyUMTO/logo/light.svg?fit=max\u0026auto=format\u0026n=hAPTTKKg55YyUMTO\u0026q=85\u0026s=ebf607462c774689b134b3c9d014f2b6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.walletconnect.com#website\",\"name\":\"WalletConnect Pay Docs\",\"url\":\"https://docs.walletconnect.com\",\"publisher\":{\"@id\":\"https://docs.walletconnect.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.walletconnect.com/wallets/more/web3wallet-migration/android#webpage\",\"url\":\"https://docs.walletconnect.com/wallets/more/web3wallet-migration/android\",\"name\":\"Upgrade from Web3Wallet to WalletKit for Android\",\"dateModified\":\"2026-10-21T16:36:28.911Z\",\"isPartOf\":{\"@id\":\"https://docs.walletconnect.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.walletconnect.com/wallets/more/web3wallet-migration/android#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.walletconnect.com/wallets/more/web3wallet-migration/android#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"More\",\"item\":\"https://docs.walletconnect.com/wallets/more/best-practices\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web3Wallet to Wallet SDK\",\"item\":\"https://docs.walletconnect.com/wallets/more/web3wallet-migration/quickstart\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Upgrade from Web3Wallet to WalletKit for Android\",\"item\":\"https://docs.walletconnect.com/wallets/more/web3wallet-migration/android\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.walletconnect.com/wallets/more/web3wallet-migration/android#article\",\"headline\":\"Upgrade from Web3Wallet to WalletKit for Android\",\"name\":\"Upgrade from Web3Wallet to WalletKit for Android\",\"url\":\"https://docs.walletconnect.com/wallets/more/web3wallet-migration/android\",\"mainEntityOfPage\":{\"@id\":\"https://docs.walletconnect.com/wallets/more/web3wallet-migration/android#webpage\"},\"dateModified\":\"2026-10-21T16:36:28.911Z\",\"publisher\":{\"@id\":\"https://docs.walletconnect.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.walletconnect.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"WalletConnect Pay Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"WalletConnect Pay Docs","nav":{"global":{"anchors":[{"anchor":"WalletConnect","icon":"globe","href":"https://walletconnect.com"},{"anchor":"Blog","icon":"newspaper","href":"https://walletconnect.com/blog"},{"anchor":"Whitepaper","icon":"book","href":"https://whitepaper.walletconnect.com/"},{"anchor":"Report an Issue","icon":"bug","href":"/report-an-issue"}]},"tabs":[{"tab":"Wallets","icon":"wallet","dropdowns":[{"dropdown":"Wallet SDK - Overview","icon":"wallet","pages":[{"mode":"frame","title":"WalletConnect Documentation","sidebarTitle":"Home","href":""},{"group":"Getting Started","pages":[{"title":"WalletConnect Wallet SDK","sidebarTitle":"Quickstart","href":"/wallets/overview"}]},{"group":"Features","pages":[{"title":"Verify API","sidebarTitle":"Verify","href":"/wallets/features/verify"},{"title":"Link Mode","href":"/wallets/features/link-mode"},{"title":"One-Click Auth","href":"/wallets/features/one-click-auth"}]},{"group":"Chain Support","pages":[{"title":"Chain Support","sidebarTitle":"Overview","href":"/wallets/chains/overview"},{"title":"Ethereum","href":"/wallets/chains/evm"},{"title":"Solana","href":"/wallets/chains/solana"},{"title":"Bitcoin","href":"/wallets/chains/bitcoin"},{"title":"Sui","href":"/wallets/chains/sui"},{"title":"Stacks","href":"/wallets/chains/stacks"},{"title":"TON","href":"/wallets/chains/ton"},{"title":"Tron","href":"/wallets/chains/tron"},{"title":"ADI Chain","href":"/wallets/chains/adi"},{"title":"Canton","href":"/wallets/chains/canton"},{"title":"Stellar","href":"/wallets/chains/stellar"}]},{"group":"WalletGuide","pages":[{"title":"WalletGuide Submission","sidebarTitle":"Submit New Wallet","href":"/wallets/walletguide/submit-wallet"},{"title":"Wallets","sidebarTitle":"Wallet List","href":"/wallets/walletguide/wallet-list"},{"title":"Chain Onboarding","sidebarTitle":"Submit New Chain","href":"/wallets/walletguide/submit-chain"},{"title":"Supported Chains","href":"/wallets/walletguide/chain-list"},{"title":"Explorer API","href":"/wallets/walletguide/explorer-api"},{"title":"WalletConnect Certified","sidebarTitle":"WalletConnect Certified","href":"/wallets/walletguide/certified"}]},{"group":"More","pages":[{"sidebarTitle":"Best Practices","title":"Best Practices for Wallets","href":"/wallets/more/best-practices"},{"sidebarTitle":"Push Notifications","title":"Push Notifications","href":"/wallets/more/push-notifications"},{"title":"Staying up to date","href":"/wallets/more/updating-wallet-sdk"},{"group":"Web3Wallet to Wallet SDK","pages":[{"title":"Upgrade from Web3Wallet to Reown WalletKit","sidebarTitle":"Overview","href":"/wallets/more/web3wallet-migration/quickstart"},{"title":"Upgrade from Web3Wallet to WalletKit for Web","sidebarTitle":"WalletKit - Web","href":"/wallets/more/web3wallet-migration/web"},{"title":"Upgrade from Web3Wallet to WalletKit for React Native","sidebarTitle":"WalletKit - React Native","href":"/wallets/more/web3wallet-migration/react-native"},{"title":"Upgrade from Web3Wallet to WalletKit for Flutter","sidebarTitle":"WalletKit - Flutter","description":null,"href":"/wallets/more/web3wallet-migration/flutter"},{"title":"Upgrade from Web3Wallet to WalletKit for Android","sidebarTitle":"WalletKit - Android","href":"/wallets/more/web3wallet-migration/android"},{"title":"Upgrade from Web3Wallet to WalletKit for iOS","sidebarTitle":"WalletKit - iOS","description":null,"href":"/wallets/more/web3wallet-migration/ios"},{"title":"Upgrade from Web3Wallet to WalletKit for .NET","sidebarTitle":"WalletKit - Unity","href":"/wallets/more/web3wallet-migration/unity"}]}]},{"group":"Custodians \u0026 Institutions","pages":[{"title":"WalletConnect for Custodians and Institutions","sidebarTitle":"Quickstart","href":"/wallets/custodians/overview"},{"title":"How to Control Which Apps Can Connect to Your Users’ Wallets","sidebarTitle":"Managing Dapp Access","href":"/wallets/custodians/app-access-control"},{"title":"How to Control Which Smart Contracts Your Users Can Interact With","sidebarTitle":"Managing Smart Contract Access","href":"/wallets/custodians/contract-access-control"},{"title":"Extended WalletConnect Sessions Request","sidebarTitle":"Extended Sessions Request","href":"/wallets/custodians/extended-sessions"}]}]},{"dropdown":"Web","icon":"js","description":"Wallet SDK on Web","pages":[{"title":"Installation","href":"/wallets/web/installation"},{"title":"Usage","href":"/wallets/web/usage"},{"title":"One-click Auth","href":"/wallets/web/one-click-auth"},{"title":"Verify API","href":"/wallets/web/verify"},{"title":"Wallet Call API","href":"/wallets/web/eip5792"},{"title":"Chain Abstraction","href":"/wallets/web/chain-abstraction"},{"title":"Best Practices","href":"/wallets/web/best-practices"},{"title":"Resources","href":"/wallets/web/resources"},{"group":"Cloud","pages":[{"title":"Explorer Submission","href":"/wallets/web/cloud/explorer-submission"},{"title":"Relay","href":"/wallets/web/cloud/relay"},{"title":"Analytics","href":"/wallets/web/cloud/analytics"}]}]},{"dropdown":"Android","icon":"android","description":"Wallet SDK on Android","pages":[{"group":"Core","pages":[{"title":"Installation","href":"/wallets/android/installation"},{"title":"Usage","href":"/wallets/android/usage"},{"title":"One-click Auth","href":"/wallets/android/one-click-auth"},{"title":"Mobile Linking","href":"/wallets/android/mobile-linking"},{"title":"Link Mode","href":"/wallets/android/link-mode"},{"title":"Verify API","href":"/wallets/android/verify"},{"title":"Wallet Call API","href":"/wallets/android/eip5792"},{"title":"Chain Abstraction","href":"/wallets/android/chain-abstraction"},{"title":"Best Practices","href":"/wallets/android/best-practices"},{"title":"Resources","href":"/wallets/android/resources"}]},{"group":"Cloud","pages":[{"title":"Explorer Submission","href":"/wallets/android/cloud/explorer-submission"},{"title":"Relay","href":"/wallets/android/cloud/relay"},{"title":"Analytics","href":"/wallets/android/cloud/analytics"}]}]},{"dropdown":"iOS","icon":"apple","description":"Wallet SDK on iOS","pages":[{"group":"Core","pages":[{"title":"Installation","href":"/wallets/ios/installation"},{"title":"Usage","href":"/wallets/ios/usage"},{"title":"One-click Auth","href":"/wallets/ios/one-click-auth"},{"title":"Mobile Linking","href":"/wallets/ios/mobile-linking"},{"title":"Link Mode","href":"/wallets/ios/link-mode"},{"title":"Verify API","href":"/wallets/ios/verify"},{"title":"Wallet Call API","href":"/wallets/ios/eip5792"},{"title":"Chain Abstraction","href":"/wallets/ios/chain-abstraction"},{"title":"Best Practices","href":"/wallets/ios/best-practices"},{"title":"Resources","href":"/wallets/ios/resources"}]},{"group":"Cloud","pages":[{"title":"Explorer Submission","href":"/wallets/ios/cloud/explorer-submission"},{"title":"Relay","href":"/wallets/ios/cloud/relay"},{"title":"Analytics","href":"/wallets/ios/cloud/analytics"}]}]},{"dropdown":"Flutter","icon":"flutter","description":"Wallet SDK on Flutter","pages":[{"title":"Installation","href":"/wallets/flutter/installation"},{"title":"Usage","href":"/wallets/flutter/usage"},{"title":"One-click Auth","href":"/wallets/flutter/one-click-auth"},{"title":"Mobile Linking","href":"/wallets/flutter/mobile-linking"},{"title":"Link Mode","href":"/wallets/flutter/link-mode"},{"title":"Verify API","href":"/wallets/flutter/verify"},{"title":"Wallet Call API","href":"/wallets/flutter/eip5792"},{"title":"Chain Abstraction","href":"/wallets/flutter/chain-abstraction"},{"group":"Cloud","pages":[{"title":"Explorer Submission","href":"/wallets/flutter/cloud/explorer-submission"},{"title":"Relay","href":"/wallets/flutter/cloud/relay"},{"title":"Analytics","href":"/wallets/flutter/cloud/analytics"}]}]},{"dropdown":"React Native","icon":"mobile-screen-button","description":"Wallet SDK on React Native","pages":[{"group":"Core","pages":[{"title":"Installation","href":"/wallets/react-native/installation"},{"title":"Usage","href":"/wallets/react-native/usage"},{"title":"One-click Auth","href":"/wallets/react-native/one-click-auth"},{"title":"Mobile Linking","href":"/wallets/react-native/mobile-linking"},{"title":"Link Mode","href":"/wallets/react-native/link-mode"},{"title":"Verify API","href":"/wallets/react-native/verify"},{"title":"Wallet Call API","href":"/wallets/react-native/eip5792"},{"title":"Chain Abstraction","href":"/wallets/react-native/chain-abstraction"},{"title":"Best Practices","href":"/wallets/react-native/best-practices"},{"title":"Resources","href":"/wallets/react-native/resources"}]},{"group":"Cloud","pages":[{"title":"Explorer Submission","href":"/wallets/react-native/cloud/explorer-submission"},{"title":"Relay","href":"/wallets/react-native/cloud/relay"},{"title":"Analytics","href":"/wallets/react-native/cloud/analytics"}]}]},{"dropdown":".NET","icon":"code","description":"Wallet SDK on .NET","pages":[{"title":"Installation","href":"/wallets/c-sharp/installation"},{"title":"Usage","href":"/wallets/c-sharp/usage"},{"title":"Verify API","href":"/wallets/c-sharp/verify"},{"group":"Cloud","pages":[{"title":"Explorer Submission","href":"/wallets/c-sharp/cloud/explorer-submission"},{"title":"Relay","href":"/wallets/c-sharp/cloud/relay"},{"title":"Analytics","href":"/wallets/c-sharp/cloud/analytics"}]}]}]},{"tab":"Apps","icon":"layer-group","pages":[{"title":"Apps","href":"/apps/overview"}]},{"tab":"Network","icon":"globe","pages":[{"title":"Network","href":"/network"}]},{"tab":"Payments","icon":"credit-card","pages":[{"title":"Payments","href":"/payments/overview"}]},{"tab":"API Reference","icon":"code","versions":[{"version":"2026-02-18","default":true,"tag":"Latest","groups":[{"group":"Overview","pages":[{"title":"API Reference","sidebarTitle":"Overview","href":"/payments/api-reference"},{"title":"Authentication","sidebarTitle":"Authentication","href":"/payments/api-reference/authentication"},{"title":"API Versioning","sidebarTitle":"Versioning","href":"/payments/api-reference/versioning"}]},{"group":"Gateway","pages":[{"title":"Get a payment","openapi":"api/2026-02-18.json GET /v1/gateway/payment/{id}","href":"/payments/api-reference/2026-02-18/get-v1-gateway-payment-id"},{"title":"POST /v1/gateway/payment/{id}/cancel","openapi":"api/2026-02-18.json POST /v1/gateway/payment/{id}/cancel","href":"/payments/api-reference/2026-02-18/post-v1-gateway-payment-id-cancel"},{"title":"Confirm a payment","openapi":"api/2026-02-18.json POST /v1/gateway/payment/{id}/confirm","href":"/payments/api-reference/2026-02-18/post-v1-gateway-payment-id-confirm"},{"title":"Fetches an action","openapi":"api/2026-02-18.json POST /v1/gateway/payment/{id}/fetch","href":"/payments/api-reference/2026-02-18/post-v1-gateway-payment-id-fetch"},{"title":"Get payment options","openapi":"api/2026-02-18.json POST /v1/gateway/payment/{id}/options","href":"/payments/api-reference/2026-02-18/post-v1-gateway-payment-id-options"},{"title":"Get the payment status","openapi":"api/2026-02-18.json GET /v1/gateway/payment/{id}/status","href":"/payments/api-reference/2026-02-18/get-v1-gateway-payment-id-status"}]},{"group":"Payments","pages":[{"title":"Create a new payment","openapi":"api/2026-02-18.json POST /v1/payments","href":"/payments/api-reference/2026-02-18/post-v1-payments"},{"title":"List payments","openapi":"api/2026-02-18.json GET /v1/payments","href":"/payments/api-reference/2026-02-18/get-v1-payments"},{"title":"Get payment details","openapi":"api/2026-02-18.json GET /v1/payments/{id}","href":"/payments/api-reference/2026-02-18/get-v1-payments-id"},{"title":"POST /v1/payments/{id}/cancel","openapi":"api/2026-02-18.json POST /v1/payments/{id}/cancel","href":"/payments/api-reference/2026-02-18/post-v1-payments-id-cancel"},{"title":"Get the payment status","openapi":"api/2026-02-18.json GET /v1/payments/{id}/status","href":"/payments/api-reference/2026-02-18/get-v1-payments-id-status"}]},{"group":"Refunds","pages":[{"title":"Mark a payment as refunded","openapi":"api/2026-02-18.json POST /v1/refunds","href":"/payments/api-reference/2026-02-18/post-v1-refunds"}]},{"group":"Merchants","pages":[{"title":"List payments for a merchant","openapi":"api/2026-02-18.json GET /v1/merchants/payments","href":"/payments/api-reference/2026-02-18/get-v1-merchants-payments"},{"title":"Create a merchant","openapi":"api/2026-02-18.json POST /v1/merchants","href":"/payments/api-reference/2026-02-18/post-v1-merchants"},{"title":"List merchants","openapi":"api/2026-02-18.json GET /v1/merchants","href":"/payments/api-reference/2026-02-18/get-v1-merchants"},{"title":"Get a merchant","openapi":"api/2026-02-18.json GET /v1/merchants/{merchantId}","href":"/payments/api-reference/2026-02-18/get-v1-merchants-merchantid"},{"title":"Update a merchant","openapi":"api/2026-02-18.json PATCH /v1/merchants/{merchantId}","href":"/payments/api-reference/2026-02-18/patch-v1-merchants-merchantid"},{"title":"Delete a merchant","openapi":"api/2026-02-18.json DELETE /v1/merchants/{merchantId}","href":"/payments/api-reference/2026-02-18/delete-v1-merchants-merchantid"},{"title":"List settlements","openapi":"api/2026-02-18.json GET /v1/merchants/{merchantId}/settlements","href":"/payments/api-reference/2026-02-18/get-v1-merchants-merchantid-settlements"},{"title":"Create crypto settlements","openapi":"api/2026-02-18.json POST /v1/merchants/{merchantId}/settlements/crypto","href":"/payments/api-reference/2026-02-18/post-v1-merchants-merchantid-settlements-crypto"},{"title":"Update a crypto settlement destination","openapi":"api/2026-02-18.json PUT /v1/merchants/{merchantId}/settlements/crypto/{id}","href":"/payments/api-reference/2026-02-18/put-v1-merchants-merchantid-settlements-crypto-id"},{"title":"Delete a crypto settlement","openapi":"api/2026-02-18.json DELETE /v1/merchants/{merchantId}/settlements/crypto/{id}","href":"/payments/api-reference/2026-02-18/delete-v1-merchants-merchantid-settlements-crypto-id"},{"title":"Get payments for a merchant","openapi":"api/2026-02-18.json GET /v1/merchants/{merchant_id}/payments","href":"/payments/api-reference/2026-02-18/get-v1-merchants-merchant-id-payments"}]}]},{"version":"2026-02-19.preview","pages":[{"title":"2026-02-19.preview","href":"/payments/api-reference/index"}]}]}]},"title":"Upgrade from Web3Wallet to WalletKit for Android - WalletConnect Pay Docs","buildId":"dpl_9DauxEjb9gzCtcuhPQFbquJvx7FJ","deploymentId":"dpl_9DauxEjb9gzCtcuhPQFbquJvx7FJ","dynamics":[],"chunks":[]}