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

ESCROW_INVALID_MILESTONE_INDEX

Milestone index is out of range.

422 Validation Error · escrow contract error · all variants (single/multi × v1/v2)

Example

{
  "type": "https://docs.trustlesswork.com/trustless-work/v2-en/api-rest/errors/escrow-invalid-milestone-index",
  "title": "Validation Error",
  "status": 422,
  "code": "ESCROW_INVALID_MILESTONE_INDEX",
  "detail": "Milestone index is out of range.",
  "instance": "/…",
  "traceId": "…"
}

When it happens

Simulation of the transaction fails on-chain with this contract error: Milestone index is out of range.

How to fix it

Correct the request according to the message above, then rebuild and resubmit.