Mina RNG is a ZK Oracle used to provide random numbers in a ZkApp.
The app is deployed to mina-rng.45930.xyz. To use in an app, make network requests to the API routes
/api/randomNumber
/api/dice
This app will sign requests as B62qpvpwLbLDTLQvA2EVBrX5QXmTQ7yy9442KhCj8R1zAk21LuVKtwd
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
This app uses playwright tests. First start the server with
npm run dev
Then run tests with
npx playwright test
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.