---
title: getStakeActivation (removed)
description:
  Replace getStakeActivation by decoding stake state and deriving activation
  from current epoch data.
url: /docs/rpc/deprecated/getstakeactivation
type: reference
related:
  - /docs/rpc/deprecated
  - /docs/rpc/http/getaccountinfo
  - /docs/rpc/http/getepochinfo
---

`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.

<Callout type="warn" title="Removed RPC method">
  This method was removed in Agave v2.0 and has no single-method replacement.
</Callout>

## Migration

Fetch and decode both the stake account and the StakeHistory sysvar account at
`SysvarStakeHistory1111111111111111111111111` with
[getAccountInfo](/docs/rpc/http/getaccountinfo). Obtain the current epoch with
[getEpochInfo](/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.
