2022-02-25 12:49:18 +00:00
|
|
|
|
<!--
|
|
|
|
|
order: 8 -->
|
|
|
|
|
|
|
|
|
|
# Client
|
|
|
|
|
|
|
|
|
|
## CLI
|
|
|
|
|
|
|
|
|
|
A user can query and interact with the `feemarket` module using the CLI.
|
|
|
|
|
|
|
|
|
|
### Queries
|
|
|
|
|
|
|
|
|
|
The `query` commands allow users to query `feemarket` state.
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
ethermintd query feemarket --help
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
#### Base Fee
|
|
|
|
|
|
|
|
|
|
The `base-fee` command allows users to query the block base fee by height.
|
|
|
|
|
|
|
|
|
|
```
|
2022-10-31 17:47:57 +00:00
|
|
|
|
ethermintd query feemarket base-fee [flags]
|
2022-02-25 12:49:18 +00:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
|
|
```
|
2022-10-31 17:47:57 +00:00
|
|
|
|
ethermintd query feemarket base-fee ...
|
2022-02-25 12:49:18 +00:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Example Output:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
base_fee: "512908936"
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
#### Block Gas
|
|
|
|
|
|
|
|
|
|
The `block-gas` command allows users to query the block gas by height.
|
|
|
|
|
|
|
|
|
|
```
|
2022-10-31 17:47:57 +00:00
|
|
|
|
ethermintd query feemarket block-gas [flags]
|
2022-02-25 12:49:18 +00:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
|
|
```
|
2022-10-31 17:47:57 +00:00
|
|
|
|
ethermintd query feemarket block-gas ...
|
2022-02-25 12:49:18 +00:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Example Output:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
### Queries
|
|
|
|
|
|
|
|
|
|
| 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 |
|