How it actually works.

A reference for anyone evaluating the build: the lifecycle every workflow follows, and the API surface that implements it.

Workflow lifecycle

  1. Compile

    A goal and budget become a step graph: providers, dependencies, and conditions for what can be skipped.

  2. Quote

    Each runnable step is quoted against the live marketplace and checked against the workflow's remaining budget.

  3. Approve

    Steps within the tier's cap proceed automatically. Anything above it, or any unverified provider, opens a human approval.

  4. Pay

    Once cleared, the client submits an Algorand TestNet transaction and the payment payload goes to the facilitator.

  5. Verify

    The facilitator confirms the transaction on-chain via algosdk before the step is allowed to count as paid.

  6. Settle

    An idempotent receipt is issued and written to the ledger, alongside every offer, quote, and approval that led to it.

API surface

Everything the dashboard and app call, implemented under website/app/api.

MethodPathPurpose
POST/api/workflowsSubmit a goal and budget, get back a compiled workflow.
GET/api/workflows?userId=List a user's workflows, newest first.
GET/api/workflows/:idWorkflow status, step graph, recent ledger events.
GET/api/workflows/:id/traceFull replayable trace for the workflow.
POST/api/workflows/:id/approveApprove or deny a pending step.
POST/api/workflows/:id/cancelCancel a running workflow.
POST/api/facilitator/verifyVerify a payment payload against declared terms.
POST/api/facilitator/settleConfirm settlement and issue a receipt.
GET/api/providersList marketplace providers and their pricing scheme.

Veldar AI

Powered by Gemini · Always on

Online
Hey! I'm Veldar AII can help you understand how Veldar automates your B2B payments across borders. What would you like to know?

Veldar AI · Gemini-powered