Skip to content

blockreq_createEndpoint

Creates a new endpoint on a specified blockchain network. Each account is limited to 100 endpoints. The response includes the generated API key and endpoint URLs.

ParameterTypeRequiredDescription
chainstringYesNetwork slug (use blockreq_supportedNetworks to list available chains)
namestringNoCustom name for the endpoint (auto-generated if omitted)
FieldTypeDescription
endpointIdstringUnique endpoint identifier
namestringEndpoint name
chainstringNetwork slug
statusstringAlways active for new endpoints
apiKeystringGenerated API key
httpsUrlstringHTTPS endpoint URL
wssUrlstringWebSocket endpoint URL
CodeMessageDescription
-32602Invalid chainChain slug not in supported networks
-32003Endpoint limit reached (100)Account has reached the maximum number of endpoints
{
"jsonrpc": "2.0",
"method": "blockreq_createEndpoint",
"params": [{ "chain": "ethereum", "name": "my-prod-endpoint" }],
"id": 1
}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"endpointId": "a1b2c3d4-...",
"name": "my-prod-endpoint",
"chain": "ethereum",
"status": "active",
"apiKey": "f8e7d6c5b4a3...",
"httpsUrl": "https://eth-mainnet.blockreq.com/v1/rpc/f8e7d6c5b4a3...",
"wssUrl": "wss://eth-mainnet.blockreq.com/v1/rpc/f8e7d6c5b4a3..."
}
}
Terminal window
curl -X POST https://eth-mainnet.blockreq.com/v1/rpc/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"blockreq_createEndpoint","params":[{"chain":"ethereum","name":"my-prod-endpoint"}],"id":1}'