How to Set Up VRF Proxy

Verifiable Random Function (VRF) services are crucial for building applications that require randomness, such as games. Traditionally, implementing secure randomness on blockchain was challenging due to the absence of reliable on-chain random number generators. AvaCloud solves this by providing a seamless, fully-managed VRF solution directly within its portal.

Prerequisites

  • Interoperability must be set up on your L1 (See this guide)
  • Core Extension is connected to your AvaCloud portal session

Step-by-Step: Creating a VRF Proxy

A video walkthrough of this process is included at the end of this section.
  1. Open your L1’s Interoperability tab in the AvaCloud portal and select VRF Proxies.

  2. Click Enroll Now to start the VRF setup. You’ll see an intro screen about the VRF service.

  3. Subscribe If you’re not subscribed, you’ll be prompted to upgrade your plan; otherwise, you’ll see “Subscribed.”

  4. Core Extension check: The portal checks that your Core Extension is connected to the correct L1 network. If not, it will prompt you to switch.

  5. Configure VRF proxy owner: Enter the contract owner address. This address will be used to deploy the VRFConsumerRegistry contract.

  6. Name your VRF proxy: Provide a name for your new VRF proxy contract.

  7. Once deployed, your proxy will be listed on the dashboard. Click any proxy in the list to view its details.

Watch the walkthrough:

Using the VRF Testing Module

You can also watch a video of the full testing workflow at the end of this section.

Once your VRF proxy is set up, AvaCloud offers a built-in Testing module so you can try out randomness generation without writing any custom code.

  1. In the VRF proxy detail page, locate the Testing module below and click Deploy Contract.

  2. Copy the new contract’s address and add it to your VRF allowlist.

  3. Optionally, update the contract’s name if you like.

  4. Click Draw random number. You’ll see a new random value (e.g. 285) returned from the VRF service.

  5. For more details on building with AvaCloud VRF, use the dashboard’s How to build using VRF button or check the full AvaCloud VRF Quickstart Guide.

Watch how VRF testing works:


If you need more help, explore our other articles or reach out to our support team via chat or email [email protected]. All examples provided are for demonstration purposes only.

Learn More About AvaCloud | Download Case Studies | Schedule an AvaCloud Demo