Complete API reference for jobjab-fhevm-sdk.
FHEVM Version: v0.9 compatible
SDK Version: jobjab-fhevm-sdk@0.1.2+
This SDK is designed for FHEVM v0.9 specification:
- ✅ Decryption: Uses relayer/gateway flow (no
FHE.requestDecryption) - ✅ EIP-712: Simplified structure (no
contractsChainId) - ✅ Types: Focus on
ebool,euint*,eaddress(v0.9 spec) ⚠️ Legacy:ebytes*types deprecated in v0.7+
- FhevmClient - Main client class
- NetworkConfig - Network configuration
- EncryptionValue - Input value types
- ErrorCodes - All error codes
- encrypt() - Encrypt single value
- encryptBatch() - Batch encryption
- encryptStruct() - Struct encryption
- decrypt() - User decryption
- publicDecrypt() - Public decryption
- useEncrypt - Encryption hook
- useDecrypt - Decryption hook
- EncryptedInput - Auto-encrypting input
- DecryptButton - One-click decrypt
isCiphertextHandle()- Validate handleisValidContractAddress()- Validate addressfindEncryptedInputs()- Parse ABIbuildContractParams()- Build params
MemoryCache- Caching with TTLcached()- Function memoizationBatchQueue- Auto-batching
isFhevmError()- Type guardformatErrorMessage()- Format error- Error Codes - All codes
- Examples - Runnable code
- Cookbook - Recipes
- Troubleshooting - Solutions