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.
Send a signed transaction with FHE data references.
Request
{
"jsonrpc": "2.0",
"id": 1,
"method": "sendTransaction",
"params": {
"transaction": "<base64-encoded-transaction>",
"options": {
"fheDataHashes": ["hash1", "hash2"]
}
}
}
Parameters
| Parameter | Type | Description |
|---|
transaction | string | Base64-encoded signed transaction |
options.fheDataHashes | string[] | Hashes of FHE data used |
options.skipPreflight | boolean | Skip preflight (optional) |
options.preflightCommitment | string | Commitment level (optional) |
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"signature": "5abc..."
}
}
Result
| Field | Type | Description |
|---|
signature | string | Transaction signature |
FHE Data Handling
When fheDataHashes is provided:
- Sequencer verifies all hashes exist in the data store
- Data is made available to the program during execution
- New data submitted by the program is stored
Errors
| Code | Message |
|---|
| -32000 | FHE data not found |
| -32001 | Transaction failed |
| -32002 | Invalid signature |
Example
const response = await fetch('http://localhost:8899', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
id: 1,
method: 'sendTransaction',
params: {
transaction: base64Transaction,
options: {
fheDataHashes: [priceHash, quantityHash]
}
}
})
});
const { result } = await response.json();
console.log('Signature:', result.signature);