{"openapi":"3.1.0","info":{"title":"JPool Delegation API","description":"","license":{"name":""},"version":"1.6.0"},"servers":[{"url":"/allocation"}],"paths":{"/epochs":{"get":{"tags":["epochs"],"operationId":"list_epochs","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EpochSummary"}}}}}}}},"/epochs/{epoch}":{"get":{"tags":["epochs"],"operationId":"get_epoch","parameters":[{"name":"epoch","in":"path","description":"Epoch number or 'latest'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EpochSummary"}}}},"404":{"description":"Epoch not found"}}}},"/epochs/{epoch}/delegations":{"get":{"tags":["delegations"],"operationId":"search_delegations","parameters":[{"name":"epoch","in":"path","description":"Epoch number or 'latest'","required":true,"schema":{"type":"string"}},{"name":"slot_category","in":"query","required":false,"schema":{"type":"string"}},{"name":"jpool_only","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"changing","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string"}},{"name":"order","in":"query","required":false,"schema":{"type":"string"}},{"name":"expand","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Delegation"}}}}}}}},"/epochs/{epoch}/delegations/{vote}":{"get":{"tags":["delegations"],"operationId":"get_delegation","parameters":[{"name":"epoch","in":"path","description":"Epoch number or 'latest'","required":true,"schema":{"type":"string"}},{"name":"vote","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Delegation"}}}},"404":{"description":"Delegation not found"}}}},"/epochs/{epoch}/rankings/{dim}":{"get":{"tags":["rankings"],"operationId":"get_ranking","parameters":[{"name":"epoch","in":"path","description":"Epoch number or 'latest'","required":true,"schema":{"type":"string"}},{"name":"dim","in":"path","required":true,"schema":{"type":"string","description":"Which ranking to serve.","enum":["cg","ds","performance"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RankingEntry"}}}}},"400":{"description":"Unknown dimension"}}}},"/keeper/epochs/{epoch}/actions":{"get":{"tags":["keeper"],"operationId":"epoch_actions","parameters":[{"name":"epoch","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"network","in":"query","required":true,"schema":{"type":"string","description":"Cluster the figures belong to.","enum":["mainnet","testnet","devnet"]}},{"name":"pool","in":"query","description":"Stake-pool address.","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max rows (default 500, max 1000).","required":false,"schema":{"type":["integer","null"],"format":"int64","minimum":0}},{"name":"offset","in":"query","description":"Rows to skip.","required":false,"schema":{"type":["integer","null"],"format":"int64","minimum":0}},{"name":"order","in":"query","description":"`desc` (default, newest first) or `asc` (oldest first).","required":false,"schema":{"type":"string","description":"Direction of the `id` (chronological) ordering.","enum":["desc","asc"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActionEntry"}}}}}}}},"/keeper/reconciles":{"get":{"tags":["keeper"],"operationId":"recent_reconciles","parameters":[{"name":"network","in":"query","required":true,"schema":{"type":"string","description":"Cluster the figures belong to.","enum":["mainnet","testnet","devnet"]}},{"name":"pool","in":"query","description":"Stake-pool address.","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Page size (default 50, max 500), newest first.","required":false,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReconcileEntry"}}}}}}}},"/keeper/validators/{vote}/history":{"get":{"tags":["keeper"],"operationId":"validator_history","parameters":[{"name":"vote","in":"path","description":"Validator vote account","required":true,"schema":{"type":"string"}},{"name":"network","in":"query","required":true,"schema":{"type":"string","description":"Cluster the figures belong to.","enum":["mainnet","testnet","devnet"]}},{"name":"pool","in":"query","description":"Stake-pool address.","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Page size (default 100, max 1000).","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"before_id","in":"query","description":"Keyset cursor: rows with `id` below this (previous page's last `id`).","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActionEntry"}}}}}}}},"/pool":{"get":{"tags":["pool"],"summary":"The newest measured epoch.","operationId":"latest","parameters":[{"name":"limit","in":"query","description":"Max rows, newest first (default 50, max 500).","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"network","in":"query","required":false,"schema":{"type":"string","description":"Cluster the figures belong to.","enum":["mainnet","testnet","devnet"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolEpoch"}}}},"404":{"description":"Nothing measured yet"}}}},"/pool/history":{"get":{"tags":["pool"],"summary":"The measured series, newest first.","operationId":"history","parameters":[{"name":"limit","in":"query","description":"Max rows, newest first (default 50, max 500).","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"network","in":"query","required":false,"schema":{"type":"string","description":"Cluster the figures belong to.","enum":["mainnet","testnet","devnet"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PoolEpoch"}}}}}}}},"/pool/redelegation-cost":{"get":{"tags":["pool"],"summary":"The standing cost of the reserve for one epoch, split three ways.","description":"An accounting view, not a fee: nothing here charges a validator. Increases only — a decrease\ncosts no transit.","operationId":"redelegation_cost","parameters":[{"name":"epoch","in":"query","description":"Epoch to serve (default: the newest planned).","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"network","in":"query","required":false,"schema":{"type":"string","description":"Cluster the figures belong to.","enum":["mainnet","testnet","devnet"]}},{"name":"basis","in":"query","required":false,"schema":{"type":"string","description":"Which ledger the attribution reads: `executed` is stake that moved, `planned` is intent that\nhas not run. They aggregate differently.","enum":["executed","planned"]}},{"name":"pool","in":"query","description":"Stake pool address. Unset reads every pool on the cluster.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedelegationCost"}}}},"404":{"description":"No plan recorded for that epoch"}}}},"/pool/withdrawal-list":{"get":{"tags":["pool"],"summary":"The order to drain validators in, newest recorded epoch by default.","description":"Sorted by `jpool_active_stake - target_stake` descending, wind-downs (`target_stake = 0`)\nfirst. Every validator holding withdrawable pool stake is listed, not only the over-target\nones, so a withdrawal cannot run off the end of the list. Lamports throughout.","operationId":"withdrawal_list","parameters":[{"name":"epoch","in":"query","description":"Epoch to serve (default: the newest recorded).","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"network","in":"query","required":false,"schema":{"type":"string","description":"Cluster the figures belong to.","enum":["mainnet","testnet","devnet"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawList"}}}},"404":{"description":"Epoch not recorded, or no pool metrics to compute the floor from"}}}},"/validators/{vote}":{"get":{"tags":["validators"],"operationId":"get_validator","parameters":[{"name":"vote","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidatorDetail"}}}},"404":{"description":"Validator not found"}}}},"/validators/{vote}/bond":{"get":{"tags":["validators"],"operationId":"get_validator_bond","parameters":[{"name":"vote","in":"path","description":"Validator vote account","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BondDetail"}}}},"404":{"description":"Validator not found, or no epoch recorded for it"}}}},"/validators/{vote}/delegations":{"get":{"tags":["validators"],"operationId":"get_validator_history","parameters":[{"name":"vote","in":"path","required":true,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"to","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Delegation"}}}}},"404":{"description":"Validator not found"}}}},"/validators/{vote}/rankings":{"get":{"tags":["validators"],"operationId":"get_validator_rankings","parameters":[{"name":"vote","in":"path","required":true,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"to","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RankHistoryEntry"}}}}},"404":{"description":"Validator not found"}}}},"/validators/{vote}/timeline":{"get":{"tags":["validators"],"operationId":"get_validator_timeline","parameters":[{"name":"vote","in":"path","required":true,"schema":{"type":"string"}},{"name":"from","in":"query","description":"Oldest epoch to fold from.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"to","in":"query","description":"Newest epoch to fold to.","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Event"}}}}},"404":{"description":"Validator not found"}}}}},"components":{"schemas":{"Action":{"type":"object","required":["planned","amount","bond_compensation"],"properties":{"amount":{"type":"integer","format":"int64"},"bond_compensation":{"type":"integer","format":"int64"},"planned":{"type":"string"}}},"ActionEntry":{"type":"object","description":"One `validator_actions` ledger row.","required":["id","network","pool","epoch","vote","kind","reasons","status","created_at","updated_at"],"properties":{"created_at":{"type":"string"},"detail":{"type":["string","null"],"description":"Failure detail, if the action failed."},"epoch":{"type":"integer","format":"int64"},"id":{"type":"integer","format":"int64","description":"Ledger id; also the keyset cursor for history."},"kind":{"type":"string","description":"`increase | decrease | add | remove | update`."},"lamports":{"type":["integer","null"],"format":"int64","description":"Lamports for stake moves, else null."},"network":{"type":"string"},"pool":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"},"description":"Why DIFF emitted this action."},"signature":{"type":["string","null"],"description":"Final signature, once confirmed."},"status":{"type":"string","description":"`pending | expired_pending_finality | confirmed | failed | dry_run`."},"updated_at":{"type":"string"},"vote":{"type":"string","description":"Vote account, or `-` for the pool-wide `UpdatePool`."}}},"Allocation":{"type":"object","required":["bucket","target","actual"],"properties":{"actual":{"type":"integer","format":"int64"},"bucket":{"type":"string"},"target":{"type":"integer","format":"int64"}}},"Attribution":{"type":"object","required":["increase_actions_by_status","validators"],"properties":{"delivered_lamports":{"type":["integer","null"],"format":"int64","description":"Lamports delivered on the chosen basis. `null` means no `increase` ledger exists for this\nepoch, so nothing can be said; `0` means the ledger exists and delivered nothing, which\nis a fact — `increase_actions_by_status` and `note` say why."},"increase_actions_by_status":{"type":"array","items":{"$ref":"#/components/schemas/StatusCount"},"description":"Every `increase` row recorded for this epoch, by status, whatever the basis. `confirmed`\nis the only status that moved stake on chain."},"note":{"type":["string","null"],"description":"Why the chosen basis yielded nothing, when it did."},"validators":{"type":"array","items":{"$ref":"#/components/schemas/ValidatorCost"},"description":"Descending by delivered lamports."}}},"Benchmark":{"type":"object","required":["target_apy"],"properties":{"target_apy":{"type":"number","format":"double","description":"The APY bond health measured validators against."},"target_apy_current":{"type":["number","null"],"format":"double","description":"The same benchmark rebuilt from this epoch's APYs. Absent when the feed could not\nsupply them and the trailing term stood alone."}}},"Bond":{"type":"object","required":["active","balance","health","level","security_balance","security_required","perf_balance","perf_required","compensation_owed"],"properties":{"active":{"type":"boolean"},"balance":{"type":"integer","format":"int64","description":"The bond the plan counted as collateral, net of debt already owed for ended epochs."},"compensation_owed":{"type":"integer","format":"int64","description":"What this validator still owes stakers now: `SUM(accrued − collected)` from the epoch the\nkeeper took over collection, the running epoch included. Zero means nothing is owed. The\nsame total on every row, whichever epoch the row is for."},"health":{"type":"number","format":"double"},"level":{"type":"string","description":"`Healthy` | `Warning` | `Critical` | `Depleted`, or `NoBond` when the validator has no\nbond account at all."},"perf_balance":{"type":"integer","format":"int64"},"perf_required":{"type":"integer","format":"int64"},"security_balance":{"type":"integer","format":"int64"},"security_required":{"type":"integer","format":"int64"}}},"BondDetail":{"type":"object","required":["vote_account","epoch","current","debt","ledger","claims","claims_pending"],"properties":{"claims":{"type":"array","items":{"$ref":"#/components/schemas/Claim"},"description":"Claims that have actually been applied against the debt, by signature. Empty until\ncollection is enabled."},"claims_pending":{"type":"array","items":{"$ref":"#/components/schemas/PendingClaim"},"description":"Claims sent but not yet applied, newest first. The keeper applies a claim on a later tick,\nonce it has landed; until then the debt it settles still reads as outstanding."},"current":{"$ref":"#/components/schemas/Current","description":"The bond as that epoch's plan saw it, just after the boundary. A top-up shows in `live`,\nand here only from the next epoch."},"debt":{"$ref":"#/components/schemas/Debt"},"epoch":{"type":"integer","format":"int64","description":"The newest epoch the pool recorded for this validator."},"ledger":{"type":"array","items":{"$ref":"#/components/schemas/LedgerEntry"},"description":"One row per epoch that charged the bond, newest first. An epoch with no shortfall never\nenters the ledger, so gaps are epochs the validator owed nothing."},"live":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/LiveBond","description":"The bond on chain now. `null` when no RPC endpoint is configured or the read failed."}]},"vote_account":{"type":"string"}}},"BondHealth":{"type":"object","required":["healthy","warning","critical","depleted"],"properties":{"critical":{"type":"integer","format":"int32"},"depleted":{"type":"integer","format":"int32"},"healthy":{"type":"integer","format":"int32"},"warning":{"type":"integer","format":"int32"}}},"Buckets":{"type":"object","description":"Bucket shares in force, whole percents.","required":["base","ds_matching","community_good","performance","defi"],"properties":{"base":{"type":"integer","format":"int32"},"community_good":{"type":"integer","format":"int32"},"defi":{"type":"integer","format":"int32"},"ds_matching":{"type":"integer","format":"int32"},"performance":{"type":"integer","format":"int32"}}},"Candidates":{"type":"object","description":"Why the rest of the cluster is not in the pool. A funnel: each validator counts against the\nfirst gate it fails, so the reasons partition `not_in_pool` and sum with `eligible_to_join`\nback to it.","required":["cluster_total","not_in_pool","blocked_or_superminority","delinquent","no_metadata","high_commission","over_stake_cap","no_bond","eligible_to_join"],"properties":{"blocked_or_superminority":{"type":"integer","format":"int32"},"cluster_total":{"type":"integer","format":"int32"},"delinquent":{"type":"integer","format":"int32","description":"Failing to vote — excluded before metadata is even looked at."},"eligible_to_join":{"type":"integer","format":"int32"},"high_commission":{"type":"integer","format":"int32"},"no_bond":{"type":"integer","format":"int32"},"no_metadata":{"type":"integer","format":"int32"},"not_in_pool":{"type":"integer","format":"int32"},"over_stake_cap":{"type":"integer","format":"int32"}}},"Claim":{"type":"object","required":["signature","lamports","applied_lamports","applied_at"],"properties":{"applied_at":{"type":"string"},"applied_lamports":{"type":"integer","format":"int64","description":"What the claim actually settled against the ledger. Below `lamports` means the claim\nburned collateral no epoch's debt could absorb."},"lamports":{"type":"integer","format":"int64"},"signature":{"type":"string"}}},"CostPerEpoch":{"type":"object","description":"Each field is `lamports × apy / epochs_per_year` over the matching amount above. `null`\npropagates rather than becoming a zero: an unmeasurable APY, an unrecorded buffer or an\nunrecorded year nulls whatever depends on it.","properties":{"attributed_lamports":{"type":["integer","null"],"format":"int64","description":"What the epoch's delivered increases consumed. Broken down in `attribution.validators`."},"rebalance_float_lamports":{"type":["integer","null"],"format":"int64","description":"The cost of the capacity that makes redelegation possible. Splits into the two below."},"reserve_drag_lamports":{"type":["integer","null"],"format":"int64","description":"The whole standing cost, over `reserve_min`. The sum of the two below."},"unattributed_float_lamports":{"type":["integer","null"],"format":"int64","description":"`rebalance_float − attributed`: capacity held but not used, belonging to nobody. Negative\nmeans the float turned over more than once in the epoch, which is the good case."},"withdrawal_buffer_lamports":{"type":["integer","null"],"format":"int64","description":"Never attributable: it buys instant withdrawals, not rebalancing."}}},"Current":{"type":"object","required":["active","balance","settled_debt","entry_bond","security_balance","security_required","perf_balance","perf_required","health","level","apy_deficit","target_apy","stake_slash_ratio"],"properties":{"active":{"type":"boolean"},"apy_deficit":{"type":"number","format":"double","description":"The shortfall behind this epoch's charge, and the benchmark it was measured against.\nNeither means anything alone."},"balance":{"type":"integer","format":"int64","description":"The bond the plan counted as collateral: on chain at the rescore, less `settled_debt`."},"entry_bond":{"type":"integer","format":"int64","description":"The entry threshold: an admission gate, not a locked reserve. The whole balance is\navailable to the security/performance split."},"health":{"type":"number","format":"double"},"level":{"type":"string","description":"`Healthy` | `Warning` | `Critical` | `Depleted`, or `NoBond` with no bond account."},"perf_balance":{"type":"integer","format":"int64"},"perf_required":{"type":"integer","format":"int64"},"security_balance":{"type":"integer","format":"int64","description":"Security is funded first from the whole balance; performance gets the remainder. While\nsecurity is fully funded, performance exhaustion alone cannot cut stake."},"security_required":{"type":"integer","format":"int64"},"settled_debt":{"type":"integer","format":"int64","description":"Owed for ended epochs and still in the bond at the rescore. The keeper claims it within\nthe hour, so the plan did not count it."},"stake_slash_ratio":{"type":"number","format":"double"},"target_apy":{"type":"number","format":"double"}}},"Debt":{"type":"object","required":["accrued","collected","outstanding","due"],"properties":{"accrued":{"type":"integer","format":"int64"},"collected":{"type":"integer","format":"int64","description":"Epochs before the keeper took over collection count as collected in full, so\n`accrued - collected = outstanding`."},"collectible":{"type":["integer","null"],"format":"int64","description":"The part of `due`, less the claims already in flight, that the bonds on chain (`live`)\ncan pay now: native first, then jSOL at the pool's NAV, as the keeper's claim takes it.\n`null` when the bond could not be read now."},"due":{"type":"integer","format":"int64","description":"The part of `outstanding` from settled epochs: what the keeper claims next. The running\nepoch is still being accrued and is never claimed. `due = in-flight claims\n(claims_pending) + collectible + shortfall`."},"outstanding":{"type":"integer","format":"int64","description":"What is still owed from the epoch the keeper took over collection, the running epoch\nincluded. Survives missed epochs: an epoch whose claim never ran stays owed rather than\ndisappearing."},"shortfall":{"type":["integer","null"],"format":"int64","description":"The rest of `due`: owed, and in no bond the keeper can claim from. It stays owed and is\nclaimed once the validator tops up. `null` with `collectible`."}}},"Delegation":{"type":"object","description":"One delegation record. `allocations`/`bond` are present only when expanded.","required":["validator","epoch","slot_category","rankings","stake","action","protection","warning","drop_reason"],"properties":{"action":{"$ref":"#/components/schemas/Action"},"allocations":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Allocation"}},"bond":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Bond"}]},"drop_reason":{"type":"string"},"epoch":{"type":"integer","format":"int64"},"live":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Live","description":"`null` when no keeper has written a live target for this validator — never omitted, so a\nsilent keeper reads as absent rather than as a field the caller forgot to ask for."}]},"protection":{"$ref":"#/components/schemas/Protection"},"rankings":{"$ref":"#/components/schemas/Rankings"},"slot_category":{"type":"string"},"slots":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SlotBudget","description":"The epoch's slot budget, so `rankings` can be read without a second request. Detail\nendpoint only; absent for epochs computed before it was recorded."}]},"stake":{"$ref":"#/components/schemas/Stake"},"validator":{"$ref":"#/components/schemas/ValidatorRef"},"warning":{"type":"string"}}},"EpochStrategy":{"type":"object","required":["epoch","network","slots"],"properties":{"context":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PlanContext","description":"Absent for epochs planned before this was recorded. Written in one statement, so it is\npresent or absent as a whole and never half-filled."}]},"epoch":{"type":"integer","format":"int64"},"network":{"type":"string","description":"Which cluster these figures describe."},"slots":{"$ref":"#/components/schemas/SlotBudget"}}},"EpochSummary":{"type":"object","required":["epoch","computed_at","validator_count","total_target_stake","total_active_stake","total_pool_delegation"],"properties":{"by_planned_action":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"integer","format":"int64"}]},"description":"(planned_action, count) — populated by the detail endpoint, empty in the list."},"by_slot_category":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"integer","format":"int64"}]},"description":"(slot_category, count) — populated by the detail endpoint, empty in the list."},"computed_at":{"type":"string","description":"When the epoch's plan was written. A later correction to one of its rows does not move it."},"epoch":{"type":"integer","format":"int64"},"strategy":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/EpochStrategy","description":"What the plan was computed against: slot budget, pool totals, benchmark APY, bucket split,\nand why the rest of the cluster did not qualify. Detail endpoint only; absent for epochs\ncomputed before it was recorded."}]},"total_active_stake":{"type":"integer","format":"int64"},"total_pool_delegation":{"type":"integer","format":"int64"},"total_target_stake":{"type":"integer","format":"int64"},"validator_count":{"type":"integer","format":"int64"}}},"Event":{"type":"object","required":["epoch","observed_at","kind","detail"],"properties":{"amount":{"type":["integer","null"],"format":"int64","description":"Lamports moved, where the event is about an amount. Signed."},"detail":{"type":"string","description":"Human-readable statement of what changed."},"epoch":{"type":"integer","format":"int64","description":"The epoch that *observed* the change. The change itself happened between this epoch and\nthe one before it — except a stake move, which happened in this epoch."},"kind":{"type":"string","description":"`joined` · `left` · `slot_changed` · `stake_increased` · `stake_decreased` ·\n`suspended` · `reinstated` · `flagged_for_removal` · `bond_funded` · `bond_drained` ·\n`bond_health_changed` · `direct_stake_changed` · `ds_protection_gained` ·\n`ds_protection_lost` · `grace_started` · `compensation_accrued`"},"observed_at":{"type":"string","description":"When that epoch's plan was written; for a stake move, when the keeper confirmed it."},"reason":{"type":["string","null"],"description":"Why, attributed from what the row records and never guessed. `rebalance` is the explicit\nresidual: no recorded cause applied."},"signature":{"type":["string","null"],"description":"The transaction behind a stake move."}}},"LedgerEntry":{"type":"object","required":["epoch","accrued","collected","outstanding","bond_balance","apy_deficit","recorded_at","updated_at"],"properties":{"accrued":{"type":"integer","format":"int64","description":"What the APY shortfall cost stakers this epoch, uncapped by the bond balance: what is\nowed, not what happens to be collectable."},"apy_deficit":{"type":"number","format":"double"},"bond_balance":{"type":"integer","format":"int64","description":"The bond balance observed on chain when the charge was recorded, so a shortfall can be\naudited."},"collected":{"type":"integer","format":"int64","description":"Before the keeper took over collection, all of `accrued`: the legacy runner collected\nthose epochs by a route this ledger never recorded."},"epoch":{"type":"integer","format":"int64"},"epochs_per_year":{"type":["number","null"],"format":"double","description":"The year the charge was annualised on: `accrued = stake × ((1 + apy_deficit)^(1/N) − 1)`.\nIt is measured off the chain and moves as slot time does — 175.6 before epoch 1020, 199.1\nafter — so two epochs' charges are only comparable through it. `null` on a row written\nbefore it was recorded; every such row was charged at 182.625."},"outstanding":{"type":"integer","format":"int64"},"recorded_at":{"type":"string"},"updated_at":{"type":"string","description":"The running epoch is re-accrued hourly, and an applied claim moves `collected`."}}},"Live":{"type":"object","description":"What the keeper is acting on **right now**, refreshed every reconcile tick (~5 min).\n\n`stake.target` beside it is the epoch's published plan, written once by the post-boundary\nrescore. The two are different questions — \"what was decided for this epoch\" and \"what has\nhappened since\" — and are deliberately not reconciled into one number: a designation that\nlanded four minutes ago is in the second and cannot be in the first until the next epoch.","required":["epoch","target","obligation","direct_stake","reasons","observed_at","changed_at"],"properties":{"changed_at":{"type":"string","description":"When these figures last moved."},"direct_stake":{"type":"integer","format":"int64","description":"Direct stake designated at this validator, at the tick's pool rate. It moves the moment a\nholder designates or a bound wallet's balance changes, whether or not `target` moves with\nit: the epoch's plan may already fund the whole amount."},"epoch":{"type":"integer","format":"int64","description":"The epoch the keeper was reconciling. Below `epoch` means the keeper is behind."},"obligation":{"type":"integer","format":"int64","description":"The direct-stake obligation slice of `target` — designated stake the pool holds in its\nfungible reserve and funds ahead of discretionary increases."},"observed_at":{"type":"string","description":"When the keeper last confirmed these figures. It advances every tick whether or not\nanything moved, so an old value here means the keeper has stopped — not that the figures\nare simply stable."},"reasons":{"type":"array","items":{"type":"string"},"description":"`rebalance` | `direct_stake` | `delinquency` | `apy_shortfall`."},"target":{"type":"integer","format":"int64","description":"Post-overlay absolute target active-stake lamports."}}},"LiveBond":{"type":"object","description":"The bond on chain at `slot`, read on request and then served from a cache for a few seconds.","required":["native_lamports","token_base_units","token_lamports","total_lamports","slot","read_at"],"properties":{"native_lamports":{"type":"integer","format":"int64","description":"The native SOL bond above its rent floor, all of which a claim can take.","minimum":0},"read_at":{"type":"string"},"slot":{"type":"integer","format":"int64","description":"The confirmed slot when the read began; the balances are at least this recent.","minimum":0},"token_base_units":{"type":"integer","format":"int64","description":"The jSOL bond, in token base units.","minimum":0},"token_lamports":{"type":"integer","format":"int64","description":"`token_base_units` at the pool's NAV now (`total_lamports / pool_token_supply`), the rate a\nclaim settles at.","minimum":0},"total_lamports":{"type":"integer","format":"int64","minimum":0}}},"Members":{"type":"object","required":["total","active","suspended","flagged_removal","ds_protected"],"properties":{"active":{"type":"integer","format":"int32","description":"Neither suspended nor flagged for removal."},"ds_protected":{"type":"integer","format":"int32"},"flagged_removal":{"type":"integer","format":"int32"},"suspended":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int32"}}},"PendingClaim":{"type":"object","required":["signature","lamports","epoch","broadcast_at"],"properties":{"broadcast_at":{"type":"string"},"epoch":{"type":"integer","format":"int64","description":"The epoch it was sent in."},"lamports":{"type":"integer","format":"int64","description":"The debt it settles once applied."},"signature":{"type":"string"}}},"PlanContext":{"type":"object","required":["pool","benchmark","buckets","members","bond_health","candidates"],"properties":{"benchmark":{"$ref":"#/components/schemas/Benchmark"},"bond_health":{"$ref":"#/components/schemas/BondHealth"},"buckets":{"$ref":"#/components/schemas/Buckets"},"candidates":{"$ref":"#/components/schemas/Candidates"},"members":{"$ref":"#/components/schemas/Members"},"pool":{"$ref":"#/components/schemas/PoolTotals"}}},"PoolEpoch":{"type":"object","description":"One epoch's measurement. Lamports throughout; rates are fractions (0.07 = 7%).","required":["epoch","absolute_slot","observed_at","total_lamports","pool_token_supply","reserve_lamports","active_lamports","activating_lamports","deactivating_lamports","stale_transient_lamports","stake_rent","validator_count","validators_added","validators_removed","validators_active","validators_deactivating","validators_ready_for_removal","exchange_rate","epoch_fee_numerator","epoch_fee_denominator","stake_deposit_fee_numerator","stake_deposit_fee_denominator","sol_deposit_fee_numerator","sol_deposit_fee_denominator","stake_withdrawal_fee_numerator","stake_withdrawal_fee_denominator","sol_withdrawal_fee_numerator","sol_withdrawal_fee_denominator","stake_referral_fee","sol_referral_fee","next_epoch_fee_in_epochs","next_stake_withdrawal_fee_in_epochs","next_sol_withdrawal_fee_in_epochs","manager","staker","manager_fee_account","stake_deposit_authority","max_validators","last_epoch_total_lamports","last_epoch_pool_token_supply","previous_exchange_rate"],"properties":{"absolute_slot":{"type":"integer","format":"int64","description":"Slot the sample was taken at, always after the pool's own update — so every figure below\nbelongs to the same finished epoch."},"activating_lamports":{"type":"integer","format":"int64","description":"Stake entering validators this epoch."},"active_lamports":{"type":"integer","format":"int64"},"apr":{"type":["number","null"],"format":"double","description":"Annualised simple rate. `null`, never `0`, when it cannot be measured."},"apy":{"type":["number","null"],"format":"double","description":"Annualised compounded rate, net of the management fee."},"baseline_epoch":{"type":["integer","null"],"format":"int64","description":"Which epoch the rates were measured against, so a gap in the series is visible."},"deactivating_lamports":{"type":"integer","format":"int64","description":"Stake on its way out. Separate from the net figure, which hides churn."},"epoch":{"type":"integer","format":"int64"},"epoch_duration_seconds":{"type":["number","null"],"format":"double","description":"The measured epoch length the rates were annualised with."},"epoch_fee_denominator":{"type":"integer","format":"int64"},"epoch_fee_numerator":{"type":"integer","format":"int64"},"exchange_rate":{"type":"number","format":"double","description":"`total_lamports / pool_token_supply` — what one pool token is worth."},"last_epoch_pool_token_supply":{"type":"integer","format":"int64"},"last_epoch_total_lamports":{"type":"integer","format":"int64","description":"The previous epoch, as the program records it — the basis of the rates below."},"manager":{"type":"string","description":"Who can change the fees, and who can move the stake."},"manager_fee_account":{"type":"string"},"max_validators":{"type":"integer","format":"int32","description":"Validator-list capacity. A pool at its ceiling cannot admit anyone."},"next_epoch_fee_denominator":{"type":["integer","null"],"format":"int64"},"next_epoch_fee_in_epochs":{"type":"integer","format":"int32"},"next_epoch_fee_numerator":{"type":["integer","null"],"format":"int64","description":"A fee change already staged, and how many epoch boundaries until it applies.\n`*_in_epochs == 0` means nothing is staged."},"next_sol_withdrawal_fee_denominator":{"type":["integer","null"],"format":"int64"},"next_sol_withdrawal_fee_in_epochs":{"type":"integer","format":"int32"},"next_sol_withdrawal_fee_numerator":{"type":["integer","null"],"format":"int64"},"next_stake_withdrawal_fee_denominator":{"type":["integer","null"],"format":"int64"},"next_stake_withdrawal_fee_in_epochs":{"type":"integer","format":"int32"},"next_stake_withdrawal_fee_numerator":{"type":["integer","null"],"format":"int64"},"observed_at":{"type":"string"},"pool_token_supply":{"type":"integer","format":"int64"},"preferred_deposit_validator":{"type":["string","null"],"description":"When set, deposits must target this validator and withdrawals drain it first."},"preferred_withdraw_validator":{"type":["string","null"]},"previous_exchange_rate":{"type":"number","format":"double"},"reserve_lamports":{"type":"integer","format":"int64"},"sol_deposit_authority":{"type":["string","null"],"description":"Non-null means that route is permissioned: it requires this authority's signature."},"sol_deposit_fee_denominator":{"type":"integer","format":"int64"},"sol_deposit_fee_numerator":{"type":"integer","format":"int64"},"sol_referral_fee":{"type":"integer","format":"int32"},"sol_withdraw_authority":{"type":["string","null"]},"sol_withdrawal_fee_denominator":{"type":"integer","format":"int64"},"sol_withdrawal_fee_numerator":{"type":"integer","format":"int64"},"stake_deposit_authority":{"type":"string"},"stake_deposit_fee_denominator":{"type":"integer","format":"int64"},"stake_deposit_fee_numerator":{"type":"integer","format":"int64"},"stake_referral_fee":{"type":"integer","format":"int32"},"stake_rent":{"type":"integer","format":"int64","description":"The reserve's rent floor."},"stake_withdrawal_fee_denominator":{"type":"integer","format":"int64"},"stake_withdrawal_fee_numerator":{"type":"integer","format":"int64"},"staker":{"type":"string"},"stale_transient_lamports":{"type":"integer","format":"int64","description":"Last epoch's movement awaiting a merge. Included in `total_lamports`."},"total_lamports":{"type":"integer","format":"int64"},"validator_count":{"type":"integer","format":"int32"},"validators_active":{"type":"integer","format":"int32","description":"`validator_count` includes entries being unwound; these split it."},"validators_added":{"type":"integer","format":"int32","description":"Membership change against the previous recorded epoch."},"validators_deactivating":{"type":"integer","format":"int32"},"validators_ready_for_removal":{"type":"integer","format":"int32"},"validators_removed":{"type":"integer","format":"int32"}}},"PoolTotals":{"type":"object","description":"Lamports.","required":["tvl","pool_stake","direct_stake_total","reserve_current","reserve_min"],"properties":{"direct_stake_total":{"type":"integer","format":"int64"},"pool_stake":{"type":"integer","format":"int64","description":"TVL less direct stake and less the reserve floor: what the strategy was free to move."},"reserve_current":{"type":"integer","format":"int64"},"reserve_min":{"type":"integer","format":"int64"},"tvl":{"type":"integer","format":"int64"}}},"Protection":{"type":"object","required":["ds_protected","suspended"],"properties":{"activation_epoch":{"type":["integer","null"],"format":"int64"},"ds_protected":{"type":"boolean"},"grace_epoch":{"type":["integer","null"],"format":"int64"},"suspended":{"type":"boolean"},"suspension_epoch":{"type":["integer","null"],"format":"int64"}}},"RankHistoryEntry":{"type":"object","required":["epoch"],"properties":{"cg":{"type":["integer","null"],"format":"int32"},"ds":{"type":["integer","null"],"format":"int32"},"epoch":{"type":"integer","format":"int64"},"performance":{"type":["integer","null"],"format":"int32"}}},"RankingEntry":{"type":"object","required":["rank","vote_account","name","slot_category","driving_metric","target","pending_change"],"properties":{"driving_metric":{"type":"number","format":"double","description":"The metric the rank is built from: `effective_cg_score` / `direct_stake` / `apy10`,\nmatching `dim`."},"name":{"type":"string"},"pending_change":{"type":"integer","format":"int64"},"rank":{"type":"integer","format":"int32"},"slot_category":{"type":"string"},"target":{"type":"integer","format":"int64"},"vote_account":{"type":"string"}}},"Rankings":{"type":"object","properties":{"cg":{"type":["integer","null"],"format":"int32"},"ds":{"type":["integer","null"],"format":"int32"},"performance":{"type":["integer","null"],"format":"int32"}}},"Rate":{"type":"object","description":"The two numbers every cost below is derived from: `lamports × apy / epochs_per_year`.","required":["compounding"],"properties":{"apy":{"type":["number","null"],"format":"double","description":"The pool's own realised APY for this epoch, from `pool_metrics`. `null`, never `0`, when\nthe epoch could not be measured — every cost below is then `null` too."},"compounding":{"type":"string","description":"How the annual rate is spread over an epoch. Multiply any cost by `epochs_per_year` for\nthe annual figure."},"epochs_per_year":{"type":["number","null"],"format":"double","description":"The year *this epoch's* bond charge was annualised on, recorded by the run that planned\nit. Measured off the chain and no longer a constant: mainnet's slot time fell 415.96 →\n366.84 ms at the 1019→1020 boundary, which takes it 175.6 → 199.1, and 200 ms is planned.\n\n`null`, never a fallback, when the plan recorded no year — a cost annualised on a year the\npool did not use is a wrong number rather than a stale one, so every cost below is `null`\ntoo. Rows planned before it was recorded were charged at 182.625 and carry it."}}},"ReconcileEntry":{"type":"object","description":"One `reconcile_log` tick row.","required":["id","network","pool","epoch","observed","actions","duration_ms","created_at"],"properties":{"actions":{"description":"Tick diff with per-action outcomes, skip audit, and capped flag."},"created_at":{"type":"string"},"duration_ms":{"type":"integer","format":"int64"},"epoch":{"type":"integer","format":"int64"},"id":{"type":"integer","format":"int64"},"network":{"type":"string"},"observed":{"description":"Observed ChainView summary (reserve, n_validators, overlays, dry_run…)."},"pool":{"type":"string"}}},"RedelegationCost":{"type":"object","description":"One epoch's rebalancing drag, decomposed. Lamports throughout, like the rest of this API.","required":["epoch","network","observed_at","basis","rate","reserve","cost_per_epoch","attribution"],"properties":{"attribution":{"$ref":"#/components/schemas/Attribution"},"basis":{"type":"string","description":"Which ledger the attribution was computed from."},"cost_per_epoch":{"$ref":"#/components/schemas/CostPerEpoch"},"epoch":{"type":"integer","format":"int64"},"network":{"type":"string"},"observed_at":{"type":"string","description":"When this epoch's plan was last written, RFC 3339 in UTC."},"rate":{"$ref":"#/components/schemas/Rate"},"reserve":{"$ref":"#/components/schemas/Reserve"}}},"Reserve":{"type":"object","description":"The standing amounts recorded for this epoch — what costs yield by existing.","required":["reserve_min_lamports","reserve_current_lamports","tvl_lamports"],"properties":{"rebalance_float_lamports":{"type":["integer","null"],"format":"int64","description":"`reserve_min − withdrawal_buffer`: the capacity that makes same-epoch redelegation\npossible. `null` whenever the buffer is."},"reserve_current_lamports":{"type":"integer","format":"int64","description":"What the reserve actually held, for context. Not what the cost is computed from."},"reserve_min_lamports":{"type":"integer","format":"int64","description":"The floor the pool maintains."},"tvl_lamports":{"type":"integer","format":"int64"},"withdrawal_buffer_lamports":{"type":["integer","null"],"format":"int64","description":"The half rebalancing may never touch. `null` for every epoch reconciled before the\nreserve split shipped."}}},"SlotBudget":{"type":"object","description":"The cascade's per-category slot budget for one epoch.","required":["max_validators","suspended","community_good","direct_stake","performance"],"properties":{"community_good":{"type":"integer","format":"int64"},"direct_stake":{"type":"integer","format":"int64"},"max_validators":{"type":"integer","format":"int64","description":"floor(TVL / slot_size_sol) — the total the pool will delegate to."},"performance":{"type":"integer","format":"int64"},"performance_rank_cutoff":{"type":["integer","null"],"format":"int64","description":"The worst `perf_rank` that actually holds a Performance slot this epoch. Observed\noccupancy, not the cutoff the allocator applies."},"suspended":{"type":"integer","format":"int64"}}},"Stake":{"type":"object","description":"Every figure is lamports, and every figure except `pool_delegation` includes the\nvalidator's own direct stake.","required":["active","transient","desired","target","pool_delegation","pending_change"],"properties":{"active":{"type":"integer","format":"int64","description":"What the pool had delegated and fully activated when this epoch's plan was computed. A\nsnapshot, not a live reading: stake moved since shows here from the next epoch's plan."},"desired":{"type":"integer","format":"int64","description":"What the validator could reach on its current direct stake, matching and slot shares if\nits bond held nothing back. A potential, not a promise, and it can legitimately exceed\n`target`."},"pending_change":{"type":"integer","format":"int64","description":"`target − (active + transient)`. Positive means an increase is planned, negative a\ndecrease. Throttling can spread it over several epochs."},"pool_delegation":{"type":"integer","format":"int64","description":"The pool's own share of `target`, excluding the validator's direct stake."},"target":{"type":"integer","format":"int64","description":"What the pool will move toward this epoch, after every cap, bond consequence and cut.\nThis is the number that gets executed."},"transient":{"type":"integer","format":"int64","description":"Delegated but still activating or deactivating when the plan was computed."}}},"StatusCount":{"type":"object","required":["status","actions"],"properties":{"actions":{"type":"integer","format":"int64"},"status":{"type":"string","description":"`confirmed` | `dry_run` | `failed` | `pending`."}}},"ValidatorCost":{"type":"object","required":["vote_account","delivered_lamports"],"properties":{"cost_lamports":{"type":["integer","null"],"format":"int64","description":"`delivered × apy / epochs_per_year`. Not a charge."},"delivered_lamports":{"type":"integer","format":"int64"},"vote_account":{"type":"string"}}},"ValidatorDetail":{"type":"object","required":["vote_account","identity","name","url","avatar_url"],"properties":{"avatar_url":{"type":"string"},"identity":{"type":"string"},"latest":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Delegation"}]},"name":{"type":"string"},"url":{"type":"string"},"vote_account":{"type":"string"}}},"ValidatorRef":{"type":"object","required":["vote_account","identity","name","is_jpool_validator"],"properties":{"identity":{"type":"string"},"is_jpool_validator":{"type":"boolean"},"name":{"type":"string"},"vote_account":{"type":"string"}}},"WithdrawList":{"type":"object","description":"The drain order for one epoch, with everything needed to tell whether it still applies.","required":["epoch","network","observed_at","total_withdrawable","withdraw_floor","validators"],"properties":{"epoch":{"type":"integer","format":"int64","description":"The epoch these amounts were computed for, and are valid for only. A client that cached\nthe list across a boundary must refetch rather than sign."},"network":{"type":"string"},"observed_at":{"type":"string","description":"When this epoch's allocation was written — the moment the `stake` figures were read — RFC\n3339 in UTC. With `epoch` it separates \"the epoch rolled over\" from \"the keeper stopped\nwriting\"; a later correction to a row does not move it."},"preferred_withdraw_validator":{"type":["string","null"],"description":"The pool's preferred withdrawal target, `null` when unset.\n\nWhen non-null this is a hard gate: withdrawing from any other validator while this one\nstill has lamports available fails with `IncorrectWithdrawVoteAddress`. It is also first\nin `validators`, so following the order is correct by construction."},"total_withdrawable":{"type":"integer","format":"int64","description":"The sum of `stake` below — the ceiling for the whole stake-withdrawal path."},"validators":{"type":"array","items":{"$ref":"#/components/schemas/WithdrawTarget"},"description":"Ordered: drain from the front."},"withdraw_floor":{"type":"integer","format":"int64","description":"Lamports the program will not let leave *any* validator stake account, so `stake +\nwithdraw_floor` is the on-chain `active_stake_lamports` a client can verify against."}}},"WithdrawTarget":{"type":"object","required":["vote_account","stake","excess"],"properties":{"excess":{"type":"integer","format":"int64","description":"`jpool_active_stake - target_stake`, the sort key. Positive means the pool wants this\nstake gone; negative means the validator is under target and is listed only so a large\nwithdrawal has somewhere left to go."},"stake":{"type":"integer","format":"int64","description":"Lamports the program will release from this validator: what it holds, less\n`withdraw_floor`. Not the validator's balance."},"vote_account":{"type":"string"}}}}}}