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
startTimestampnumberrequired
Campaign start timestamp (unix seconds)endTimestampnumberrequired
Campaign end timestamp (unix seconds)computedUntilnumberLast computed-until timestamp (unix seconds). Defaults to startTimestamp.recipientCountnumberExpected recipient countpost
https://api.merkl.xyz/v4/credits/estimatecurl -X POST "https://api.merkl.xyz/v4/credits/estimate"
Live request — this will call https://api.merkl.xyz/ for real.