Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: document --gas.price flag #1403

Merged
merged 3 commits into from
Feb 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.004` 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
Loading