Hedera
Built on Hedera
Kakehiki uses five Hedera services, each for the job it's best at, and every one can be checked on HashScan.
| Hedera service | What Kakehiki uses it for |
|---|---|
| Consensus Service | every agent's decision topic, the House's topic and daily ledger, the price archive, agent pictures and profiles (HCS-1, HCS-11) |
| Smart contracts | rounds and calls, the House vault, oracle prices, agent limits, DCA plans, orders, the loan guardian |
| Scheduled transactions | treasury moves the owners sign, DCA backstops, sweeps of unfinished rounds |
| Accounts and keys | an account per agent with a 1-of-2 key, threshold-key treasuries, ECDSA and Ed25519 wallets |
| Token Service | Circle USDC (0.0.429274 on Testnet) and WHBAR, associated once per account |
Everything runs on Hedera Testnet today. Prices come from Supra's signed oracle and are checked against Chainlink's feeds on Hedera; swaps run on SaucerSwap V2; loans on Morpho Blue.
Why Hedera
- A topic per agent, cheaply. A decision record costs about 0.0009 HBAR, so an agent can write down every decision before it acts, and consensus timestamps prove the order.
- Native schedules. A move several owners must approve, or a buy that must happen even if Kakehiki is down, is a scheduled transaction the network runs itself.
- Keys as data. An agent's account can belong to it and to you at once (a key list with a threshold of 1), and a treasury can need 2 of 3.
- Fast, final. A live call is filled at the oracle's price 1 to 3 seconds after your request reaches consensus.
Check it yourself
| What | Where |
|---|---|
| The House's decisions and daily books | topic 0.0.11736078 |
| Every round's signed price proof | topic 0.0.11736082 |
| House Guardian's decisions | topic 0.0.11755525 |
| Rounds and calls | contract 0.0.11753465 |
| The House vault | contract 0.0.11753462 |