sbv2-solana/website/idl/_randomness_instructions.mdx

89 lines
2.2 KiB
Plaintext

import { FiType } from "react-icons/fi";
import { SiTypescript } from "react-icons/si";
import { SiJavascript } from "react-icons/si";
import { SiPython } from "react-icons/si";
import { SiRust } from "react-icons/si";
import { SiPowershell } from "react-icons/si";
import { VscJson } from "react-icons/vsc";
import { GoLinkExternal } from "react-icons/go";
import { SerumIcon } from "/src/components/icons/SerumIcon";
import { FaBook } from "react-icons/fa";
import { Typography } from "@mui/material";
<table>
<thead>
<tr>
<th>Instruction</th>
<th>API Resource(s)</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<b>VrfInit</b>
</td>
<td>
<a className="nowrap" href="/api/ts/classes/VrfAccount#create">
<SiTypescript className="devicons__nowrap" /> Typescript
</a>
</td>
<td>
<Typography>
Create a new VrfAccount with a specified configuration
</Typography>
</td>
</tr>
<tr>
<td>
<b>VrfProve</b>
</td>
<td>
<a className="nowrap" href="/api/ts/classes/VrfAccount#prove">
<SiTypescript className="devicons__nowrap" /> Typescript
</a>
</td>
<td>
<Typography></Typography>
</td>
</tr>
<tr>
<td>
<b>VrfVerify</b>
</td>
<td>
<a className="nowrap" href="/api/ts/classes/VrfAccount#verify">
<SiTypescript className="devicons__nowrap" /> Typescript
</a>
</td>
<td>
<Typography></Typography>
</td>
</tr>
<tr>
<td>
<b>VrfRequestRandomness</b>
</td>
<td>
<a
className="nowrap"
href="/api/ts/classes/VrfAccount#requestrandomness"
>
<SiTypescript className="devicons__nowrap" /> Typescript
</a>
<br />
<a
className="nowrap"
href="https://docs.rs/switchboard-v2/latest/switchboard_v2/vrf/struct.VrfRequestRandomness.html"
target="_blank"
>
<SiRust className="devicons__nowrap" /> Rust
</a>
</td>
<td>
<Typography>Request a new randomness value</Typography>
</td>
</tr>
</tbody>
</table>