Config

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

post/v4/config/decode/{distributionChainId}

Request

  • Base URL: https://api.merkl.xyz (the document declares no server; this is the origin it was published from)
  • URL: https://api.merkl.xyz/v4/config/decode/{distributionChainId}
  • Auth: apiKey (a scheme the document does not define)

Path parameters

string numeric required
OR
number required

Request body

campaignIdstring required
creatorstring required

Address

rewardTokenstring required

Address

amountstring required
campaignTypeinteger required
startTimestampnumber required

Unix timestamp in seconds (not milliseconds).

durationinteger required
campaignDatastring required

Response

Response for status 200

unknown required

Changes

    • warning

      changed the pattern of the request property from ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44}|[CG][A-Z0-9]{55})$ to ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44}|[CG][A-Z0-9]{55}|0x[a-fA-F0-9]{64})$ (media type: application/json)

    • warning

      changed the pattern of the request property from ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44}|[CG][A-Z0-9]{55})$ to ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44}|[CG][A-Z0-9]{55}|0x[a-fA-F0-9]{64})$ (media type: application/x-www-form-urlencoded)

    • warning

      changed the pattern of the request property from ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44}|[CG][A-Z0-9]{55})$ to ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44}|[CG][A-Z0-9]{55}|0x[a-fA-F0-9]{64})$ (media type: multipart/form-data)

    • warning

      changed the pattern of the request property from ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44}|[CG][A-Z0-9]{55})$ to ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44}|[CG][A-Z0-9]{55}|0x[a-fA-F0-9]{64})$ (media type: application/json)

    • warning

      changed the pattern of the request property from ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44}|[CG][A-Z0-9]{55})$ to ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44}|[CG][A-Z0-9]{55}|0x[a-fA-F0-9]{64})$ (media type: application/x-www-form-urlencoded)

    • warning

      changed the pattern of the request property from ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44}|[CG][A-Z0-9]{55})$ to ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44}|[CG][A-Z0-9]{55}|0x[a-fA-F0-9]{64})$ (media type: multipart/form-data)