Use Solidity Development Tools
Prerequisites
Installation
Steps
Export your Environment Variables
export ADAPTER_CONTRACT=0xbd57b868bb3374faa88722d2ee7ba3023c744e05 # mainnet adapter contract
export RPC_URL= # Mainnet Alchemy / Infura RPC URL Here
export USER_PUBLIC_KEY= # Eth User You are using to deploy consumer / user contract
export USER_PRIVATE_KEY= # Corresponding Private KeyCreate a Subscription
Gather Subscription Details
Fund the Subscription
Deploy the Consumer Contract
Add Consumer to Adapter
Request Randomness
Check the Last Randomness
PreviousUse Randcast CLINextSharedConsumer: An Out-of-the-Box Randomness Consumer Contract for Lottery and Gaming Demonstration
Last updated