FUEL VRF

Verifiable Random Function compatible with Testnet Beta-3. Due to high traffic, Fuel nodes may take a few minutes to respond.
Seed

Approve the transaction. The status area below will show the transaction hash for the randomness request.

Status

Developers

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://beta-5.fuel.network/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)