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}

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

{"stackTrail":"paths:/v4/config/decode/{distributionChainId}:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

Changed in 1 of the 2 revisions of this API.6

    • changed the pattern of the request property creator 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)

      request-property-pattern-changed

    • changed the pattern of the request property creator 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)

      request-property-pattern-changed

    • changed the pattern of the request property creator 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)

      request-property-pattern-changed

    • changed the pattern of the request property rewardToken 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)

      request-property-pattern-changed

    • changed the pattern of the request property rewardToken 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)

      request-property-pattern-changed

    • changed the pattern of the request property rewardToken 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)

      request-property-pattern-changed