Skip to content

Implement dispute opening via POST /escrow/single-release/v2/dispute #312

Description

@grantfox-oss

Context

If something goes wrong at any point in the P2P flow (buyer claims to have paid but seller disagrees, etc.), either party needs a way to open a dispute on the escrow.

Task

Add a "raise dispute" action (e.g. in /p2p/chat) that calls POST /escrow/single-release/v2/dispute with { contractId, signer, reason } (reason max 500 chars). Note: signer must be any escrow role except disputeResolvers. Sign and submit the returned unsignedXdr.

Acceptance criteria

  • Available to both buyer and seller from the order/chat UI.
  • Requires a non-empty reason, enforced client-side (≤500 chars) to match the API constraint.
  • Order/escrow status moves to "disputed" once send-transaction confirms, and normal payment actions (pay/approve/release) are disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions