Smart Contracts
Herita is built on Solana using the Anchor framework, ensuring high performance, extremely low fees, and robust security.
Architecture & Anchor
The core of the protocol is the HERITA program. It handles vault creation, deposits, pinging (resetting the timer), and the claiming logic securely on-chain.
Program Derived Addresses (PDAs)
Every vault is a PDA. This means the smart contract itself acts as the custodian of the funds. No human, including the Herita team, has the private key to the vault. The funds can only be moved if the strict conditions written in the code are met.
The PDA seed structure ensures that each user can have a unique, deterministic vault address based on their own wallet and a specific identifier.
The Keeper Integration
Smart contracts cannot execute themselves. To provide an automated experience, we built an off-chain Keeper Node.
The Keeper monitors the blockchain for vaults that have expired. Once an expiration is detected, the Keeper builds and submits the claim transaction on behalf of the heirs. The smart contract validates the expiration entirely on-chain before releasing the funds, ensuring the Keeper cannot act maliciously.