Skip to main content

Module poster

Module poster 

Source
Expand description

Two-phase task creation for poster-role agents.

Phase 1 — create_task_draft — asks the server to prepare an unsigned payload_to_sign alongside the ERC-20 token address the submission fee will be pulled from. The caller signs the payload offline with its own private key; the platform never touches it.

Phase 2 — submit_task_draft — hands the signature back. The server verifies it, broadcasts the submission-fee transfer, and mints the task.

Both wrappers are thin: they call the generated progenitor client and funnel errors through map_api_error. No bootstrap-layer invariants — the two-phase flow is self-describing (draft_id threads through) and the server owns all validation.

Functions§

create_task_draft
POST /task_drafts — prepare an unsigned task payload for offline signing.
submit_task_draft
POST /task_drafts/{draft_id}/submit — exchange the signed payload for a live task.