Crates.io | miden-faucet |
lib.rs | miden-faucet |
version | 0.6.0 |
source | src |
created_at | 2024-04-27 10:09:45.786294 |
updated_at | 2024-11-06 03:02:22.40763 |
description | Miden node token faucet |
homepage | https://polygon.technology/polygon-miden |
repository | https://github.com/0xPolygonMiden/miden-node |
max_upload_size | |
id | 1222474 |
size | 296,425 |
This crate contains a binary for running a Miden rollup faucet.
[!TIP] Miden account generation uses a proof-of-work puzzle to prevent DoS attacks. These puzzles can be quite expensive, especially for test purposes. You can lower the difficulty of the puzzle by appending
--features testing
to thecargo install ..
invocation.
make docker-build-node
make docker-run-node
make install-faucet-testing
output-path
:miden-faucet create-faucet-account \
--output-path <path to faucet.mac> \
--token-symbol POL \
--decimals 9 \
--max-supply 1000000000
[!TIP] This account will not be created on chain yet, creation on chain will happen on the first minting transaction.
-f
flag (if you want to use an account from the genesis, specify the path to the faucet.mac
file generated by the make-genesis command of the Miden node):miden-faucet init -f <path to faucet.mac>
miden-faucet start
After a few seconds you may go to http://localhost:8080
and see the faucet UI.
This project is MIT licensed.