What makes Kwalang different
Kwalang eliminates the complexity of blockchain automation by providing a declarative language where you simply define what should happen and when. In Kwalang, you write workflows in YAML that specify:- When your workflow should activate (triggers)
- What conditions must be met (optional conditional logic)
- How actions should execute (sequential or parallel)
- Where actions should run (which blockchain networks or APIs)
Kwala’s YAML structure
Kwala workflows use a simple key-value pair format to organize information. Think of it like a form where each field has a label (the key) and an answer (the value). This makes workflows easy to read and understand. A key-value pair is written as:Key: value
The key is the label that describes what information you are providing. The value is the actual information. For example:
Name and ChainID are keys, and my_token_monitor and 1 are their corresponding values.
Organize information with sections
Kwala workflows organize related information into sections. Each section groups together related key-value pairs. The main sections are:- Name: The identifier for your workflow
- Trigger: When and how your workflow activates
- Actions: What happens when the workflow runs
- Execution: How the actions should be processed
Example YAML workflow
Let’s break down a real Kwala workflow:Key patterns to remember
-
Indentation matters: Items that belong together are indented (moved to the right). This shows their relationship. For example, all trigger-related information is indented under
Trigger:. -
Lists use dashes: When you have multiple items of the same type (like multiple actions), each one starts with a dash
-. - Values can be text, numbers, or addresses: Kwala accepts different types of information depending on what the key needs.
-
NA means not applicable: If a field does not apply to your workflow, you can use
NAto indicate it is intentionally left empty.
Next Steps
Learn how to create your first workflow
