Skip to content

Commit

Permalink
feat: document gas-price flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jcstein committed Feb 8, 2024
1 parent a60eef4 commit db98b00
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions developers/node-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -775,32 +775,23 @@ Which will return:
}
```

### Setting the gas fee and limit
### Setting the gas price

To set the gas fee and limit, you can use the `--fee` and `--gas.limit` flags
respectively when submitting data using the RPC CLI.
The `--gas-price` flag allows you to specify the gas price for the
submission. If not specified, a default gas price will be used. The
gas limit is automatically calculated based on the size of the blob
being submitted.

Learn [more about gas fees and limits](../developers/submit-data.md).

To set the fee of 10000 utia, use the `--fee 10000` flag:

```bash
celestia blob submit 0x42690c204d39600fddd3 'gm' --fee 10000 \
--node.store $NODE_STORE
```
To set the gas price, you can use the `--gas-price` flag.
The gas price will be set to default (0.002) if no value
is passed.

To set a gas limit of 100000, use the `--gas.limit 100000` flag:

```bash
celestia blob submit 0x42690c204d39600fddd3 'gm' --gas.limit 100000 \
--node.store $NODE_STORE
```
Learn [more about gas fees and limits](../developers/submit-data.md).

To set a fee of 10000 utia and gas limit of 100000, use the
`--fee 10000 --gas.limit 100000` flags:
To set a higher gas price of 0.004 utia, use the `--gas-price 0.002` flag:

```bash
celestia blob submit 0x42690c204d39600fddd3 'gm' --fee 10000 --gas.limit 100000 \
celestia blob submit 0x42690c204d39600fddd3 'gm' --gas-price 0.004 \
--node.store $NODE_STORE
```

Expand Down

0 comments on commit db98b00

Please sign in to comment.