3 min read
Using a non-custodial wallet is a necessity when interacting with web3 dApps. Backpack and Solflare are two of the most widely used Solana non-custodial wallets. Note: at the time of this last update, Phantom Wallet does not support custom RPCs.
Most non-custodial wallets (including Backpack and Solflare) come with default RPC nodes set up. Using these wallets with default networks is acceptable for the majority of applications most of the time. However, suppose the operations you are performing require transactions to reach the chain faster or updating a balance where the latest information is crucial - in that case, a fast, reliable RPC node can come in handy. Sometimes the nodes behind these wallets may experience some downtime or lag as these wallets are public and a lot of people are accessing them at the same time. During such times, having a custom RPC node can come in handy.
What You Will Do
In this guide, we will see how to add a custom RPC to Backpack and Solflare.
What You Will Need
- Nodejs installed (version 16.15 or higher)
- Backpack Wallet or Solflare extension installed
- HTTP Proxy installed
- A text editor
- npm or yarn installed (We will be using npm to initialize our project and install the necessary packages. Feel free to use yarn instead if that’s your preferred package manager)
Setting Up a QuickNode Solana Endpoint
The purpose of setting up a custom RPC in these wallets is to have a fast, reliable RPC node behind the wallet, which is why we will use QuickNode for this. So just grab a free QuickNode and head over to the next step.
You'll need the HTTP Provider link later, so copy it and save it.
Adding Solana Node to Backpack and Solflare
Now that we have a QuickNode Solana RPC, let us use it to power our wallets:
Step 1: Open your Backpack wallet and click open the Settings menu from the top right corner.
Step 2: Click Preferences > Solana
Step 3: Click RPC Connection > Custom
Step 4: Paste your QuickNode Solana Node's RPC URL in the RPC field. Click Switch. Your QuickNode RPC is set up in Backpack now. You should see a "✓" next to the Custom RPC field.
That's it! You have successfully set Backpack to use your QuickNode Solana RPC.
Step 1: Go to your Solflare wallet and click on the setting logo on the bottom right. Then click on Network.
Step 2: Click on ADD CUSTOM NODE. Enter a name for your node (QuickNode RPC in this example) and then paste your QuickNode Solana Node's RPC URL in the second field. Click Save and then click Proceed. Your QuickNode RPC is set up in Solflare now.
We ❤️ Feedback! If you have any feedback or questions on this guide, please let us know.