|
| 1 | +--- |
| 2 | +title: "AppKit FAQs" |
| 3 | +sidebarTitle: "FAQs" |
| 4 | +--- |
| 5 | + |
| 6 | +This FAQ section covers common questions and solutions for using AppKit. The questions are organized into three main categories: |
| 7 | + |
| 8 | +- **Configuration**: Questions about setting up AppKit, including project configuration, wallet visibility, and RPC customization. |
| 9 | +- **Features**: Information about AppKit's capabilities, including off-ramp support, multi-wallet address retrieval, and branding options. |
| 10 | +- **Technical**: Technical details about project approval requirements and initialization constraints. |
| 11 | + |
| 12 | +## AppKit Configuration |
| 13 | + |
| 14 | +<AccordionGroup> |
| 15 | + <Accordion title="Why am I seeing an 'Invalid App Configuration' error?"> |
| 16 | + <img src="/images/faq/invalidAppConfiguration.png" /> |
| 17 | + |
| 18 | + This error typically occurs when the `projectId` is not configured correctly. To resolve this: |
| 19 | + |
| 20 | + 1. Create a valid project ID at [https://cloud.reown.com/](https://cloud.reown.com/) |
| 21 | + 2. Add it to your AppKit configuration: |
| 22 | + |
| 23 | + ```javascript |
| 24 | + const modal = createAppKit({ |
| 25 | + ... |
| 26 | + projectId: "..." // Add your valid projectId here |
| 27 | + }); |
| 28 | + ``` |
| 29 | + 3. Ensure that you have added your domain to the allowed domains in your project settings. If you have not done so, you can do so by navigating to **"Project Domains"** on the Dashboard, clicking on **"Configure Domains"** and adding your domain. |
| 30 | + </Accordion> |
| 31 | + |
| 32 | + <Accordion title="Why can't I see any wallets in the modal and only see the 'Connect Wallet' title?"> |
| 33 | + **Problem**: Users only see the "Connect Wallet" title in the modal after clicking the connect button. |
| 34 | + |
| 35 | + **Solution**: This issue typically has two possible causes: |
| 36 | + |
| 37 | + 1. **Version Mismatch**: Ensure all @reown libraries use the same version in your `package.json`: |
| 38 | + |
| 39 | + ```json |
| 40 | + { |
| 41 | + "dependencies": { |
| 42 | + "@reown/appkit": "1.7.8", |
| 43 | + "@reown/appkit-adapter-wagmi": "1.7.8" |
| 44 | + // ... other dependencies |
| 45 | + } |
| 46 | + } |
| 47 | + ``` |
| 48 | + |
| 49 | + 2. **Initialization Location**: Call `createAppKit` outside of your component to ensure proper initialization: |
| 50 | + |
| 51 | + ```javascript |
| 52 | + // Create modal |
| 53 | + createAppKit({ |
| 54 | + adapters: [wagmiAdapter], |
| 55 | + ...generalConfig, |
| 56 | + features: { |
| 57 | + analytics: true // Optional - defaults to your Cloud configuration |
| 58 | + } |
| 59 | + }) |
| 60 | + |
| 61 | + export function App() { |
| 62 | + return ( |
| 63 | + <WagmiProvider ...> |
| 64 | + <QueryClientProvider ...> |
| 65 | + <appkit-button /> |
| 66 | + </QueryClientProvider> |
| 67 | + </WagmiProvider> |
| 68 | + ) |
| 69 | + } |
| 70 | + ``` |
| 71 | + </Accordion> |
| 72 | + |
| 73 | + <Accordion title="How can I use custom RPCs with AppKit?"> |
| 74 | + You can use your own RPC by setting the `customRpcUrls` option in the AppKit configuration. This lets you define custom RPC URLs for specific chains. Each entry must follow the format: |
| 75 | + |
| 76 | + ```javascript |
| 77 | + customRpcUrls: { |
| 78 | + [ChainId.Ethereum]: 'https://your.custom.rpc.url', |
| 79 | + [ChainId.Polygon]: 'https://your.polygon.rpc.url' |
| 80 | + } |
| 81 | + ``` |
| 82 | + |
| 83 | + AppKit will prioritize these URLs over the default ones. |
| 84 | + </Accordion> |
| 85 | +</AccordionGroup> |
| 86 | + |
| 87 | +## Features |
| 88 | + |
| 89 | +<AccordionGroup> |
| 90 | + <Accordion title="When will Reown support off-ramp functionality?"> |
| 91 | + Reown currently does not plan to support off-ramp functionality. |
| 92 | + </Accordion> |
| 93 | + |
| 94 | + <Accordion title="How do I get retrieve multiple addresses from multiple connected wallets?"> |
| 95 | + To retrieve addresses from multiple connected wallets, refer to our multichain example: |
| 96 | + |
| 97 | + - [Live Demo](https://appkit-web-examples-react-multichain.reown.com/) |
| 98 | + - [Source Code](https://github.com/reown-com/appkit-web-examples/tree/main/react/react-multichain) |
| 99 | + |
| 100 | + Example using React SDK: |
| 101 | + |
| 102 | + ```javascript |
| 103 | + import { useAppKitAccount } from '@reown/appkit/react' |
| 104 | + |
| 105 | + // Get account states for different chains |
| 106 | + const eip155AccountState = useAppKitAccount({ namespace: 'eip155' }) |
| 107 | + const solanaAccountState = useAppKitAccount({ namespace: 'solana' }) |
| 108 | + ``` |
| 109 | + |
| 110 | + ```javascript |
| 111 | + <> |
| 112 | + EVM Address: {eip155AccountState.address}<br /> |
| 113 | + Solana Address: {solanaAccountState.address}<br /> |
| 114 | + </> |
| 115 | + ``` |
| 116 | + </Accordion> |
| 117 | + |
| 118 | + <Accordion title="How do I remove the 'UX by Reown' branding?"> |
| 119 | + Currently, only enterprise clients can hide "UX by Reown" on the AppKit modal by adjusting this option on our Dashboard. If you are an enterprise client and would like to hide this branding, please contact sales@reown.com. |
| 120 | + </Accordion> |
| 121 | + |
| 122 | + <Accordion title="How do I increase my project's RPC limits?"> |
| 123 | + Reown currently provides 2.5 million requests per 30 days. If you wish to increase this limit, you need to upgrade to AppKit Pro. |
| 124 | + </Accordion> |
| 125 | +</AccordionGroup> |
| 126 | + |
| 127 | +## Technical |
| 128 | + |
| 129 | +<AccordionGroup> |
| 130 | + <Accordion title="Do I need to wait for Web3 app approval before using my projectId?"> |
| 131 | + No, dApps do not need approval in order to use your projectId. |
| 132 | + </Accordion> |
| 133 | + |
| 134 | + <Accordion title="Can I reinitialize AppKit with different network configurations?"> |
| 135 | + Currently, `createAppKit` can only be called once during the application's lifecycle. |
| 136 | + It cannot be lazily initialized and then torn down for re-initialization. |
| 137 | + This means you must pass in all the networks you plan to support during the initial setup. |
| 138 | + </Accordion> |
| 139 | +</AccordionGroup> |
| 140 | + |
| 141 | +## Support |
| 142 | + |
| 143 | +<AccordionGroup> |
| 144 | + <Accordion title="How do I get technical support for AppKit?"> |
| 145 | + Free tier AppKit customers only are only entitled to support via [Discord](https://discord.gg/reown). Please join the Discord server and create a forum post **#developers-forum** and the team will get back to you. |
| 146 | + |
| 147 | + AppKit Pro and Enterprise customers get priority support via dedicated channels. |
| 148 | + </Accordion> |
| 149 | +</AccordionGroup> |
0 commit comments