# mev-shield-next-key (/docs/query/mev-shield-next-key)

**Category:** Chain

## Parameters [#parameters]

This read takes no parameters.

## CLI [#cli]

```bash
btcli query mev-shield-next-key --json
```

## Python [#python]

Namespace method (autocomplete, signature help):

```python
import bittensor as bt

sub = bt.Subtensor()
result = sub.chain.mev_shield_next_key()
```

Or dispatch by name, as an agent would:

```python
result = sub.read("mev_shield_next_key")
```

Async is the same surface awaited: `async with bt.Subtensor() as client:`.

## On-chain implementation [#on-chain-implementation]

* Storage [`MevShield.NextKey`](/code/pallets/shield/src/lib.rs#L115)

Every file is browsable under [/code](/code) exactly as built into the runtime.
