blockreq_createEndpoint

Description

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.

Parameters

ParameterTypeRequiredDescription
chainstringYesNetwork slug (use blockreq_supportedNetworks to list available chains)
namestringNoCustom name for the endpoint (auto-generated if omitted)

Returns

FieldTypeDescription
endpointIdstringUnique endpoint identifier
namestringEndpoint name
chainstringNetwork slug
statusstringAlways active for new endpoints
apiKeystringGenerated API key
httpsUrlstringHTTPS endpoint URL
wssUrlstringWebSocket endpoint URL

Errors

CodeMessageDescription
-32602Invalid chainChain slug not in supported networks
-32003Endpoint limit reached (100)Account has reached the maximum number of endpoints

Request Example

{ "jsonrpc": "2.0", "method": "blockreq_createEndpoint", "params": [{ "chain": "ethereum", "name": "my-prod-endpoint" }], "id": 1 }

Response Example

{ "jsonrpc": "2.0", "id": 1, "result": { "endpointId": "a1b2c3d4-...", "name": "my-prod-endpoint", "chain": "ethereum", "status": "active", "apiKey": "f8e7d6c5b4a3...", "httpsUrl": "https://ethereum-rpc.blockreq.com/v1/rpc/f8e7d6c5b4a3...", "wssUrl": "wss://ethereum-rpc.blockreq.com/v1/rpc/f8e7d6c5b4a3..." } }

Code Examples

curl -X POST https://ethereum-rpc.blockreq.com/v1/rpc/BRQ1P0000000000000000000000000000000000000000000000000000 \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"blockreq_createEndpoint","params":[{"chain":"ethereum","name":"my-prod-endpoint"}],"id":1}'

Try It