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://testnet.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)