blockreq_deleteEndpoint
Description
Deletes an endpoint by its ID. Only endpoints owned by the authenticated user can be deleted.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
endpointId | string | Yes | The endpoint ID to delete |
Returns
| Field | Type | Description |
|---|---|---|
deleted | boolean | Always true on success |
endpointId | string | The deleted endpoint ID |
Errors
| Code | Message | Description |
|---|---|---|
| -32602 | Missing required parameter: endpointId | No endpointId provided |
| -32004 | Endpoint not found or not owned by this user | Invalid or unauthorized endpoint |
Request Example
{
"jsonrpc": "2.0",
"method": "blockreq_deleteEndpoint",
"params": [{ "endpointId": "a1b2c3d4-..." }],
"id": 1
}Response Example
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"deleted": true,
"endpointId": "a1b2c3d4-..."
}
}Code Examples
curl -X POST https://ethereum-rpc.blockreq.com/v1/rpc/BRQ1P0000000000000000000000000000000000000000000000000000 \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"blockreq_deleteEndpoint","params":[{"endpointId":"a1b2c3d4-..."}],"id":1}'