BRAINIAC Restaking Risk
Paid Restaking Risk API via x402. Unpaid tool calls return 402.
사용해야 할까요
품질 및 안전성
발견 사항 (7)
- LOWrestaking-risk_cross-network-slashing-exposure에서
- LOWrestaking-risk_cross-network-slashing-exposure에서
- LOWrestaking-risk_slashing-correlation에서
- LOWrestaking-risk_slashing-correlation에서
- LOWrestaking-risk_slashing-window-feasibility에서
- LOWrestaking-risk_slashing-window-feasibility에서
- LOWrestaking-risk_exit-window에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"restaking-risk": {
"url": "https://www.brainiac.software/mcp/restaking-risk"
}
}
}원격 엔드포인트
https://www.brainiac.software/mcp/restaking-riskstreamable-http할 수 있는 일
도구 목록
도구 (4)
🟢restaking-risk_cross-network-slashing-exposure(vaults, allocations, reuse, slashing, scenarios, ...)
Calculate unique collateral, gross exposure, and overlap when caller-supplied vault collateral is reused across networks. Docs: https://www.brainiac.software/api/restaking-risk/cross-network-slashing-exposure Keywords: before you restake or reuse collateral, vaults, allocations, slashing, scenarios, reuse, prices, rates, audit status, audit_status, total collateral, total_collateral, unique collateral, unique_collateral, unique collateral value.
입력 스키마
{
"type": "object",
"properties": {
"vaults": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"collateral": {
"type": "array",
"items": {
"type": "object",
"properties": {
"asset": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"amount": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,77})$",
"description": "amount, string. Required."
}
},
"required": [
"asset",
"amount"
],
"additionalProperties": false,
"description": "item, object. Required."
},
"description": "collateral, array. Required."
}
},
"required": [
"id",
"collateral"
],
"additionalProperties": false,
"description": "item, object. Required."
},
"description": "vaults, array. Required."
},
"allocations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"vault": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"network": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"operator": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"asset": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"amount": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,77})$",
"description": "amount, string. Required."
}
},
"required": [
"id",
"vault",
"network",
"operator",
"asset",
"amount"
],
"additionalProperties": false,
"description": "item, object. Required."
},
"description": "allocations, array. Required."
},
"reuse": {
"description": "reuse, array. Optional.",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"asset": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"amount": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,77})$",
"description": "amount, string. Required."
},
"allocations": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"description": "allocations, array. Required."
}
},
"required": [
"id",
"asset",
"amount",
"allocations"
],
"additionalProperties": false,
"description": "item, object. Required."
}
},
"slashing": {
"type": "array",
"items": {
"type": "object",
"properties": {
"network": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"operator": {
"description": "operator, string, length 1 to 80. Optional.",
"type": "string",
"minLength": 1,
"maxLength": 80
},
"percent": {
"type": "string",
"pattern": "^(100(?:\\.0{1,4})?|(?:0|[1-9]\\d?)(?:\\.\\d{1,4})?)$",
"description": "percent, string. Required."
}
},
"required": [
"network",
"percent"
],
"additionalProperties": false,
"description": "item, object. Required."
},
"description": "slashing, array. Required."
},
"scenarios": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"ordering": {
"type": "string",
"enum": [
"simultaneous",
"sequential"
],
"description": "ordering, string, one of simultaneous, sequential. Required."
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"network": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"operator": {
"description": "operator, string, length 1 to 80. Optional.",
"type": "string",
"minLength": 1,
"maxLength": 80
},
"percent": {
"description": "percent, string. Optional.",
"type": "string",
"pattern": "^(100(?:\\.0{1,4})?|(?:0|[1-9]\\d?)(?:\\.\\d{1,4})?)$"
}
},
"required": [
"network"
],
"additionalProperties": false,
"description": "item, object. Required."
},
"description": "events, array. Required."
}
},
"required": [
"id",
"ordering",
"events"
],
"additionalProperties": false,
"description": "item, object. Required."
},
"description": "scenarios, array. Required."
},
"prices": {
"description": "prices, array. Optional.",
"type": "array",
"items": {
"type": "object",
"properties": {
"asset": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"quote": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"price": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d{0,24})(?:\\.\\d{1,8})?$",
"description": "price, string. Required."
}
},
"required": [
"asset",
"quote",
"price"
],
"additionalProperties": false,
"description": "item, object. Required."
}
},
"rates": {
"description": "rates, array. Optional.",
"type": "array",
"items": {
"type": "object",
"properties": {
"base": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"quote": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"rate": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d{0,24})(?:\\.\\d{1,8})?$",
"description": "price, string. Required."
}
},
"required": [
"base",
"quote",
"rate"
],
"additionalProperties": false,
"description": "item, object. Required."
}
}
},
"required": [
"vaults",
"allocations",
"slashing",
"scenarios"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}출력 스키마
{
"type": "object",
"properties": {
"audit_status": {
"type": "string",
"description": "audit_status. String."
},
"total_collateral": {
"type": "array",
"items": {
"type": "object",
"properties": {
"asset": {
"type": "string",
"description": "asset. String."
},
"amount": {
"type": "string",
"description": "amount. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "total_collateral. Array."
},
"unique_collateral": {
"type": "array",
"items": {
"type": "object",
"properties": {
"asset": {
"type": "string",
"description": "asset. String."
},
"amount": {
"type": "string",
"description": "amount. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "unique_collateral. Array."
},
"unique_collateral_value": {
"type": "object",
"properties": {
"quote": {
"type": "string",
"description": "quote. String."
},
"amount": {
"type": "string",
"description": "amount. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "unique_collateral_value. Object."
},
"total_gross_exposure": {
"type": "array",
"items": {
"type": "object",
"properties": {
"asset": {
"type": "string",
"description": "asset. String."
},
"amount": {
"type": "string",
"description": "amount. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "total_gross_exposure. Array."
},
"total_gross_exposure_value": {
"type": "object",
"properties": {
"quote": {
"type": "string",
"description": "quote. String."
},
"amount": {
"type": "string",
"description": "amount. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "total_gross_exposure_value. Object."
},
"overlapping_exposure": {
"type": "array",
"items": {
"type": "object",
"properties": {
"asset": {
"type": "string",
"description": "asset. String."
},
"amount": {
"type": "string",
"description": "amount. String."
},
"reuse_id": {
"type": "string",
"description": "reuse_id. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "overlapping_exposure. Array."
},
"network_exposure": {
"type": "array",
"items": {
"type": "object",
"properties": {
"network": {
"type": "string",
"description": "network. String."
},
"asset": {
"type": "string",
"description": "asset. String."
},
"gross_amount": {
"type": "string",
"description": "gross_amount. String."
},
"unique_amount": {
"type": "string",
"description": "unique_amount. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "network_exposure. Array."
},
"vault_exposure": {
"type": "array",
"items": {
"type": "object",
"properties": {
"vault": {
"type": "string",
"description": "vault. String."
},
"asset": {
"type": "string",
"description": "asset. String."
},
"collateral_amount": {
"type": "string",
"description": "collateral_amount. String."
},
"gross_amount": {
"type": "string",
"description": "gross_amount. String."
},
"unique_amount": {
"type": "string",
"description": "unique_amount. String."
},
"shared_amount": {
"type": "string",
"description": "shared_amount. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "vault_exposure. Array."
},
"scenarios": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"ordering": {
"type": "string",
"description": "ordering. String."
},
"losses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"asset": {
"type": "string",
"description": "asset. String."
},
"amount": {
"type": "string",
"description": "amount. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "losses. Array."
},
"loss_value": {
"type": "object",
"properties": {
"quote": {
"type": "string",
"description": "quote. String."
},
"amount": {
"type": "string",
"description": "amount. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "loss_value. Object."
},
"remaining": {
"type": "array",
"items": {
"type": "object",
"properties": {
"asset": {
"type": "string",
"description": "asset. String."
},
"amount": {
"type": "string",
"description": "amount. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "remaining. Array."
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"index": {
"type": "number",
"description": "index. Number."
},
"network": {
"type": "string",
"description": "network. String."
},
"operator": {
"type": "string",
"description": "operator. String."
},
"percent": {
"type": "string",
"description": "percent. String."
},
"asset_losses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"asset": {
"type": "string",
"description": "asset. String."
},
"amount": {
"type": "string",
"description": "amount. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "asset_losses. Array."
},
"remaining": {
"type": "array",
"items": {
"type": "object",
"properties": {
"asset": {
"type": "string",
"description": "asset. String."
},
"amount": {
"type": "string",
"description": "amount. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "remaining. Array."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "events. Array."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "scenarios. Array."
},
"maximum_modeled_loss": {
"type": "array",
"items": {
"type": "object",
"properties": {
"asset": {
"type": "string",
"description": "asset. String."
},
"amount": {
"type": "string",
"description": "amount. String."
},
"scenario_id": {
"type": "string",
"description": "scenario_id. String."
},
"ordering": {
"type": "string",
"description": "ordering. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "maximum_modeled_loss. Array."
},
"maximum_modeled_loss_value": {
"type": "object",
"properties": {
"quote": {
"type": "string",
"description": "quote. String."
},
"amount": {
"type": "string",
"description": "amount. String."
},
"scenario_id": {
"type": "string",
"description": "scenario_id. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "maximum_modeled_loss_value. Object."
},
"concentration": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"description": "kind. String."
},
"id": {
"type": "string",
"description": "id. String."
},
"asset": {
"type": "string",
"description": "asset. String."
},
"share": {
"type": "string",
"description": "share. String."
},
"gross_amount": {
"type": "string",
"description": "gross_amount. String."
},
"total_gross": {
"type": "string",
"description": "total_gross. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "concentration. Array."
},
"cascading_paths": {
"type": "array",
"items": {
"type": "object",
"properties": {
"reuse_id": {
"type": "string",
"description": "reuse_id. String."
},
"asset": {
"type": "string",
"description": "asset. String."
},
"amount": {
"type": "string",
"description": "amount. String."
},
"vaults": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "vaults. Array."
},
"networks": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "networks. Array."
},
"operators": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "operators. Array."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "cascading_paths. Array."
},
"warnings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"severity": {
"type": "string",
"description": "severity. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "warnings. Array."
},
"assumptions": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "assumptions. Array."
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢restaking-risk_slashing-correlation(operators)
Cap each operator's network weights at 100 percent of its stake, then weight that exposure by stake. Docs: https://www.brainiac.software/api/restaking-risk/slashing-correlation Keywords: before you restake or reuse collateral, operators, maximum slashing exposure percentage, maximum_slashing_exposure_percentage, correlation risk score, correlation_risk_score, Score cross-network slashing correlation, slashing correlation.
입력 스키마
{
"type": "object",
"properties": {
"operators": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"stake": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "stake, integer, from any to 9007199254740991. Required."
},
"networks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
},
"weight": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"description": "weight, integer, from 1 to 100. Required."
}
},
"required": [
"id",
"weight"
],
"description": "item, object. Required."
},
"description": "networks, array. Required."
}
},
"required": [
"id",
"stake",
"networks"
],
"description": "item, object. Required."
},
"description": "operators, array. Required."
}
},
"required": [
"operators"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"maximum_slashing_exposure_percentage": {
"type": "number",
"description": "maximum_slashing_exposure_percentage. Number."
},
"correlation_risk_score": {
"type": "number",
"description": "correlation_risk_score. Number."
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢restaking-risk_slashing-window-feasibility(epoch, window, detection, evidence, submission, ...)
Compare caller-supplied slashing stages with an available window. Docs: https://www.brainiac.software/api/restaking-risk/slashing-window-feasibility Keywords: before you restake or reuse collateral, epoch, window, detection, evidence, submission, veto, execution, finality, margin, parallel, alternatives, feasibility status, feasibility_status, available window.
입력 스키마
{
"type": "object",
"properties": {
"epoch": {
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false,
"description": "epoch, object. Required."
},
"window": {
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false,
"description": "epoch, object. Required."
},
"detection": {
"description": "detection, object. Optional.",
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"evidence": {
"description": "evidence, object. Optional.",
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"submission": {
"description": "submission, object. Optional.",
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"veto": {
"description": "veto, object. Optional.",
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"execution": {
"description": "execution, object. Optional.",
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"finality": {
"description": "finality, object. Optional.",
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"margin": {
"description": "margin, object. Optional.",
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"parallel": {
"description": "parallel, array. Optional.",
"type": "array",
"items": {
"type": "object",
"properties": {
"stages": {
"type": "array",
"items": {
"type": "string",
"enum": [
"detection",
"evidence",
"submission",
"veto",
"execution",
"finality"
],
"description": "item, string, one of detection, evidence, submission, veto, execution, finality. Required."
},
"description": "stages, array. Required."
}
},
"required": [
"stages"
],
"additionalProperties": false,
"description": "item, object. Required."
}
},
"alternatives": {
"description": "alternatives, array. Optional.",
"type": "array",
"items": {
"type": "object",
"properties": {
"epoch": {
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false,
"description": "epoch, object. Required."
},
"window": {
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false,
"description": "epoch, object. Required."
},
"detection": {
"description": "detection, object. Optional.",
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"evidence": {
"description": "evidence, object. Optional.",
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"submission": {
"description": "submission, object. Optional.",
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"veto": {
"description": "veto, object. Optional.",
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"execution": {
"description": "execution, object. Optional.",
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"finality": {
"description": "finality, object. Optional.",
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"margin": {
"description": "margin, object. Optional.",
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(0|[1-9][0-9]{0,12})$",
"description": "value, string. Required."
},
"unit": {
"type": "string",
"enum": [
"seconds",
"epochs"
],
"description": "unit, string, one of seconds, epochs. Required."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"parallel": {
"description": "parallel, array. Optional.",
"type": "array",
"items": {
"type": "object",
"properties": {
"stages": {
"type": "array",
"items": {
"type": "string",
"enum": [
"detection",
"evidence",
"submission",
"veto",
"execution",
"finality"
],
"description": "item, string, one of detection, evidence, submission, veto, execution, finality. Required."
},
"description": "stages, array. Required."
}
},
"required": [
"stages"
],
"additionalProperties": false,
"description": "item, object. Required."
}
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "id, string, length 1 to 80. Required."
}
},
"required": [
"epoch",
"window",
"id"
],
"additionalProperties": false,
"description": "item, object. Required."
}
}
},
"required": [
"epoch",
"window"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}출력 스키마
{
"type": "object",
"properties": {
"feasibility_status": {
"type": "string",
"description": "feasibility_status. String."
},
"available_window": {
"type": "object",
"properties": {
"seconds": {
"type": "string",
"description": "seconds. String."
},
"epochs": {
"type": "string",
"description": "epochs. String."
},
"remainder_seconds": {
"type": "string",
"description": "remainder_seconds. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "available_window. Object."
},
"total_required": {
"type": "object",
"properties": {
"seconds": {
"type": "string",
"description": "seconds. String."
},
"epochs": {
"type": "string",
"description": "epochs. String."
},
"remainder_seconds": {
"type": "string",
"description": "remainder_seconds. String."
},
"includes_margin": {
"type": "boolean",
"description": "includes_margin. Boolean."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "total_required. Object."
},
"slack": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"description": "kind. String."
},
"seconds": {
"type": "string",
"description": "seconds. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "slack. Object."
},
"stages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"stage": {
"type": "string",
"description": "stage. String."
},
"seconds": {
"type": "string",
"description": "seconds. String."
},
"epochs": {
"type": "string",
"description": "epochs. String."
},
"remainder_seconds": {
"type": "string",
"description": "remainder_seconds. String."
},
"supplied_value": {
"type": "string",
"description": "supplied_value. String."
},
"supplied_unit": {
"type": "string",
"description": "supplied_unit. String."
},
"start_seconds": {
"type": "string",
"description": "start_seconds. String."
},
"end_seconds": {
"type": "string",
"description": "end_seconds. String."
},
"share": {
"type": "string",
"description": "share. String."
},
"parallel": {
"type": "boolean",
"description": "parallel. Boolean."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "stages. Array."
},
"bottlenecks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"stage": {
"type": "string",
"description": "stage. String."
},
"seconds": {
"type": "string",
"description": "seconds. String."
},
"share": {
"type": "string",
"description": "share. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "bottlenecks. Array."
},
"infeasibility": {
"type": "array",
"items": {
"type": "object",
"properties": {
"parameter": {
"type": "string",
"description": "parameter. String."
},
"seconds": {
"type": "string",
"description": "seconds. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "infeasibility. Array."
},
"missing_stages": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "missing_stages. Array."
},
"safety_margin": {
"type": "object",
"properties": {
"supplied": {
"type": "boolean",
"description": "supplied. Boolean."
},
"seconds": {
"type": "string",
"description": "seconds. String."
},
"ideal_seconds": {
"type": "string",
"description": "ideal_seconds. String."
},
"with_margin_seconds": {
"type": "string",
"description": "with_margin_seconds. String."
},
"ideal_fits": {
"type": "boolean",
"description": "ideal_fits. Boolean."
},
"with_margin_fits": {
"type": "boolean",
"description": "with_margin_fits. Boolean."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "safety_margin. Object."
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"feasibility_status": {
"type": "string",
"description": "feasibility_status. String."
},
"available_window_seconds": {
"type": "string",
"description": "available_window_seconds. String."
},
"total_required_seconds": {
"type": "string",
"description": "total_required_seconds. String."
},
"slack_kind": {
"type": "string",
"description": "slack_kind. String."
},
"slack_seconds": {
"type": "string",
"description": "slack_seconds. String."
},
"ideal_fits": {
"type": "boolean",
"description": "ideal_fits. Boolean."
},
"with_margin_fits": {
"type": "boolean",
"description": "with_margin_fits. Boolean."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "alternatives. Array."
},
"assumptions": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "assumptions. Array."
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢restaking-risk_exit-window(unbonding_hours, withdrawal_delay_hours, events)
Subtract the unbonding time and the withdrawal delay from the soonest caller-supplied slash horizon. Docs: https://www.brainiac.software/api/restaking-risk/exit-window Keywords: before you restake or reuse collateral, unbonding hours, withdrawal delay hours, events, exit feasibility score, exit_feasibility_score, time buffer hours, time_buffer_hours, Score exit timing before a slash, exit window.
입력 스키마
{
"type": "object",
"properties": {
"unbonding_hours": {
"type": "integer",
"minimum": 0,
"maximum": 8760,
"description": "unbonding hours, integer, from 0 to 8760. Required."
},
"withdrawal_delay_hours": {
"type": "integer",
"minimum": 0,
"maximum": 8760,
"description": "unbonding hours, integer, from 0 to 8760. Required."
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"network": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "network, string, length 1 to 80. Required."
},
"hours_until_slash": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 8760,
"description": "hours until slash, integer, from any to 8760. Required."
}
},
"required": [
"network",
"hours_until_slash"
],
"description": "item, object. Required."
},
"description": "events, array. Required."
}
},
"required": [
"unbonding_hours",
"withdrawal_delay_hours",
"events"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"exit_feasibility_score": {
"type": "number",
"description": "exit_feasibility_score. Number."
},
"time_buffer_hours": {
"type": "number",
"description": "time_buffer_hours. Number."
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}커뮤니티
증거