> For the complete documentation index, see [llms.txt](https://docs.cryptosat.io/cryptosat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cryptosat.io/cryptosat/random-beacon/verifiable-random-beacon.md).

# Verifiable Random Beacon

Cryptosat periodically generates a 32-byte random beacon and stores it on a smart contract on the [Velas](https://velas.com/) blockchain. This tutorial guides through the steps to retrieve and verify randomness generated by Cryptosat.

### Getting Started[​](broken://pages/Ma3HtYT73JVAyUmeaJzr) <a href="#getting-started" id="getting-started"></a>

You'll need the following tools to complete the steps in this tutorial:

* [The Remix IDE](https://remix.ethereum.org/) or any Solidity development environment
* [MetaMask](https://metamask.io/)
* [Velas](https://velas.com/) wallet and Velas testnet VLX

#### Setup MetaMask[​](broken://pages/Ma3HtYT73JVAyUmeaJzr) <a href="#setup-metamask" id="setup-metamask"></a>

To deploy a smart contract on any blockchain, you need a wallet and corresponding token to pay for the fee.

1. [Install MetaMask](https://metamask.io/download/) browser extension.
2. Open MetaMask and follow the instruction to setup a new account. Copy your secret recovery phrase into a secure location. You need this to access your walllet later.
3. Configure MetaMask for Velas Network following [this article](https://support.velas.com/hc/en-150/articles/4405102780818-How-To-Configure-MetaMask-for-Velas-Network-RPC).

#### Acquire Testnet VLX[​](broken://pages/Ma3HtYT73JVAyUmeaJzr) <a href="#acquire-testnet-vlx" id="acquire-testnet-vlx"></a>

1. [Install Velas CLI](https://docs.velas.com/cli/install-velas-cli-tools)
2. [Generate a Velas Wallet](https://docs.velas.com/wallet-guide/file-system-wallet)

```
mkdir ~/my-velas-walletvelas-keygen new --outfile ~/my-velas-wallet/my-keypair.json
```

1. Airdrop some tokens to your wallet

```
velas airdrop 10 <RECIPIENT_ACCOUNT_ADDRESS> --url https://explorer.testnet.velas.com/rpc
```

Replace `<RECIPIENT_ACCOUNT_ADDRESS>` with your base58 encoded public key address.

1. Transfer Velas Native coin to Velas EVM with [evm-utils](https://docs.velas.com/evm/#transfer-native-token-to-evm)

```
velas evm transfer-to-evm -k ~/my-velas-wallet/my-keypair.json <VELAS_EVM_ADDRESS> <AMOUNT>
```

`<VELAS_EVM_ADDRES>` will be the public address of your MetaMask wallet.
