How can we help? 👋

Adding a Custom RPC to your app

How to add a custom RPC URL into your front-end, backend, or dashboard

If you choose to add your own custom RPC into your app, you can so in the following ways:

Frontend - React SDK

<ThirdwebProvider
  chainRpc={{ [ChainId.Mainnet]: "rpc URL here!" }}
  desiredChainId={ChainId.Mainnet}
>
  <Component {...pageProps} />
</ThirdwebProvider>```
 

Backend - TS SDK

const sdk = new ThirdwebSDK("rpc URL here!")
 

Dashboard UI

If you are using the prebuilt minting embed, you'll can add your RPC to the dashboard on the Embed tab in the RPC Url field and copy the embed code again. This version of the embed will use your custom RPC.

Notion image
 
Did this answer your question?
😞
😐
🤩