Last active
May 9, 2018 22:52
-
-
Save MikkySnow/f067dc4ab83d723d9a20edae0125791a to your computer and use it in GitHub Desktop.
API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Создает новый запрос на минтинг WhiteCoin | |
| // amount - количество токенов для создания | |
| // address - адрес клиента, на который нужно отправить WhiteCoi | |
| mintingRequest: function (amount, address) { | |
| WhiteCoin.mintingRequest(amount, address, (error, result) => { | |
| // TODO: Добавить сюда обработку результата | |
| WhiteCoin.NewMintingRequest().watch((err, response) => { | |
| console.log(response.args.amount); // Сумма для эмиссии | |
| console.log(response.args.id); // Номер запроса, который мы подставляем в mintWhitecoin() | |
| console.log(response.args.to); // Адрес клиента | |
| }) | |
| }) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment