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

ESCROW_ONLY_SERVICE_PROVIDER_CAN_CHANGE_MILESTONE_STATUS

Only the service provider can change a milestone status.

403 Forbidden · escrow contract error · all variants (single/multi × v1/v2)

Example

{
  "type": "https://docs.trustlesswork.com/trustless-work/v2-en/api-rest/errors/escrow-only-service-provider-can-change-milestone-status",
  "title": "Forbidden",
  "status": 403,
  "code": "ESCROW_ONLY_SERVICE_PROVIDER_CAN_CHANGE_MILESTONE_STATUS",
  "detail": "Only the service provider can change a milestone status.",
  "instance": "/…",
  "traceId": "…"
}

When it happens

Simulation of the transaction fails on-chain with this contract error: Only the service provider can change a milestone status.

How to fix it

Build and sign the transaction with a wallet that holds the required role on this escrow (check the escrow's roles with a read endpoint), or update the roles first.