Smart contract based solution for automatic crypto asset transfer when owner becomes inactive.
Millions of dollars worth of crypto assets are permanently lost every year because:
- Owner dies or becomes incapacitated
- No one knows the private key
- No inheritance system exists in Web3
CryptoWill is a smart contract based wallet that:
- Lets owner set a beneficiary address
- Starts an inactivity countdown timer (e.g. 30 days)
- Owner sends a periodic "I'm Alive" ping to reset the timer
- If owner does NOT ping within the set period → contract automatically transfers funds to beneficiary
Owner deploys contract → Sets beneficiary + inactivity period
↓
Owner pings "I'm Alive" every 30 days
↓
If no ping received after 30 days...
↓
Anyone can trigger executeWill()
↓
Funds automatically sent to beneficiary ✅
| Layer | Technology |
|---|---|
| Smart Contract | Solidity ^0.8.19 |
| Blockchain | Polygon Mumbai Testnet |
| Development | Hardhat v2.22 |
| Frontend | HTML + JavaScript |
| Wallet | MetaMask |
cryptowill/
├── contracts/
│ └── CryptoWill.sol ← Main smart contract
├── artifacts/ ← Compiled contract + ABI
├── scripts/
│ └── deploy.js ← Deployment script
├── test/
│ └── CryptoWill.test.js ← Unit tests
├── index.html ← Working demo
└── hardhat.config.js
# Install dependencies
npm install
# Compile contract
npx hardhat compile
# Run demo
# Just open index.html in browser!| Function | Description |
|---|---|
iAmAlive() |
Owner resets the inactivity timer |
executeWill() |
Transfers funds to beneficiary after timer expires |
timeRemaining() |
Returns seconds left before execution |
Built to solve the real problem of lost crypto inheritance using trustless smart contracts.
MIT