跳转到内容

blockreq_deleteEndpoint

此内容尚不支持你的语言。

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

ParameterTypeRequiredDescription
endpointIdstringYesThe endpoint ID to delete
FieldTypeDescription
deletedbooleanAlways true on success
endpointIdstringThe deleted endpoint ID
CodeMessageDescription
-32602Missing required parameter: endpointIdNo endpointId provided
-32004Endpoint not found or not owned by this userInvalid or unauthorized endpoint
{
"jsonrpc": "2.0",
"method": "blockreq_deleteEndpoint",
"params": [{ "endpointId": "a1b2c3d4-..." }],
"id": 1
}
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"deleted": true,
"endpointId": "a1b2c3d4-..."
}
}
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_deleteEndpoint","params":[{"endpointId":"a1b2c3d4-..."}],"id":1}'