How Does the KRNL Protocol Work?
This page is dedicated to illustrating how the KRNL Protocol works when a dApp submits a transaction to a smart contract, and how smart contracts receive responses from kernels. This is the high level architecture:
Step 1 — User interacts with dApp

Step 2 — User Account (EOA) Authorizes a smart contract account

Step 3 — dApp uses KRNL SDK (fetch metadata)

Step 4 — SDK sends JSON-RPC request to KRNL Node

Step 5 — Workflow Engine loads the workflow

Step 6 — Executor runs steps (sandboxed) and calls externals

Step 7 — Attestor signs the final result

Step 8 — KRNL Node sends the UserOps to the Relayer/Bundler

Step 9 — Bundler forwards the UserOps after validation to designated SCA

Step 10 — SCA sends the fees to KRNL Vault & Execute the target smart contract

Step 11 — Target Contract updates state / business logic

Last updated

