Docs

Add RPC Edge to your application

To enable RPC Edge usage in an application, obtain a thirdweb Client ID & Secret Key with RPC Edge enabled and pass it into the app's configuration.

Obtain a Client ID & Secret Key by navigating to Settings > API Keys > Create API Key.

Screenshot of API key creation page on thirdweb's dashboard

Pass in the Client ID and Secret Keys into the application’s configuration.

import { ThirdwebProvider } from "@thirdweb-dev/react";
function MyApp() {
return (
<ThirdwebProvider
activeChain="ethereum"
clientId="your-client-id"
>
<YourApp />
</ThirdwebProvider>
);
}

Override default RPC

To override the default RPC for any given chain:

import { ThirdwebProvider } from "@thirdweb-dev/react";
const App = () => {
return (
<ThirdwebProvider
activeChain={{
rpc: ["https://<your-rpc-to-use>.com"],
}}
>
<YourApp />
</ThirdwebProvider>
);
};

View RPC usage

View RPC request usage in the dashboard settings.

Usage dashboard