aboutsummaryrefslogblamecommitdiffstats
path: root/cmd/mist/assets/examples/bomb.html
blob: 62540f9bb6dbe761ae185aa23d413f9af46af9ad (plain) (tree)





















                                                                               
<html>
<head>
<script src="../ext/bignumber.min.js"></script>
<script src="../ext/ethereum.js/dist/ethereum.js"></script>

<script>
var web3 = require('web3');
web3.setProvider(new web3.providers.HttpSyncProvider('http://localhost:8545'));
var eth = web3.eth;

function bomb() {
    for (var i = 0; i < 200; i++) {
        eth.transact({})
    }
}
</script>
</head>

<body>
<button onclick="bomb();">BOOM!</button>
</body>
</html>