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 | stringrequired
Request body
objectOn-chain campaign data fetched from the Distribution contract
campaignIdstringrequired
creatorstringrequired
AddressrewardTokenstringrequired
Addressamountstringrequired
campaignTypeintegerrequired
startTimestampnumberrequired
Unix timestamp in seconds (not milliseconds).durationintegerrequired
campaignDatastringrequired
Responses
200Response for status 200
Schema
any
Example
null
post
https://api.merkl.xyz/v4/config/decode/{distributionChainId}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.