Configuration
After installation, use the client by running the following and adding the relevant commands:
miden-client
Help
Run miden-client --help
for information on miden-client
commands.
Configuration¶
We configure the client using a TOML file (miden-client.toml
).
[rpc]
endpoint = { protocol = "http", host = "localhost", port = 57291 }
[store]
database_filepath = "store.sqlite3"
The TOML file should reside in same the directory from which you run the CLI.
In the configuration file, you will find a section for defining the node’s endpoint
and the store’s filename database_filepath
.
By default, the node is set up to run on localhost:57291
.
Note
- Running the node locally for development is encouraged.
- However, the endpoint can point to any remote node.
Environment variables¶
MIDEN_DEBUG
: When set totrue
, enables debug mode on the transaction executor and the script compiler. For any script that has been compiled and executed in this mode, debug logs will be output in order to facilitate MASM debugging (these instructions can be used to do so). This variable can be overriden by the--debug
CLI flag.