This script automates the installation and initialization of the Miden CLI, ensuring you have everything you need to start working with the Miden rollup!
Simply run the following command:
curl -fsSL https://raw.githubusercontent.com/phklive/miden.sh/refs/heads/main/miden.sh | sh && cd miden
Session host account:
0x9b5f531caa375e50
Session ASSETB faucet ID:
0xa3d468012baccd26
Before running the script, ensure you have the following:
- Operating System: Linux or macOS or Windows with WSL. The script uses Bash shell commands.
- Terminal with ANSI Color Support: To display colored output and ASCII art properly.
- Internet Connection: Required to download and install dependencies like Rust and 618E Miden CLI.
- Sufficient Permissions: Ability to install software and create directories in your environment.
This script performs the following actions:
- Checks for Rust installation and offers to install it if not present.
- Ensures Cargo is in the system's PATH.
- Prevents overwriting by checking if the
miden
directory already exists. - Installs the
miden-cli
tool with specified features. - Initializes Miden with a provided RPC address.
- Creates a new mutable wallet.
- Displays a welcome ASCII art message.
- Lists available accounts.
- Provides useful resources and next steps.
After running the script:
- Visit the Testnet Faucet to get testnet funds: https://testnet.miden.io/
- Read the Documentation to learn more about Miden: https://docs.polygon.technology/miden/
- Explore the Codebase on GitHub: https://github.com/0xPolygonMiden
- Try out the Playground with examples: https://0xpolygonmiden.github.io/examples/
This script is open-source and available under the MIT License.