After connecting your wallet and hitting the button above, you will be asked to approve the transaction on Fuel's Sepolia Testnet.
The seed and status areas below will update with the generated randomness seed, request tx hash and randomness itself.
Seed
Status
Developers
Github: Fuel VRF SDK | On-chain Contract to Contract call - Russian Roulette Example
JS SDK: @orao-network/fuel-vrf
Copied// Import ORAO's VRF library import { OraoVrf } from '@orao-network/fuel-vrf' const wallet_pass = "put_me_here"; // define the RPC endpoint let provider = new Provider("https://testnet.fuel.network/v1/graphql"); // define the wallet and unlock it let wallet = new WalletUnlocked(wallet_pass, provider); // initialize VRF constructor let vrf = new Vrf(wallet); // generate a seed for the VRF request let seed = getRandomB256(); // send the VRF request let request = await vrf.request(seed) // get the randomness let randomness = await vrf.getRequest(seed)