Set up your own RPC Node in Metamask for Fast Transactions on Polygon
Sometimes using regular RPC for Polygon in MetaMask brings you pain of failed transactions, wrong gas fee predictions and sometimes it just does not respond due to excessive traffic. The answer to all these problems is simple, create your own RPC node and use that in Meta Mask to avoid congestion to the node so your transactions go through easily. We can use Alchemy for that.
Alchemy
Alchemy Build is a no-configuration in-house suite of developer tools to prototype, debug, and ship products faster.
Steps to create your own RPC Node
First of all, sign up on alchemy.com to create a free account
Once inside the dashboard, click on “Create App”. Give your app a name, description and select production in the environment. For chain select Polygon and for network use mainnet.
Click “Create App” to finish the setup. Give it a few seconds to spin up an app for you. Once the app is created, you will see it under your apps in the dashboard.
Then click on the “View Key” on your newly created app and from the popup copy the HTTP URL.
Now go to your meta mask network settings and select the network for which you want to use the RPC for. Paste your new copied HTTP URL in the RPC URL field and click save.
Congrats, now you use your own RPC and hopefully all your Polygon network problems should go away now.