Skip to content

Instantly share code, notes, and snippets.

@josephros
Last active August 13, 2017 17:06
Show Gist options
  • Save josephros/ade5f7bebca64a7b86f2b59706bf6d18 to your computer and use it in GitHub Desktop.
Save josephros/ade5f7bebca64a7b86f2b59706bf6d18 to your computer and use it in GitHub Desktop.
web3 enabled html page
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/web3@0.20.1/dist/web3.min.js"></script>
</head>
<body>
<script>
// create a web3 object connected to our NodETH node
var web3 = new Web3(new Web3.providers.HttpProvider("<node rpc url>"));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment