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.

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.`;
		});