API Keys & Applications
API keys are used to authenticate your requests to BlockReq’s RPC endpoints. Each endpoint you create comes with its own API key.
Getting Your API Key
Section titled “Getting Your API Key”From the Dashboard
Section titled “From the Dashboard”- Sign in to BlockReq Dashboard
- Go to Settings in the left sidebar
- Your API keys are listed under the API Keys section
- Click the copy icon to copy any key
From an Endpoint
Section titled “From an Endpoint”Each endpoint displays its API key, HTTPS URL, and WSS URL. Navigate to Endpoints to view all your endpoints.
Creating an Application (Endpoint)
Section titled “Creating an Application (Endpoint)”An endpoint is your gateway to a specific blockchain network. To create one:
- Go to Endpoints
- Click + Add Endpoint
- Select a blockchain network
- (Optional) Give it a descriptive name
- Your endpoint is ready — copy the RPC URL and start building
See Create Your First Endpoint for a detailed walkthrough with code examples.
Using Your API Key
Section titled “Using Your API Key”Replace YOUR_API_KEY in the endpoint URL:
HTTPS: https://eth-mainnet.blockreq.com/v1/rpc/YOUR_API_KEYWSS: wss://eth-mainnet.blockreq.com/v1/ws/YOUR_API_KEYQuick Example
Section titled “Quick Example”curl -X POST https://eth-mainnet.blockreq.com/v1/rpc/YOUR_API_KEY \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'Programmatic Management
Section titled “Programmatic Management”You can also manage endpoints via the BlockReq API:
| Method | Description |
|---|---|
blockreq_supportedNetworks | List available blockchains |
blockreq_createEndpoint | Create a new endpoint |
blockreq_listEndpoints | List all your endpoints |
blockreq_deleteEndpoint | Delete an endpoint |
Security Best Practices
Section titled “Security Best Practices”- Never expose API keys in client-side code — use a backend proxy
- Rotate keys by creating a new endpoint and updating your configuration
- Use separate endpoints for development, staging, and production
- Monitor usage on the Dashboard to detect unusual activity