Skip to content

Commit

Permalink
docs: Add link to feemarket querying (#3163)
Browse files Browse the repository at this point in the history
* Add link to feemarket querying

* Add pointer to feemarket integration guide

* Add back bash instructions

* Add concrete commands to doc
  • Loading branch information
p-offtermatt committed Jun 24, 2024
1 parent 3833c86 commit a2b3a04
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions docs/docs/hub-tutorials/gaiad.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,11 @@ is included in a block.

### Fees & Gas

Each transaction may either supply fees or gas prices, but not both.

Validator's have a minimum gas price (multi-denom) configuration and they use
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.

**Note**: With such a mechanism in place, validators may start to prioritize
txs by `gasPrice` in the mempool, so providing higher fees or gas prices may yield higher tx priority.
The Cosmos Hub uses the `x/feemarket` module to
dynamically vary the gas price based on demand.

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

```bash
Expand All @@ -191,6 +188,24 @@ or
gaiad tx bank send ... --gas-prices=0.0025uatom
```

To find out more about the current minimal gas price, you can query the feemarket module:
```bash
gaiad q feemarket gas-prices
```
or
```bash
gaiad q feemarket gas-prices uatom
```
which will output the current gas price similar to this:
```bash
price:
amount: "0.005"
denom: uatom
```

For more information, check out how to query the [feemarket](https://github.com/skip-mev/feemarket/blob/main/docs/SPEC.md#gas-price),
or check out the [feemarket integration guide](https://github.com/skip-mev/feemarket/blob/main/docs/INTEGRATIONS.md).

### Account

#### Get Tokens
Expand Down

0 comments on commit a2b3a04

Please sign in to comment.