# Workflow

### **Submitting a KRC-20 Transaction**

Users initiate a KRC-20 operation (e.g., a token transfer) in a wallet or DApp to construct the transaction data. The required fees are then calculated according to the Fee Model, including both Layer-1 and KRC-20. After signing, the transaction is broadcast to Kaspa nodes; once it receives Layer-1 confirmation, it is admitted into KRC-20 execution.

### **KRC-20 Node Processing**

KRC-20 nodes continuously ingest, parse, and perform basic validation continuous data flows from the Layer-1 ordered transaction stream in real time. For valid KRC-20 transactions (OPs), the Lyncs engine executes them deterministically, reading and writing KRC-20 state and producing updated state commitments and checkpoint hashes. The processing pipeline will also respond in real time to **Layer-1 reorganization** events, including monitoring, conditional rollback, and re-execution as required.

### **RTD-Rollup Process**

Miners retrieve the latest checkpoint data and related metadata from KRC-20 nodes and embed it into the payload of Layer-1 blocks during block production. Once the Rollup-bearing block is confirmed on Layer-1, KRC-20 nodes detect the embedded data, verify its validity according to the consensus rules, and compute the corresponding rewards and settlement. As additional Layer-1 blocks get confirmed, KRC-20 state finality is progressively established.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-kasplex.gitbook.io/krc20/technical-overview/workflow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
