ethermint/feemarket
Table of Contents
ethermint/feemarket/v1/query.proto
TopQueryBaseFeeRequest
QueryBaseFeeRequest defines the request type for querying the EIP1559 base
fee.
QueryBaseFeeResponse
BaseFeeResponse returns the EIP1559 base fee.
Field | Type | Label | Description |
base_fee | string |
|
QueryBlockGasRequest
QueryBlockGasRequest defines the request type for querying the EIP1559 base
fee.
QueryBlockGasResponse
QueryBlockGasResponse returns block gas used for a given height.
Field | Type | Label | Description |
gas | int64 |
|
QueryParamsRequest
QueryParamsRequest defines the request type for querying x/evm parameters.
QueryParamsResponse
QueryParamsResponse defines the response type for querying x/evm parameters.
Field | Type | Label | Description |
params | Params | params define the evm module parameters. |
Query
Query defines the gRPC querier service.
Method Name | Request Type | Response Type | Description |
Params | QueryParamsRequest | QueryParamsResponse | Params queries the parameters of x/feemarket module. |
BaseFee | QueryBaseFeeRequest | QueryBaseFeeResponse | BaseFee queries the base fee of the parent block of the current block. |
BlockGas | QueryBlockGasRequest | QueryBlockGasResponse | BlockGas queries the gas used at a given block height |
Methods with HTTP bindings
Method Name | Method | Pattern | Body |
Params | GET | /ethermint/feemarket/v1/params | |
BaseFee | GET | /ethermint/feemarket/v1/base_fee | |
BlockGas | GET | /ethermint/feemarket/v1/block_gas |
ethermint/feemarket/v1/genesis.proto
TopGenesisState
GenesisState defines the feemarket module's genesis state.
Field | Type | Label | Description |
params | Params | params defines all the paramaters of the module. |
|
block_gas | uint64 | block gas is the amount of gas wanted on the last block before the upgrade. Zero by default. |
ethermint/feemarket/v1/feemarket.proto
TopParams
Params defines the EVM module parameters
Field | Type | Label | Description |
no_base_fee | bool | no base fee forces the EIP-1559 base fee to 0 (needed for 0 price calls) |
|
base_fee_change_denominator | uint32 | base fee change denominator bounds the amount the base fee can change between blocks. |
|
elasticity_multiplier | uint32 | elasticity multiplier bounds the maximum gas limit an EIP-1559 block may have. |
|
enable_height | int64 | height at which the base fee calculation is enabled. |
|
base_fee | string | base fee for EIP-1559 blocks. |
|
min_gas_price | string | min_gas_price defines the minimum gas price value for cosmos and eth transactions |
|
min_gas_multiplier | string | min gas denominator bounds the minimum gasUsed to be charged to senders based on GasLimit |
Scalar Value Types
.proto Type | Notes | Python Type |
double | float | |
float | float | |
int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int |
int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int/long |
uint32 | Uses variable-length encoding. | int/long |
uint64 | Uses variable-length encoding. | int/long |
sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int |
sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int/long |
fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | int |
fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | int/long |
sfixed32 | Always four bytes. | int |
sfixed64 | Always eight bytes. | int/long |
bool | boolean | |
string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | str/unicode |
bytes | May contain any arbitrary sequence of bytes. | str |