Skip to content

Commit

Permalink
chore(rpc/blob): rework documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Sep 25, 2023
1 parent 26642ad commit 9d879fc
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions nodebuilder/blob/cmd/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,26 @@ func init() {
&fee,
"fee",
-1,
"specifies fee for blob submission",
"specifies fee(in TIA) for blob submission",
)

submitCmd.PersistentFlags().Uint64Var(
&gasLimit,
"gas.limit",
0,
"specifies max gas for the blob submission",
"sets the maximum amount of gas that is allowed to consume during blob submission",
)

submitCmd.SetUsageTemplate("" +
"celestia blob submit [namespace] [blobData] [flags]\n\n " +
"Flags:\n" +
" --fee int specifies fee(in TIA) for blob submission(optional)\n" +
" --gas.limit uint64 sets the maximum amount of gas is allowed to consume during blob submission(optional)\n" +
" -h, --help help for submit\n" +
"NOTE: fee and gas.limit params will be calculated automatically if they will not be provided.\n\n" +
"Global Flags:\n" +
" --token string Authorization token (if not provided, the CELESTIA_NODE_AUTH_TOKEN environment variable will be used)\n" +
" --url string Request URL (default \"http://localhost:26658\")",
)
}

Expand Down

0 comments on commit 9d879fc

Please sign in to comment.