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.
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