Workflows
Introduction
Structure of a Workflow
{
//Basic info for the execution content
"chain_id": <chain id>, // Chain ID of the target chain
"sender": "<address>", // Wallet address initiating execution
"delegate": "<delegate-address>", // Optional delegated account
"attestor": "<attestor-url>", // IPFS or signed attestor config
// Details of the Target contract
"target": {
"contract": "{{ENV.TARGET_CONTRACT}}", // Address of the target contract (passed as env)
"function": "<function signature>", // Function signature to call on the target contract
"authData_result": "${construct-property-analysis-evm.result}", // Referencing the result of the EVM CONSTRUCT STEP
"parameters": [] // If there are any extra param other than the AuthData tuple can be handled here
},
"sponsor_execution_fee": true, // If you want to sponsor the execution fee for the user
"value": "0", // If the target function signature is payable
"intent": {
"id": "{{TRANSACTION_INTENT_ID}}", // Unique identifier for intent
"signature": "{{USER_SIGNATURE}}", // User signature over intent
"deadline": "{{TRANSACTION_INTENT_DEADLINE}}" // Expiry timestamp
},
// RPC and Bundler config
"rpc_url": "${_SECRETS.rpcSepoliaURL}",
"bundler_url": "https://api.pimlico.io/v2/sepolia/rpc?apikey=${_SECRETS.pimlico-apikey}",
"paymaster_url": "https://api.pimlico.io/v2/sepolia/rpc?apikey=${_SECRETS.pimlico-apikey}",
"gas_limit": "100000",
"max_fee_per_gas": "20000000000",
"max_priority_fee_per_gas": "2000000000",
// Workflow steps
"workflow": {
"name": "<workflow-name>",
"version": "1.0.0",
"steps": [
{
"name": "<step-name>",
"type": "<step-type>", // HTTP, EVM_READ, EVM_ENCODER, BUNDLE
"image": "<executor-image>", // Containerized executor image
"attestor": "<attestor-url>", // Attestor configuration
"next": "<next-step>", // Optional link to next step
"config": { }, // Step-specific configuration
"inputs": { }, // Data from user or previous step
"outputs": [ ] // Data exported for next steps
}
]
}
}
1. Basic Info
Field-by-field explanation:
2. Target Contract Details
Field-by-field breakdown
3. RPC and Bundler Config
Field-by-field explanation
2. Workflow Steps (Business Logic)
2.1. HTTP Request Steps
Field-by-field Explanation
Field-by-field Explanation
2.2. EVM Read Steps
Field-by-field Explanation
2.3. EVM Construct
Best Practices
What's next?
KRNL NodeLast updated

