Random purchase

If you are a generator, you can skip this step.

  1. To install the application, download the following script in command: curl https://raw.githubusercontent.com/quantum-sp8de/quantra-installer/master/install_qrandom.sh -o install_qrandom.sh

  2. After the download is completed, you must issue the rights to execute the script chmod 777 install_qrandom.sh

  3. After setting the rights, you can call the script sudo ./install_qrandom.sh -r user

  4. After installation you can start buying random

Save your private key to a text file that will be used by quantrapy later

cd ~
echo "Private key: <PRIVATE KEY>" > user_pk.key

After saving the key, to purchase a random item you need to run the command:

quantrapy --url <NODE ADDRESS> random -c quant.random -t quant.token buyrandom -k ~/user_pk.key <account name>

Example result:

If you are a validator node in the sp8de network, you can also purchase random by running 2 commands through cleos:

cleos -u <node address> push action quant.token transfer '["<An account that buys randoms>", "quant.random", "50.00 QRNG", "buy random"]' -p <An account that buys randoms>
cleos -u <node address> push action encodingctrt encdecval '["<An account that buys randoms>", "quant.random"]' -p <An account that buys randoms>

Example result:

Last updated