Download the current version of the simulator from:
il2-assets-sim-0.1.1-20230102.zip
It has 18,610,109 bytes and its sha256sum is:
b60310621cc4fde5c7f417348f77adc1
8673b8e9cf021455bac06cef8ae686de
Create the initial configuration file with:
il2-assets-sim config
It will generate a default config.json
file with the required parameters to run the application. Edit it before the initialization if you need to change the binding address or the location of the database files and logs.
Initialize the application with:
il2-assets-sim init
It will output the ID of the definition node and the id of the definition chain.
Initializing the application...Done!
Asset definition node: d0Mn2KeaDTsos6KZE8YQ17DLP2P1s0-rxXBQR7G4PqM
Asset definition chain: h0bd_32ZfsVg1tLOtO_rxkk4Q261fvHAiBmvP8-AW-Y
On the real IL2 Assets those IDs defines all assets compatible with this assets ecosystem.
Create a new admin APIKey with:
il2-assets-sim apikey -f -k admin
It will output the key value required to authenticate:
The key for admin is hVxp60sKIx1N4LocEf1FplpuAnSwVPNjo73iTjdBHX0
The value of the key will never be displayed again so keep it safe. Running the same command again will generate a new key value that replaces the old one.
You can get the on-line help with the option -h
:
il2-assets-sim -h
For more information about a command, use <command> -h
:
il2-assets-sim apikey -h
Start the service by running:
il2-assets-sim run
The server will be available, by default at:
If you need more information about the API, go to the following presentation: