bitcore/examples/browser/simple.html

14 lines
414 B
HTML

<!DOCTYPE html>
<html>
<body>
<script src="../../browser/bundle.js"></script>
<pre id="console"></pre>
<script>
var bitcore = require('bitcore');
var Address = bitcore.Address;
var a = new Address('1KerhGhLn3SYBEQwby7VyVMWf16fXQUj5d');
document.getElementById('console').innerHTML = '1KerhGhLn3SYBEQwby7VyVMWf16fXQUj5d is valid? '+a.isValid();
</script>
</body>
</html>