Skip to main content

Introduction

Cryptosat periodically generates a 32-byte random beacon and stores it on a smart contract on the Velas blockchain. This tutorial guides through the steps to retrieve and verify randomness generated by Cryptosat.

Getting Started​

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

Setup MetaMask​

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

  1. Install MetaMask 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.

Acquire Testnet VLX​

  1. Install Velas CLI

  2. Generate a Velas Wallet

mkdir ~/my-velas-wallet
velas-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
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.