Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kkawula committed Oct 1, 2024
1 parent 2c50937 commit 1c1097b
Showing 1 changed file with 42 additions and 43 deletions.
85 changes: 42 additions & 43 deletions docs/src/starknet/account.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,45 +70,6 @@ For a detailed CLI description, see [account deploy command reference](../append
> 💡 **Info**
> You can also choose to pay in Ether by setting `--fee-token` to `eth`.
```shell
$ sncast account list
```
```shell
$ sncast --accounts-file my-account-file.json account list
```
```
Available accounts (at <current-directory>/my-account-file.json):
- user0
public key: 0x2f91ed13f8f0f7d39b942c80bfcd3d0967809d99e0cc083606cbe59033d2b39
network: alpha-sepolia
address: 0x4f5f24ceaae64434fa2bc2befd08976b51cf8f6a5d8257f7ec3616f61de263a
type: OpenZeppelin
deployed: false
legacy: false

- user1
[...]
```
To show private keys too, run with `--display-private-keys` or `-p`
```shell
$ sncast --accounts-file my-account-file.json account list --display-private-keys

Available accounts (at <current-directory>/my-account-file.json):
- user0
private key: 0x1e9038bdc68ce1d27d54205256988e85
public key: 0x2f91ed13f8f0f7d39b942c80bfcd3d0967809d99e0cc083606cbe59033d2b39
network: alpha-sepolia
address: 0x4f5f24ceaae64434fa2bc2befd08976b51cf8f6a5d8257f7ec3616f61de263a
type: OpenZeppelin
deployed: false
legacy: false

- user1
[...]
```
### Custom Account Contract
By default, `sncast` creates/deploys an account using [OpenZeppelin's account contract class hash](https://starkscan.co/class/0x00e2eb8f5672af4e6a4e8a8f1b44989685e668489b0a25437733756c5a34a1d6).
Expand Down Expand Up @@ -139,10 +100,6 @@ When the `--add-profile` flag is used, you won't need to include the `--url` or
(the latter being necessary if your account information was stored in a custom file).
Simply use the `--profile` argument followed by the account name in subsequent requests.
### [`account list`](../appendix/sncast/account/list.md)
List all accounts saved in `accounts file`, grouped based on the networks they are defined on.
### [`account create`](../appendix/sncast/account/create.md) With Salt Argument
Salt will not be randomly generated if it's specified with `--salt`.
Expand All @@ -155,6 +112,48 @@ $ sncast \
--salt 0x1
```
### [`account list`](../appendix/sncast/account/list.md)
List all accounts saved in `accounts file`, grouped based on the networks they are defined on.
```shell
$ sncast account list
```
```shell
$ sncast --accounts-file my-account-file.json account list
```
```
Available accounts (at <current-directory>/my-account-file.json):
- user0
public key: 0x2f91ed13f8f0f7d39b942c80bfcd3d0967809d99e0cc083606cbe59033d2b39
network: alpha-sepolia
address: 0x4f5f24ceaae64434fa2bc2befd08976b51cf8f6a5d8257f7ec3616f61de263a
type: OpenZeppelin
deployed: false
legacy: false
- user1
[...]
```
To show private keys too, run with `--display-private-keys` or `-p`
```shell
$ sncast --accounts-file my-account-file.json account list --display-private-keys
Available accounts (at <current-directory>/my-account-file.json):
- user0
private key: 0x1e9038bdc68ce1d27d54205256988e85
public key: 0x2f91ed13f8f0f7d39b942c80bfcd3d0967809d99e0cc083606cbe59033d2b39
network: alpha-sepolia
address: 0x4f5f24ceaae64434fa2bc2befd08976b51cf8f6a5d8257f7ec3616f61de263a
type: OpenZeppelin
deployed: false
legacy: false
- user1
[...]
```
### `account delete`
Delete an account from `accounts-file` and its associated Scarb profile. If you pass this command, you will be asked to confirm the deletion.
Expand Down

0 comments on commit 1c1097b

Please sign in to comment.