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)


Github https://github.com/wavesplatform/Waves/releases 

How to Install https://github.com/wavesplatform/Waves/wiki/How-to-install-Waves-node 

Config file https://github.com/wavesplatform/Waves/blob/master/waves-mainnet.conf 

Config file tutorial https://github.com/wavesplatform/Waves/wiki/Waves-Node-Configuration-File

API Main https://github.com/wavesplatform/Waves/wiki/Waves-Node-REST-API


For example:

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


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' 'http://127.0.0.1:6869/assets/Gtb1WRznfchDnTh37ezoDTJ4wcoKaRsKqKjJjy7nm2zU/distribution'


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.