Skip to main content
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:

Interface

Params.sol

Methods

params

Returns the value of the parameter identified by subspace and key. The value is returned as its JSON-encoded string representation.
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