Skip to main content


Here we will go through and explain how to create some basic transactions that use custom scripts. This will show how to use the Minima commands to construct, sign and post transactions. To test scripts and play with different transactions or constructions it is recommended that you use a private chain. Then none of your funds are at risk!

First create a new folder and copy the minima.jar into that folder. We will run everything from there.

From the command line cd into that folder.

To start a private chain:

java -jar minima.jar -data minidata1 -test -nop2p -genesis

These parameters mean:
-data : the data folder where all the config files for this node are stored. Default is a hidden .minima folder under the user's home directory. If you want to specify a folder not in the user's home directory, you must use the complete path.
-test : this uses test settings which have a faster blocktime and only keep a shorter chain in memory. If you are compiling Minima yourself you can edit these to your needs.
-nop2p : do not try and connect to other nodes in the p2p network
-genesis : delete all old data and create a new genesis block

Once you start Minima in this way you will have your own private chain, you will be sent the genesis Minima to spend, and you can enter commands directly into the console. Check your balance with ‘balance’.

If you need to quit Minima and wish to restart it without deleting old data use :

java -jar minima.jar -data minidata1 -test -nop2p