Skip to main content

Wallet Integration

This guide covers wallet connection and authentication for the Privacy Boost CLI.

Private Key Authentication

The CLI uses private keys for authentication (no interactive wallet prompts):
Output:

Programmatic Usage (Rust)

Key Sources

Network Presets

Preset aliases:
  • Local: "local", "localhost", "dev"
  • OpSepolia: "op-sepolia", "optimism-sepolia", "opsepolia"

Environment Configuration

Logout

Check Status

Output:

Error Handling

Best Practices

1. Use Environment Variables for Keys

Never hardcode private keys. Use environment variables or config files.

2. Save Sessions

After authentication, sessions are saved automatically. Future commands don’t need --private-key.

Next Steps