Heliont Contract Rematerializer
AI-generatedSummary
Rematerializes a contract after teleportation: extracts the contract and input array from a handoff payload, strips the contract from each input item, and outputs the stripped items and the contract separately.
Inputs
- main — Incoming items from a Teleporter node (or similar) containing a json.handoff property with { contract: any, input: any[] }. If omitted, the node can use the Test Handoff parameter in manual mode.
Output shape
dual
The node returns two output arrays: output[0] contains the stripped input items; output[1] contains the contract object.
Examples
Example 1: Manual mode simulation
Set the Test Handoff parameter to a JSON object such as { contract: { id: 123, type: 'Order' }, input: [{ orderId: 1, amount: 100 }, { orderId: 2, amount: 200 }] } . No incoming connections are needed. The node will output on its first output two items (each with orderId and amount only) and on its second output the contract object { id: 123, type: 'Order' } .
Example 2: Connected to a Teleporter node
Leave Test Handoff at its default (empty JSON) and connect the output of a Teleporter node (which provides json.handoff) to this node's input. The node will process the incoming handoff in the same way as above.