
post
/v4/credits/estimate/total
Estimate the total credit cost of a points campaign over its full duration (endTimestamp − startTimestamp). Used at creation time to gate campaign submission when the creator's balance is insufficient. Returns estimatedCost (full pro-rated cost) and threshold (= max(estimatedCost, BASE_COST_PER_WEEK)).
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/estimate/totalcurl -X POST "https://api.merkl.xyz/v4/credits/estimate/total" \
-H "Content-Type: application/json" \
-d '{ "startTimestamp": 1789663952, "endTimestamp": 1790268752 }'Live request: this will call https://api.merkl.xyz/ for real.