On-chain KI