post

/v4/credits/estimate

Estimate the credit cost of a points campaign's next run, mirroring the engine pre-check. Returns estimatedCost (pro-rated over the next run window, capped at 1 week) and threshold (= max(estimatedCost, BASE_COST_PER_WEEK), the minimum balance required for the pre-check to pass).

Request body

object
startTimestampnumber
required
Campaign start timestamp (unix seconds)
endTimestampnumber
required
Campaign end timestamp (unix seconds)
computedUntilnumberLast computed-until timestamp (unix seconds). Defaults to startTimestamp.
recipientCountnumberExpected recipient count
post
https://api.merkl.xyz/v4/credits/estimate
Merkl API
curl -X POST "https://api.merkl.xyz/v4/credits/estimate"
Live request — this will call https://api.merkl.xyz/ for real.