Last active
December 7, 2020 19:31
-
-
Save javierluraschi/38455b26bc6629ca9a2fcd03bd738fb8 to your computer and use it in GitHub Desktop.
Create ETH Wallet
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/gh/ethereum/[email protected]/dist/web3.min.js"></script> | |
<script> | |
const create = () => { | |
const web3 = new Web3(new Web3.providers.HttpProvider('https://mainnet.infura.io')); | |
let account = web3.eth.accounts.create(web3.utils.randomHex(32)); | |
document.getElementById('address').innerText = account.address; | |
document.getElementById('key').innerText = account.privateKey; | |
}; | |
</script> | |
<style> | |
body { | |
font-size: 80px; | |
overflow-wrap: break-word; | |
text-transform: uppercase; | |
font-family: monospace; | |
margin: 30px; | |
} | |
</style> | |
</head> | |
<body onload="create()"> | |
<div id='address'></div> | |
<br> | |
<div id='key'></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment