June 29, 2023

Adding a custom RPC to Metamask

Adding a custom RPC endpoint to metamask can be useful for adding custom networks (for example, new chains) and updating existing providers if they stop working.

Read the guide to the end to find out a life hack how to reduce the cost of gas by 3 times on the BNB chain.

To add a custom RPC, first open Metamask and click Settings -> Networks:

Next, select the network you want to update, or create a new network:

If you want to save 3 times on gas in BNBchain, you should add a custom RPC from ankr. Follow the link: https://www.ankr.com/rpc/bsc

Click on the Sign up button

Sign up by specifying your metamask:

You will get a custom RPC endpoint for the BNB chain:

Copy this endpoint to your metamask wallet.

After that, you will be able to set the gas price at 1 (instead of 3) when signing transactions on the BNB chain.

Disclaimer: As a validator of the BNB chain, when ankr is selected as a validator, he can add any transaction he wants to the block. Since there are only 21 active validators, and the completion of the block takes only 3 seconds, the waiting time will not be long. Thus, ankr is trying to attract more users to its infrastructure!