Skip to content

Commit

Permalink
docs: allowance examples (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryTong65 authored Oct 15, 2024
1 parent a456622 commit 9530867
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cmd/cmd_allowance.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@ func cmdGrantAllowance() *cli.Command {
Description: `
The command is used to grant allowance to the grantee. --grantee defines the grantee address, --expire defines the expiration time in second
Flags:
The command includes three flags that users can set when using the command to specify relevant values:
--grantee (granteeFlag)
Type: String (cli.StringFlag)
Default Value: Empty string
Usage: Specifies the address of the grantee (in hexadecimal string format).
--allowance (allowanceFlag)
Type: String
Default Value: Empty string
Usage: Specifies the amount of allowance in wei.
--expire (expireTimeFlag)
Type: Unsigned 64-bit integer (cli.Uint64Flag)
Default Value: 0
Usage: Sets the expiration time of the allowance in UNIX timestamp (seconds).
Examples:
$ gnfd-cmd fee grant --grantee 0x... --allowance 10000000000000000 --expire 3600`,
Flags: []cli.Flag{
Expand Down

0 comments on commit 9530867

Please sign in to comment.