/updateWhitelist
Base URL: https://winter-api.usewinter.com
Update a project's whitelist info
🚨Note! If you update the whitelist addresses, it overwrites all previous addresses
Things you can do:
Turn whitelist on/off for a project
Add in whitelisted addresses
Choose either a standard or Merkle Tree whitelist
Update a project you've already created.
POST
/updateWhitelist
Authenticate with basic auth where the username is your API key, e.g.
curl -X POST https://winter-api.usewinter.com/updateWhitelist -u sk_live_abcd=:
await axios.post(url,{ BODY }, { auth: { username: 'sk_live_abcd=' }})
Request Body
Name | Type | Description |
---|---|---|
email* | String | |
projectId* | Number | |
* | String | You need at least 1 param from /updateWhitelist to update in this request. |
whitelistedAddresses | String | An array of whitelist strings (e.g. ['0x123','0x456','0x789']). Note, adding/updating new whitelistedAddresses DELETES all previously whitelisted addresses. Make sure you add in ALL whitelistedAddresses you need |
whitelistStatus | Boolean |
|
whitelistType | String |
|
sandbox | Boolean |
Defaults to |
Last updated