Build a calculation sequence
Link up to ten calculations. Supply a previous result as the input to the next step and inspect each output.
Program steps
Result
Run the calculation to see the result.
Use this through REST or MCP
POST /api/v1/agent/operations/programs/sequence or call bitpont_operationsRunSequence with these inputs.
{
"definition": "{\n \"version\": 1,\n \"steps\": [\n {\n \"key\": \"invoices\",\n \"tool\": \"treasuryInvoiceBatches\",\n \"input\": {\n \"invoices\": [\n {\n \"id\": \"INV-101\",\n \"recipient\": \"0x1111111111111111111111111111111111111111\",\n \"amount\": \"125.25\"\n }\n ]\n }\n },\n {\n \"key\": \"cash\",\n \"tool\": \"treasuryFundingGap\",\n \"input\": {\n \"balance\": \"120\",\n \"reserve\": \"25\"\n },\n \"bind\": {\n \"spend\": \"invoices.total\"\n }\n }\n ]\n}"
}