blockreq_deleteEndpoint

Description

Deletes an endpoint by its ID. Only endpoints owned by the authenticated user can be deleted.

Parameters

ParameterTypeRequiredDescription
endpointIdstringYesThe endpoint ID to delete

Returns

FieldTypeDescription
deletedbooleanAlways true on success
endpointIdstringThe deleted endpoint ID

Errors

CodeMessageDescription
-32602Missing required parameter: endpointIdNo endpointId provided
-32004Endpoint not found or not owned by this userInvalid 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}'

Try It