> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# getStakeActivation (removed)

> Replace getStakeActivation by decoding stake state and deriving activation from current epoch data.

`getStakeActivation` calculated the active, inactive, and activating or
deactivating stake for one stake account. Its final implementation accepted an
optional epoch field but supported only the current epoch.

<Warning>
  **Removed RPC method**

  This method was removed in Agave v2.0 and has no single-method replacement.
</Warning>

## Migration

Fetch and decode both the stake account and the StakeHistory sysvar account at
`SysvarStakeHistory1111111111111111111111111` with
[getAccountInfo](/developers/docs/rpc/http/getaccountinfo). Obtain the current epoch with
[getEpochInfo](/developers/docs/rpc/http/getepochinfo), then derive activation from the
stake delegation and decoded stake-history entries. The calculation must account
for warmup and cooldown rather than comparing activation epochs alone.

To reproduce the legacy balances, keep the stake account's total lamports and
the decoded `Meta.rent_exempt_reserve` in addition to the delegation. Set
`active` to the effective stake returned by the activation calculation, then
derive `inactive` with saturating subtraction:

```text
inactive = account lamports - active - rent-exempt reserve
```

This includes undelegated lamports while excluding the reserve. For an
initialized stake account with no delegation, set `active` to zero and use the
same subtraction. Do not calculate `inactive` as only delegated stake minus
effective stake.

If a legacy caller supplied `epoch`, require it to equal the current epoch; the
final legacy RPC implementation rejected other values. Reconstructing activation
at an older epoch requires archived stake-account and sysvar state from that
epoch, which current `getAccountInfo` responses do not provide.

The
[stake activation reference implementation](https://github.com/solana-developers/solana-rpc-get-stake-activation)
shows this multi-step replacement. If you expose the result through an API,
cache epoch-level inputs rather than recomputing them for every account.
