NOTE: You must wait until it downloads all the blocks. Enter
klay.blockNumber in a console and check whether it matches the current block number here
personal to get the list of available functions.
> personal.newAccount()Passphrase: # enter your passphraseRepeat passphrase:"0x75a59b94889a05c03c66c3c84e9d2f8308ca4abd" # created account address
Keystore file will be created under
keystore folder in the EN data directory,
DATA_DIR set in the
kend.conf. If you follows the quick start default guideline, it must be
$ ls ~/kend_home/keystore/UTC--2019-06-24T11-20-15.590879000Z--75a59b94889a05c03c66c3c84e9d2f8308ca4abd
To unlock the created account, execute the following command. It unlocks the account for 300 seconds. Note: If you want to manually set the unlock duration, refer to this link.
WARNING: Unlocking an account could be very dangerous if not done carefully. There are chances that your tokens will be taken away by hackers if your EN is hacked by a hacker. To use safer method, refer to this deployment guide using private key
> personal.unlockAccount('75a59b94889a05c03c66c3c84e9d2f8308ca4abd') # account address to unlockUnlock account 75a59b94889a05c03c66c3c84e9d2f8308ca4abdPassphrase: # enter your passphrasetrue
Using the Baobab faucet in KlaytnWallet.
Go to "KLAY Faucet" from the left pane menu, and click the "Run Faucet" button to get 5 KLAY.
You can run the KLAY Faucet once every 24 hours.
If you created a new account to get KLAY, then send the KLAY to your created account on the EN.
To see the balance of your account, execute the following command.
The default unit is peb (1 KLAY = 10^18 peb). More information about KLAY units can be found at Units of KLAY.
> klay.getBalance('75a59b94889a05c03c66c3c84e9d2f8308ca4abd') # enter your account address1e+21 # 1000 KLAY