Create an RPC endpoint
Create the endpoint
- Sign in to the GetBlock dashboard.
- In Endpoints, select Get endpoint.
- For this example, choose Ethereum, Mainnet, Full and JSON-RPC. Select a location.
- 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.