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

# getVatActiveSetRankMap

> Returns the validator rank map for the epoch containing a supplied slot, including vote accounts, identities, BLS public keys, and stakes.

Returns the Validator Admission Ticket (VAT) active-set rank map used to
interpret Alpenglow certificate bitmaps for the epoch containing `slot`. Pass
the certificate's slot to select its map.

The node serves the epoch stakes retained by its finalized bank. This is not a
historical archive: `value` is `null` if the requested epoch is unavailable. The
response's `context.slot` is the finalized bank used to answer the request,
which can differ from the supplied slot.

<Warning>
  Added for Agave v4.5 in
  [anza-xyz/agave#16019](https://github.com/anza-xyz/agave/pull/16019). Nodes
  without this method return `Method not found` (`-32601`).
</Warning>

<RequestExample>

```bash cURL
curl https://api.devnet.solana.com -s -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getVatActiveSetRankMap",
    "params": [432000, { "minContextSlot": 432000 }]
  }'
```

```rs Rust
use solana_rpc_client::nonblocking::rpc_client::RpcClient;
use solana_rpc_client_api::{client_error::Error, config::RpcVatActiveSetRankMapConfig};

async fn show_ranks(client: &RpcClient) -> Result<(), Error> {
    let certificate_slot = 432000;
    let response = client
        .get_vat_active_set_rank_map(
            certificate_slot,
            RpcVatActiveSetRankMapConfig::default(),
        )
        .await?;
    if let Some(rank_map) = response.value {
        for validator in rank_map.validators {
            println!("rank {}: {}", validator.rank, validator.node_pubkey);
        }
    }

    let response = client
        .get_vat_active_set_rank_map(
            certificate_slot,
            RpcVatActiveSetRankMapConfig {
                identity: Some("67omRD8GkXTi8daWceprtQABkDeEm3SZYHUCrthQGB9D".to_string()),
                ..RpcVatActiveSetRankMapConfig::default()
            },
        )
        .await?;
    println!("{response:?}");
    Ok(())
}
```

</RequestExample>

<ResponseExample>
```json Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "context": { "slot": 432100 },
    "value": {
      "epoch": 1,
      "totalStake": 1000000000,
      "validators": [
        {
          "rank": 0,
          "votePubkey": "Vote111111111111111111111111111111111111111",
          "nodePubkey": "67omRD8GkXTi8daWceprtQABkDeEm3SZYHUCrthQGB9D",
          "blsPubkeyCompressed": "6aGxBiDyBZxEL9RKJz8W2h7VQUUKv9BPqHbC2DNWKExVRM7GWtLk6mTQBYXbpgRHwp",
          "stake": 1000000000
        }
      ]
    }
  }
}
```

</ResponseExample>

## Parameters

<ParamField body="slot" type="u64" required>

Required slot used to select the epoch. The slot does not need to contain a
produced block. It does not set a minimum context slot.

</ParamField>

<ParamField body="config" type="object">

All configuration fields are optional. Omitting the config or passing `{}`
returns the full map from the finalized bank. There is no `commitment`
parameter. Supplying it returns `Invalid params` (`-32602`). The Rust client
also always queries finalized state, regardless of its default commitment.

<Expandable title="properties" defaultOpen>
<ParamField body="minContextSlot" type="u64">

Minimum slot of the finalized bank answering the request. If that bank is below
the minimum, the method returns `MinContextSlotNotReached` (`-32016`), even if
the requested epoch is unavailable. Omit this field to enforce no minimum.

</ParamField>

<ParamField body="identity" type="string">

Validator identity as a base-58 encoded public key. Limits `validators` to that
identity, preserving its original rank and the full map's `totalStake`. An
unknown identity returns an empty `validators` array when the map exists. An
invalid public key returns `Invalid params` (`-32602`).

</ParamField>
</Expandable>
</ParamField>

## Result

<ResponseField name="result" type="object">

A response with `context` and `value` fields:

- `context.slot`: slot of the finalized bank used to answer the request.
- `context.apiVersion`: optional RPC API version string.
- `value`: rank map object, or `null` if the epoch is unavailable.

When present, the map contains:

- `epoch: <u64>`: epoch in which the ranks are effective.
- `totalStake: <u64>`: positive total stake in the full rank map, in lamports.
- `validators: <array>`: entries ordered by rank, each containing:
  - `rank: <u16>`: zero-based index in Alpenglow certificate bitmaps.
  - `votePubkey: <string>`: base-58 vote account address.
  - `nodePubkey: <string>`: base-58 validator identity.
  - `blsPubkeyCompressed: <string>`: base-58 compressed BLS public key.
  - `stake: <u64>`: positive stake assigned to this rank, in lamports.

</ResponseField>
