API reference for TypeScript Privora class
import { Privora } from '@privora/sdk'; const privora = await Privora.connect('http://localhost:8899');
static async connect(url: string): Promise<Privora>
static withoutKey(url: string): Privora
get connection(): Connection
encrypt<T extends EncryptedType>(value: number, type: T): PendingEncrypted<T>
encryptBatch<T extends EncryptedType>( inputs: Array<{ value: number; type: T }> ): Array<PendingEncrypted<T>>
async submit<T extends EncryptedType>( encrypted: Encrypted<T> | PendingEncrypted<T> ): Promise<string>
async submitBatch<T extends EncryptedType>( encrypted: Array<Encrypted<T> | PendingEncrypted<T>> ): Promise<string[]>
async getFheData(hash: string): Promise<Uint8Array>
userCrypto(keypair: Keypair): UserCrypto
transaction(): TransactionBuilder
async getLatestBlockhash(): Promise<{ blockhash: string; lastValidBlockHeight: number }>
async getBalance(pubkey: PublicKey | string): Promise<number>
async requestAirdrop(pubkey: PublicKey | string, lamports: number): Promise<string>
async getMinimumBalanceForRentExemption(dataLength: number): Promise<number>