How to distribute Waves based tokens

Asset distribution can be organized with the Waves Node and API request.

Install the node, collect the necessary addresses (from the ICO participants), and use the script with cURL requests (links and example below)


How to Install 

Config file 

Config file tutorial

API Main

For example:

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \ 
   "amount": 0, \ 
   "fee": 0, \ 
   "sender": "string", \ 
   "recipient": "string" \ 
 }' ''

Or for example to find out who holds the WEUR with Asset ID - Gtb1WRznfchDnTh37ezoDTJ4wcoKaRsKqKjJjy7nm2zU

You can use this command

curl -X GET --header 'Accept: application/json' ''

This request will give a list of all Waves addresses with WEUR asset 

"3PDPXPVEPmtFGDb85TaQCnXGSQ5zdaoE7ry": 2775,
 "3P3zYabhPMWNRNAxZVtBrqFbexwSABi14xf": 1,
 "3PNaPGR16WCT9NmC1wP3iTFPSY8ZeX8D7Ns": 470,
 "3PMxpnAtSAEQszDJ6eECK13qoMiL95pBcmT": 1,

So, you can do the same for your asset. Asset ID can be found in the Portfolio tab / Your Asset / DETAILS. 

Finally just create the list of Waves addresses, create the mass payment script and run it.

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \ 
   "assetId": "string", \ 
   "sender": "string", \ 
   "transfers": [ \ 
     { \ 
       "recipient": "string", \ 
       "amount": 0 \ 
     } \ 
   ], \ 
   "fee": 0, \ 
   "attachment": "string", \ 
   "timestamp": 0 \ 
 }' ''

See also specialised Python tool. Pywaves utility -