> For the complete documentation index, see [llms.txt](https://sp8de-docs.gitbook.io/s-p-8-d-e-or-white-paper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sp8de-docs.gitbook.io/s-p-8-d-e-or-white-paper/smart-contract-user-funct./decrypt-quant-random.md).

# Decrypt quant random

To decrypt the random after purchase, a transaction in the `quant.coding` contract must be performed

```
cleos -u <address node> push action quant.coding encdecval '["<owner>", "quant.random"]' -p <owner>
```

the result will be returned in the transaction

<figure><img src="https://3112201423-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvE1qTxK5RQkiRxrDR1jq%2Fuploads%2F1GhWaA3wTJrphWp4kuNd%2Fimage.png?alt=media&amp;token=3a6c23b7-de95-486b-819b-2f6647cb8415" alt=""><figcaption></figcaption></figure>

<mark style="color:red;">**IMPORTANT:**</mark> for testnet use ***quantcoding1*** account with decryption contract.

```
cleos -u <address node> push action quantcoding1 encdecval '["<owner>", "quant.random"]' -p <owner>
```
