Created
December 25, 2019 23:39
-
-
Save vlzhr/1d9768c569a5d1a7e12dd577cb6e2552 to your computer and use it in GitHub Desktop.
This file contains 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
// calling a "faucet" script wavesexplorer.com/tesnet/address/3MuN7D8r19zdvSpAd1L91Gs88bcgwUFy2mn/script | |
// this will top up the account balance, but only once | |
document.querySelector(".js-invoke").addEventListener("click", function() { | |
waves.invoke({ | |
dApp: "3MuN7D8r19zdvSpAd1L91Gs88bcgwUFy2mn", | |
call: { | |
function: "faucet" | |
} | |
}).broadcast().then(console.log) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment