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.

API Key creation page on thirdweb's dashboard

Screenshot of API key creation page on thirdweb's dashboard

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


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 showing how much of each service has been used

Usage dashboard