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
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/estimate/totalcurl -X POST "https://api.merkl.xyz/v4/credits/estimate/total"
Live request — this will call https://api.merkl.xyz/ for real.