Skip to content

Commit a2b3a04

Browse files
authored
docs: Add link to feemarket querying (#3163)
* Add link to feemarket querying * Add pointer to feemarket integration guide * Add back bash instructions * Add concrete commands to doc
1 parent 3833c86 commit a2b3a04

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

docs/docs/hub-tutorials/gaiad.md

+22-7
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,11 @@ is included in a block.
171171

172172
### Fees & Gas
173173

174-
Each transaction may either supply fees or gas prices, but not both.
175-
176-
Validator's have a minimum gas price (multi-denom) configuration and they use
177-
this value when determining if they should include the transaction in a block during `CheckTx`, where `gasPrices >= minGasPrices`. Note, your transaction must supply fees that are greater than or equal to **any** of the denominations the validator requires.
178-
179-
**Note**: With such a mechanism in place, validators may start to prioritize
180-
txs by `gasPrice` in the mempool, so providing higher fees or gas prices may yield higher tx priority.
174+
The Cosmos Hub uses the `x/feemarket` module to
175+
dynamically vary the gas price based on demand.
181176

177+
You need to specify a sufficient gas price or total fees
178+
to ensure that your transaction is included in a block,
182179
e.g.
183180

184181
```bash
@@ -191,6 +188,24 @@ or
191188
gaiad tx bank send ... --gas-prices=0.0025uatom
192189
```
193190

191+
To find out more about the current minimal gas price, you can query the feemarket module:
192+
```bash
193+
gaiad q feemarket gas-prices
194+
```
195+
or
196+
```bash
197+
gaiad q feemarket gas-prices uatom
198+
```
199+
which will output the current gas price similar to this:
200+
```bash
201+
price:
202+
amount: "0.005"
203+
denom: uatom
204+
```
205+
206+
For more information, check out how to query the [feemarket](https://github.com/skip-mev/feemarket/blob/main/docs/SPEC.md#gas-price),
207+
or check out the [feemarket integration guide](https://github.com/skip-mev/feemarket/blob/main/docs/INTEGRATIONS.md).
208+
194209
### Account
195210

196211
#### Get Tokens

0 commit comments

Comments
 (0)