Skip to content

Commit

Permalink
update cli readme for testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Swen committed Jun 24, 2024
1 parent aece5d3 commit 7cf4e9d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,35 @@ solana balance

Now you're all set up to run CLI commands :)

#### Using ZK Testnet

By default, the CLI interacts with localnet. You can view the current config by running:

```bash
light config --get
```

To switch to ZK Testnet, run:

```bash
light config --indexerUrl "https://zk-testnet.helius.dev:8784" \
--proverUrl "https://zk-testnet.helius.dev:3001" \
--solanaRpcUrl "https://zk-testnet.helius.dev:8899"
```

Also adjust your solana config:

```bash
# Set config
solana config set --url "https://zk-testnet.helius.dev:8899"

# Airdrop 1 SOL
solana airdrop 1

# Print your address
solana address
```

### Commands

#### Create a compressed token mint
Expand Down
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lightprotocol/zk-compression-cli",
"version": "0.4.1",
"version": "0.4.2",
"description": "ZK Compression: Secure Scaling on Solana",
"maintainers": [
{
Expand Down

0 comments on commit 7cf4e9d

Please sign in to comment.