How to use the icon-sdk-js.IconWallet.create function in icon-sdk-js

To help you get started, we’ve selected a few icon-sdk-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github icon-project / icon-sdk-js / quickstart / example / js / WalletExample.js View on Github external
document.getElementById('W01').addEventListener('click', () => {
			const wallet = IconWallet.create(); //Wallet Creation
			const address = wallet.getAddress(); // Get Address
			const privateKey = wallet.getPrivateKey(); // Get Private Key

			document.getElementById('W01-1').innerHTML = `Address: ${address}`;
			document.getElementById('W01-2').innerHTML = `Private Key: ${privateKey}`;
		});