Documentation Index
Fetch the complete documentation index at: https://docs.privora.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Retrieve FHE ciphertext from the content-addressable store.
Request
{
"jsonrpc": "2.0",
"id": 1,
"method": "getFheData",
"params": {
"hash": "abc123..."
}
}
Parameters
| Parameter | Type | Description |
|---|
hash | string | Hex-encoded SHA256 hash |
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": "<base64-encoded-ciphertext>"
}
}
Result
| Field | Type | Description |
|---|
data | string | Base64-encoded ciphertext |
Errors
| Code | Message |
|---|
| -32000 | Data not found |
Example
const response = await fetch('http://localhost:8899', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
id: 1,
method: 'getFheData',
params: {
hash: 'abc123...'
}
})
});
const { result } = await response.json();
const ciphertext = Buffer.from(result.data, 'base64');