1

When loading the node module @orao-network/solana-vrf to interact with the Orao oracle, I receive this error:

Uncaught ReferenceError: Buffer is not defined at ./node_modules/@orao-network/solana-vrf/dist/index.js

I'm just loading the Orao library in my JS file with:

import {
    Orao,
    networkStateAccountAddress,
    randomnessAccountAddress,
    FulfillBuilder,
    InitBuilder,
} from "@orao-network/solana-vrf";

Orao resources:

https://www.npmjs.com/package/@orao-network/solana-vrf/v/0.2.4

https://github.com/orao-network

1 Answer 1

1

If you're looking for another alternative:

Switchboard provides VRF.

Here's a basic walkthrough on how to use Switchboard VRF.

Here's a demo of using Switchboard VRF for a coin flip game.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.