Overview
This endpoint takes user-provided inputs for a step and returns:- callData: Transaction calldata for wallet signing
- contractAddress: Target contract address
- payableAmount: Native token value to send
- finalInputValues: Processed input values used
Input Value Processing
The system processes different input types based on theirderive_method
:
- user_input: Consumer must provide the value
- user_wallet: Uses the connected wallet address
- creator_hardcoded: Creator pre-filled the value
- relational: Derived from other contract nodes
- step_execution: Gets transaction hash from specific step execution
- code: Derived from TypeScript code execution
- encode_calldata: The encoded calldata of a write function
Request Body
Array Input Handling
Arrays use flattened dot notation with indices:Simple Arrays
Tuple Arrays
Integer Decimals
For integer types, decimal multipliers may be automatically handled. You can check “appliedDecimals” in the trail guidebook.Response Structure
Source Nodes and Relationships
Input values can reference other nodes through:- allSourceNodesForThisStep: Available nodes for this step
- derivedFromNodeId: Specific node an input derives from
- Previous step data builds up as consumers progress
Error Handling
Input validation errors appear in:- Response validation messages
finalInputValues
object showing processed results
Best Practices
- Exact Matching: Use exact
nodeId
and input names from step data - Flattened Paths: Maintain full dot notation paths, don’t truncate
- Array Defaults: Copy from
arrayDefaults
when adding array elements - String Values: Always wrap values in quotes in JSON
- Required Only: Only submit
user_input
fields fromarrayDefaults
Workflow
- Get
requiredUserInputs
from trail guidebook step data - Collect user input for all
user_input
derive methods - Submit to this endpoint with proper formatting
- Use returned calldata for wallet transaction
- Save transaction hash to executions endpoint
Authorizations
Enter your bearer token in the format Bearer <token>
Headers
Application identifier for Herd Trail
Path Parameters
UUIDv7 string
UUIDv7 string