magicblock getRandomnessResult
magicblock_getRandomnessResultCheck if a Verifiable Random Function (VRF) request has been fulfilled on-chain and retrieve the random bytes or status.
Instructions
Check whether a VRF request has been fulfilled by reading the RandomnessRequest account on-chain. Returns fulfilled status, random bytes (if available), and the request metadata..
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"requestKey": "<requestKey>"
},
"name": "magicblock_getRandomnessResult"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | No | MagicBlock Router endpoint: 'mainnet' or 'devnet' | |
| requestKey | Yes | VRF request PDA key from magicblock_requestRandomness |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | MCP content blocks returned to the caller. | |
| isError | No | True when the tool result represents an application-level error. |