Introduction
Welcome to the KRNL docs, we are so excited to help you build your first KRNL integrated app.
What is the KRNL Protocol?
A plug-and-play protocol that extends smart contracts with secure access to external APIs, AI systems, and blockchain data. Each step is cryptographically signed, timestamped, and verifiable on-chain through a decentralized orchestration layer without trust assumptions required.
Why does it matter?
Smart contracts live in a closed box: they can’t fetch live data, call an API, or run heavy computation without relying on unverified off-chain actors.
The KRNL Protocol changes that. It executes external tasks off-chain as part of a verifiable workflow, cryptographically signs each step, and returns a receipt along with the data source’s response (API, other contracts, etc.) to your smart contract, allowing it to verify authenticity before any state change occurs.
What you can build?
As a flexible middleware, KRNL can power a wide range of use cases, a small subset of which are listed below:
DeFi oracle – A lending contract fetches a real-time stock price; KRNL returns the number plus a signed proof, so the contract can liquidate automatically without trusting the data source.
NFT loot-box – A game mint needs verifiable randomness; KRNL runs the RNG off-chain, attaches a cryptographic ticket, and the contract opens the box only if the ticket checks out.
AI credit score – A DAO wants to underwrite loans using an ML model; KRNL scores the wallet off-chain, signs the result, and the contract sets the interest rate on-chain.
Cross-chain swap – User wants ETH → SOL; KRNL watches both chains, produces a single signed proof when the ETH is locked, and the Solana contract releases the tokens.
Carbon offset – A company pays per ton of CO₂; KRNL calls an emissions API, signs the reading, and the contract auto-mints the exact number of offset NFTs.
Need Help?
If you feel stuck somewhere, or if you have any feedback or even if you want to say hello, you can reach out to Discord:
Join the KRNL Discord Server.
What's next?
Getting StartedLast updated


