> For the complete documentation index, see [llms.txt](https://docs.blockxnet.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blockxnet.com/protocol-developers/modules/feemarket/client.md).

# Client

### CLI <a href="#cli" id="cli"></a>

A user can query and interact with the `feemarket` module using the CLI.

#### Queries <a href="#queries" id="queries"></a>

The `query` commands allow users to query `feemarket` state.

```
ethermintd query feemarket --help
```

**Base Fee**

The `base-fee` command allows users to query the block base fee by height.

```
ethermintd query feemarket base-fee [height] [flags]
```

Example:

```
ethermintd query feemarket base-fee 5...
```

Example Output:

```
base_fee: "512908936"
```

**Block Gas**

The `block-gas` command allows users to query the block gas by height.

```
ethermintd query feemarket block-gas [height] [flags]
```

Example:

```
ethermintd query feemarket block-gas 5...
```

Example Output:&#x20;

```
gas: "21000"
```

**Params**

The `params` command allows users to query the module params.

```
ethermintd query params subspace [subspace] [key] [flags]
```

Example:

```
ethermintd query params subspace feemarket ElasticityMultiplier ...
```

Example Output:

```
key: ElasticityMultiplier
subspace: feemarket
value: "2"
```

### gRPC <a href="#grpc" id="grpc"></a>

#### Queries <a href="#queries-2" id="queries-2"></a>

| Verb   | Method                                  | Description            |
| ------ | --------------------------------------- | ---------------------- |
| `gRPC` | `ethermint.feemarket.v1.Query/Params`   | Get the module params  |
| `gRPC` | `ethermint.feemarket.v1.Query/BaseFee`  | Get the block base fee |
| `gRPC` | `ethermint.feemarket.v1.Query/BlockGas` | Get the block gas used |
| `GET`  | `/feemarket/evm/v1/params`              | Get the module params  |
| `GET`  | `/feemarket/evm/v1/base_fee`            | Get the block base fee |
| `GET`  | `/feemarket/evm/v1/block_gas`           | Get the block gas used |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.blockxnet.com/protocol-developers/modules/feemarket/client.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
