Using the random beacon on-chain
Following this tutorial, you'll learn how to write a smart contract consuming randomness from Cryptosat Random Beacon contract.
- 1.
- 2.Compile the contract on the Compile tab.
- 3.Deploy your contract with Random Beacon contract addressSelect
Injected Web3
environment and fill in0xFf94BaE6D7d2ccf61db5593Dc899E3c68464cDdb
for the Beacon Address- Velas Testnet: 0xFf94BaE6D7d2ccf61db5593Dc899E3c68464cDdb
- Velas Mainnet: 0x8f5FE77380B83BaA7365ccc9956EB0594859F9E4
MetaMask will ask you to confirm the transaction. - 4.After you deploy your contract, you can interact with it.Click on requestRandom button to request Space Random Beacon.