/solana-vrf

SDK for verifiable randomness function (VRF / RNG) on Solana

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Orao Solana VRF SDKs

This repository provides off-chain Rust and JS web3 SDKs for requesting on-chain randomness using ORAO VRF contract.

Browse through js SDK and rust SDK subdirectories for more info. We've made an in-depth VRF integration guide on Solana's Cookbook.

How to run a test validator.

Note that anchor test will run it for the cpi tests.

Here is an example:

solana-test-validator -r \
    --bpf-program VRFzZoJdhFWL8rkvu87LpKM3RbcVezpMEc6X5GVDr7y js/dist/orao_vrf.so \
    --ledger /tmp/test-ledger