Find Frequently Asked Questions about Particle Connect.
How do I add a custom wallet to Particle Connect?
Answer: Particle Connect, out-of-the-box, supports MetaMask, WalletConnect, Phantom, Coinbase Wallet, OKX Wallet, Trust Wallet, and Bitget Wallet.
Although, a custom wallet can be added given it supports application injection (the vast majority of extension-based wallets). To add an injected wallet to Particle Connect, you’ll need to place injected
from @particle-network/connectkit
(for Web) within the connectorFns
object.
An example of this has been included below.
Do I need to use Particle Auth if I'm using Particle Connect?
Answer: No, Particle Connect already integrates Particle Auth for social logins under the hood. If you’re using Particle Connect, there’s no need to install or configure any additional SDKs.
Does Particle Connect include support for Bitcoin wallets through BTC Connect?
Answer: No, Particle Connect does not natively support Bitcoin wallets. To integrate Bitcoin wallets, you’ll need to use BTC Connect. Currently, it’s not possible to include Bitcoin wallets within the Particle Connect modal, so this functionality must be handled separately.
How do I use account abstraction with Particle Connect?
Answer: To enable account abstraction with Particle Connect, start by configuring the aa
plugin through the ConnectKitProvider
.
Once configured, you can use the useSmartAccount
hook within your application. This hook gives you access to an object to manage the smart account, streamlining tasks like sending transactions and signing messages.
How do I fix webpack 5 polyfills error when creating a new React application?
Answer: When using create-react-app
version 5 or above, you might encounter issues due to the lack of NodeJS polyfills, which are no longer included by default. To fix this, you can use react-app-rewired
and install the necessary polyfill modules.
Step 1: After creating a new application with CRA
, install react-app-rewired
and the required polyfill packages.
If you’re using Yarn:
If you’re using NPM:
Step 2: Create a config-overrides.js
file in the root of your project and add the necessary configuration to include the missing polyfills. This file will override the default Webpack configuration provided by create-react-app
.
Step 3: Modify the scripts
section in your package.json
to use react-app-rewired
instead of the default react-scripts
:
After making these changes, your React application should build successfully without encountering NodeJS polyfill errors.
How do I fix the '__wbindgen_add_to_stack_pointer' error in a React app using Vite?
Answer: If you’re encountering the error "Cannot read properties of undefined (reading '__wbindgen_add_to_stack_pointer')"
in your React app using Vite, it likely relates to issues with loading a WebAssembly (Wasm) module.
To resolve this, you can use the Particle Network WASM plugin with a customized Vite configuration. Here’s how to set it up:
vite.config.ts
: Add the following configuration to correctly handle the WebAssembly module in development mode:This configuration helps ensure that the WebAssembly module is correctly copied and accessible during development, preventing the __wbindgen_add_to_stack_pointer
error from occurring.
Still need help?
Open a ticket with Particle’s Developer Relations team through the dedicated Telegram support bot.
Find Frequently Asked Questions about Particle Connect.
How do I add a custom wallet to Particle Connect?
Answer: Particle Connect, out-of-the-box, supports MetaMask, WalletConnect, Phantom, Coinbase Wallet, OKX Wallet, Trust Wallet, and Bitget Wallet.
Although, a custom wallet can be added given it supports application injection (the vast majority of extension-based wallets). To add an injected wallet to Particle Connect, you’ll need to place injected
from @particle-network/connectkit
(for Web) within the connectorFns
object.
An example of this has been included below.
Do I need to use Particle Auth if I'm using Particle Connect?
Answer: No, Particle Connect already integrates Particle Auth for social logins under the hood. If you’re using Particle Connect, there’s no need to install or configure any additional SDKs.
Does Particle Connect include support for Bitcoin wallets through BTC Connect?
Answer: No, Particle Connect does not natively support Bitcoin wallets. To integrate Bitcoin wallets, you’ll need to use BTC Connect. Currently, it’s not possible to include Bitcoin wallets within the Particle Connect modal, so this functionality must be handled separately.
How do I use account abstraction with Particle Connect?
Answer: To enable account abstraction with Particle Connect, start by configuring the aa
plugin through the ConnectKitProvider
.
Once configured, you can use the useSmartAccount
hook within your application. This hook gives you access to an object to manage the smart account, streamlining tasks like sending transactions and signing messages.
How do I fix webpack 5 polyfills error when creating a new React application?
Answer: When using create-react-app
version 5 or above, you might encounter issues due to the lack of NodeJS polyfills, which are no longer included by default. To fix this, you can use react-app-rewired
and install the necessary polyfill modules.
Step 1: After creating a new application with CRA
, install react-app-rewired
and the required polyfill packages.
If you’re using Yarn:
If you’re using NPM:
Step 2: Create a config-overrides.js
file in the root of your project and add the necessary configuration to include the missing polyfills. This file will override the default Webpack configuration provided by create-react-app
.
Step 3: Modify the scripts
section in your package.json
to use react-app-rewired
instead of the default react-scripts
:
After making these changes, your React application should build successfully without encountering NodeJS polyfill errors.
How do I fix the '__wbindgen_add_to_stack_pointer' error in a React app using Vite?
Answer: If you’re encountering the error "Cannot read properties of undefined (reading '__wbindgen_add_to_stack_pointer')"
in your React app using Vite, it likely relates to issues with loading a WebAssembly (Wasm) module.
To resolve this, you can use the Particle Network WASM plugin with a customized Vite configuration. Here’s how to set it up:
vite.config.ts
: Add the following configuration to correctly handle the WebAssembly module in development mode:This configuration helps ensure that the WebAssembly module is correctly copied and accessible during development, preventing the __wbindgen_add_to_stack_pointer
error from occurring.
Still need help?
Open a ticket with Particle’s Developer Relations team through the dedicated Telegram support bot.