Maya-cli
The Maya CLI is a versatile utility designed to simplify common tasks related to the Mina blockchain project. With this tool, you can perform various operations, including:
Features:
1. Create Frontend
- Description: Quickly set up a frontend for your Mina project using popular frameworks like Next.js and React.js.
-
Usage:
npx mina-maya create-frontend
2. Check Balance
- Description: Retrieve the balance associated with a specific Mina account using the Mina Explorer API.
-
Usage:
npx mina-maya check-balance
3. Check Mina
-
Description: Obtain essential data about the Mina blockchain network, such as blockchain length, circulating supply, state hash, chain ID, and total currency.
-
Usage:
npx mina-maya check-mina
-
Example Output:
Metric Value --------------- ------------------------------------ Blockchain 1,000,000 Circulating 1,000,000 State Hash 3NLES4Ho75Pv7DRCbNPUpjyzGCC4M69ssoeUsVJgnqoR4DR7v2du Chain id 5f704cc0c82e0ed70e873f0893d7e06f148524e3f0bdae2afb02e7819a0c24d1 Total currency 1107082252.840039233
Prerequisites:
Before using the Mina Project Command-Line Tool, ensure that you have the following prerequisites installed on your system:
- Node.js: Node.js Installation Guide
Getting Started:
-
Clone the project repository or download the script.
-
Install project dependencies by running the following command in the project's directory:
yarn install
-
Run the script using the following command:
yarn start <operation>
-
For building the script, run the following command:
yarn build
The script will be built in the
dist
directory.
Usage:
To use the tool, run it with one of the specified operations as an argument. For example, to create the frontend, run:
npx mina-maya create-frontend
Replace npx mina-maya
with the path to the script if needed.
If you specify an invalid operation, the script will display a list of available operations.
Acknowledgments:
This project utilizes third-party libraries to enhance functionality:
License:
This project is licensed under the MIT License.