Home

APTOS VRF

A large variety of secure data at high speed in real-time giving you an advantage over competitors through customization.
Seed

Step 3 Approve the transaction. The status area below will show the transaction hash for the radnomness request.

Status

Developers

Copied
// Import ORAO's VRF library import { OraoVrf } from '@orao-network/aptos-vrf' const oraoVrf = new OraoVrf(NODE_URL); const seed = new Uint8Array(randomBytes(32)); const alice = new AptosAccount(); // Request using a random seed. const payload = vrf.requestPayload(seed); const randomness = await vrf.waitFulfilled(account.address, seed); console.log("Your transaction hash is", tx); // Await fulfilled randomness. const randomness = await oraoVrf.waitFulfilled(alice.address(), seed); console.log("Your transaction id is", response?.hash) console.log("Your randomness is", randomness);