> ## Documentation Index
> Fetch the complete documentation index at: https://seilabs-docs-bridge-release-v6-7-0.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Params Precompile

> Read on-chain module parameters from any x/params subspace through the Params precompile.

The Params precompile exposes the Cosmos SDK `x/params` subspaces to the EVM, letting contracts read arbitrary module parameters by subspace and key. It is a read-only precompile deployed at a fixed address.

## Address

The Params precompile is available at the following address:

```
0x0000000000000000000000000000000000001013
```

## Interface

```solidity Params.sol theme={"dark"}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

address constant PARAMS_PRECOMPILE_ADDRESS = 0x0000000000000000000000000000000000001013;

IParams constant PARAMS_CONTRACT = IParams(PARAMS_PRECOMPILE_ADDRESS);

interface IParams {
    // Queries
    function params(string memory subspace, string memory key) external view returns (string memory value);
}
```

## Methods

### params

Returns the value of the parameter identified by `subspace` and `key`. The value is returned as its JSON-encoded string representation.

```solidity theme={"dark"}
function params(
    string memory subspace,
    string memory key
) external view returns (string memory value);
```

**Parameters**

* `subspace` — the name of the params subspace to read from (e.g. `"staking"`).
* `key` — the parameter key within the subspace (e.g. `"MaxValidators"`).

**Returns**

* `value` — the JSON-encoded value of the requested parameter.

The call reverts if the subspace or key is unknown or empty.

## Example Usage

```solidity theme={"dark"}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IParams, PARAMS_CONTRACT} from "./Params.sol";

contract ParamsReader {
    function getMaxValidators() external view returns (string memory) {
        return PARAMS_CONTRACT.params("staking", "MaxValidators");
    }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.