post

/v4/config/decode/{distributionChainId}

Decodes campaign data from the Distribution contract. Use distributionChainId path parameter and provide on-chain campaign data in body.

Path parameters

distributionChainIdnumber | string
required

Request body

objectOn-chain campaign data fetched from the Distribution contract
campaignIdstring
required
creatorstring
required
Address
rewardTokenstring
required
Address
amountstring
required
campaignTypeinteger
required
startTimestampnumber
required
Unix timestamp in seconds (not milliseconds).
durationinteger
required
campaignDatastring
required

Responses

200
Response for status 200
Schema
any
Example
null
post
https://api.merkl.xyz/v4/config/decode/{distributionChainId}
Merkl API
curl -X POST "https://api.merkl.xyz/v4/config/decode/{distributionChainId}"
Fill the required path parameter distributionChainId to send.Live request — this will call https://api.merkl.xyz/ for real.