Skip to content

Commit

Permalink
Update cli-client.md (#7176)
Browse files Browse the repository at this point in the history
add an example using environment variables which seems to work
Though I can't seem to get a different move function call to work with
environment variables, more on discord
https://discord.com/channels/916379725201563759/955861929346355290/1060676710510637166
  • Loading branch information
georgescharlesbrain authored Jan 5, 2023
1 parent c53c945 commit 85055b4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions doc/src/build/cli-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,24 @@ the sui module using the following Sui client command:
sui client call --function transfer --module sui --package 0x2 --args 0x471c8e241d0473c34753461529b70f9c4ed3151b 0x3cbf06e9997b3864e3baad6bc0f0ef8ec423cd75 --gas-budget 1000
```
or using environment variables:
```shell
export OBJECT_ID=0x471c8e241d0473c34753461529b70f9c4ed3151b
```
```shell
export RECIPIENT=0x3cbf06e9997b3864e3baad6bc0f0ef8ec423cd75
```
```shell
echo $OBJECT_ID
echo $RECIPIENT
```
```shell
sui client call --function transfer --module sui --package 0x2 --args $OBJECT_ID $RECIPIENT --gas-budget 1000
```
This is a pretty complicated command so let's explain all of its
parameters one-by-one:
Expand Down

0 comments on commit 85055b4

Please sign in to comment.