How to use the icon-sdk-js.IconWallet.loadKeystore 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('W03').addEventListener('click', () => {
			const walletLoadedByKeystoreFile = IconWallet.loadKeystore(MockData.KEYSTORE_FILE, MockData.PASSWORD);

			document.getElementById('W03-1').innerHTML = `Address: ${walletLoadedByKeystoreFile.getAddress()}`;
			document.getElementById('W03-2').innerHTML = `Successfully loaded.`;
		});