For the complete documentation index, see llms.txt. This page is also available as Markdown.

Resolve Dispute

Resolve an open dispute and distribute the funds, signed by a dispute resolver.

Builds the unsigned transaction where a dispute resolver (roles.disputeResolvers) settles an open dispute by distributing the escrowed funds between the parties.

The reference below is generated from the live API spec β€” if anything on this page disagrees with it, the reference wins.

Endpoint

Resolve an open dispute and distribute the funds

post

The sum of distributions MUST equal the escrow balance β€” otherwise the contract rejects with DistributionsMustEqualEscrowBalance.

Authorizations
x-api-keystringRequired
Body
contractIdstringRequired

Deployed v2 escrow contract (C...).

Example: CDHAZ2RTE2MDHYQQ7NATF5IVKIFVGLX6FHJ66OPK6MUXBSTRRXFXJ6QB
disputeResolverstringRequired

Dispute resolver wallet β€” signs the transaction.

Example: GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN
Responses
200

Unsigned XDR built successfully.

application/json
unsignedXdrstringRequired

Base64-encoded unsigned XDR. Sign it with the appropriate wallet and submit to Soroban / Horizon to execute the operation on-chain.

Example: AAAAAgAAAAAtWsgedQ...AAAAAQAAAAA=
txHashstringRequired

SHA-256 hash of the prepared transaction. NOTE: it only matches the executed transaction if you sign the XDR exactly as returned β€” re-preparing (re-simulating) it changes the hash. Prefer contractId for correlation when present.

Example: b1946ac92492d2347c6235b4d2611184a8d53f7a8e6e9b4f0c79a2b30e5c4f3a
contractIdobject Β· nullableOptional

Deploys only: the address (C…) the new escrow contract WILL have once this transaction executes β€” known upfront because the service generates the deploy salt. Track your escrow with it (e.g. GET /escrows/:contractId) as soon as the transaction lands; it is stable even if your wallet/SDK re-prepares the transaction.

Example: CAAQCAIBAEAQCAIBAEAQCAIBAEAQCAIBAEAQCAIBAEAQCAIBAEAQC526
post/escrow/single-release/v2/resolve-dispute
POST /escrow/single-release/v2/resolve-dispute HTTP/1.1
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 252

{
  "contractId": "CDHAZ2RTE2MDHYQQ7NATF5IVKIFVGLX6FHJ66OPK6MUXBSTRRXFXJ6QB",
  "disputeResolver": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
  "distributions": [
    {
      "address": "GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
      "amount": 500
    }
  ]
}
{
  "unsignedXdr": "AAAAAgAAAAAtWsgedQ...AAAAAQAAAAA=",
  "txHash": "b1946ac92492d2347c6235b4d2611184a8d53f7a8e6e9b4f0c79a2b30e5c4f3a",
  "contractId": "CAAQCAIBAEAQCAIBAEAQCAIBAEAQCAIBAEAQCAIBAEAQCAIBAEAQC526"
}

Field notes

  • The escrow must actually be in dispute β€” resolving an undisputed escrow is rejected by the contract.

  • The distribution must account for the escrow's available balance; amounts are in human token units and fees are settled on-chain during the resolution.

What this endpoint returns

unsignedXdr + txHash β€” sign the XDR exactly as returned and submit it via Send Transaction. Full flow example on the Deploy page.

Next steps

Last updated