Skip to main content

create_task_draft

Function create_task_draft 

Source
pub async fn create_task_draft(
    client: &TaskFastClient,
    body: &TaskDraftPrepareRequest,
) -> Result<TaskDraftPrepareResponse>
Expand description

POST /task_drafts — prepare an unsigned task payload for offline signing.

Returns {draft_id, payload_to_sign, token_address}. Caller must sign payload_to_sign with the key tied to poster_wallet_address and then call submit_task_draft with the resulting signature.