Five steps. One transfer.
A permission, a person, a code and a clock, in that order. Watch it run, then read each step below.
Approve an allowance
You name your heirs, seal the hash of a claim code, and sign one ordinary ERC-20 approval. No deposit is made. The tokens stay in your wallet, and approving zero withdraws the permission.
- Assets moved
- None
- Reversible
- Yes, by the owner, at any time
A solicitor verifies the death
No blockchain can know that a person has died, so most schemes guess from silence. Codicil asks the profession that already answers this question: a solicitor checks the certificate, then releases the claim code to the heir.
- Assets moved
- None
- In the demo
- Represented by handing over the claim code
The claim code is submitted
The contract hashes the submitted code and compares it with the hash sealed at setup. A match records the time. There is no address anywhere in the call: the code proves a claim has begun, and has no say in where it ends.
- Assets moved
- None
- State written
countdownStart = now
The cancellation window
The countdown runs in public. If the claim is mistaken or malicious, one transaction from your wallet cancels it and the vault reseals. You act only if something has gone wrong, so there are no check-ins.
- Assets moved
- None
- Length
- 90 days by design 90 seconds on the demo deployment
The heirs claim
Once the window closes, claim() spends your allowance and pays every stored heir in one transaction. This is the only time the asset moves, and it moves from your wallet to theirs.
- Assets moved
- Owner → named heirs, once
- Destination
- Read from storage. Never supplied by the caller.
Short enough to read.
A vault you cannot audit by eye is a custodian with extra steps. This is everything the deployed contract can be asked to do.
| Function | When | Effect | Moves assets |
|---|---|---|---|
updateHeirs(address[], uint16[]) |
Setup, by the owner | Stores up to ten heir addresses and their shares in basis points. | No |
setClaimCodeHash(bytes32) |
Setup, by the owner | Stores the hash of the claim code. The code itself never goes on-chain until it is used. | No |
submitClaimCode(string) |
After the death is verified | Checks the code against the stored hash and starts the countdown. | No |
cancelClaim() |
During the window, by the owner | Clears the countdown and reseals the vault. | No |
claim() |
After the window | Spends the allowance, paying each stored heir their share. | Owner → heirs |
Signatures as deployed at 0x1FAf…a4A7 on Sepolia. The remaining nine functions are read-only.
See it run.