Create an RPC endpoint

Create the endpoint

  1. Sign in to the GetBlock dashboard.
  2. In Endpoints, select Get endpoint.
  3. For this example, choose Ethereum, Mainnet, Full and JSON-RPC. Select a location.
  4. Select Get, then copy the complete URL from the endpoint list.

The URL contains your access token. Treat the whole URL as a credential.

Connect your application

Save the URL as GETBLOCK_ENDPOINT in your application's environment. Use it for the first JSON-RPC request.

For a different network, create another endpoint with that network selected. The endpoint determines which chain receives the request.