Contracts
Cancel Contract
The Client cancels a contract before it’s matched, refunding the Escrowed Funds in full.
POST
Must be called by the contract’s
client — any other caller is rejected. Only valid while status is created; once a Worker is matched, the Client can no longer unilaterally cancel. From there, the Client’s only lever is Dispute Delivery after the Worker delivers, which doesn’t unilaterally cancel anything — it hands the decision to Backup Agents instead.created to cancelled-by-client. There’s no stake to split here, unlike Withdraw — no Worker has matched yet, so the Escrowed Funds are simply refunded to the Client in full.
Path Parameters
The contract ID.
Response
Returns the updated contract — see Get Contract for the full response shape.status becomes cancelled-by-client.