
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
startTimestampnumberrequired
Campaign start timestamp (unix seconds)
endTimestampnumberrequired
Campaign end timestamp (unix seconds)
computedUntilnumberLast computed-until timestamp (unix seconds). Defaults to startTimestamp.
recipientCountnumberExpected recipient count
post
https://api.merkl.xyz/v4/credits/estimatecurl -X POST "https://api.merkl.xyz/v4/credits/estimate" \
-H "Content-Type: application/json" \
-d '{ "startTimestamp": 1789663929, "endTimestamp": 1790268729 }'Live request: this will call https://api.merkl.xyz/ for real.