Score exit timing before a slash
restaking-risk_exit-windowSubtract the unbonding time and the withdrawal delay from the soonest caller-supplied slash horizon. The buffer is that remainder in hours. The feasibility score is the buffer divided by the soonest horizon, and it is zero when the buffer is negative. No queue is read from a network. Price $0.04 USDC. POST /api/v1/restaking-risk/exit-window. An unpaid call returns the x402 payment terms and does not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"unbonding_hours": "<unbonding_hours>",
"withdrawal_delay_hours": "<withdrawal_delay_hours>",
"events": "<events>"
},
"name": "restaking-risk_exit-window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | events, array. Required. | |
| unbonding_hours | Yes | unbonding hours, integer, from 0 to 8760. Required. | |
| withdrawal_delay_hours | Yes | unbonding hours, integer, from 0 to 8760. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time_buffer_hours | No | time_buffer_hours. Number. | |
| exit_feasibility_score | No | exit_feasibility_score. Number. |