Top up your Account
Last updated
Last updated
Klaytn Endpoint Node comes with JavaScript console. From the console command line, you can initiate part of Klaytn API calls to your EN. To attach to the JavaScript console, execute the following command.
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
NOTE: Type klay
or personal
to get the list of available functions.
To create a new Klaytn account from the JavaScript console, execute the following command. Your private key will be encrypted with the passphrase you enter.
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 ~/kend_home/keystore/
.
Using the Baobab faucet in KlaytnWallet.
You can either create a new account from the Wallet or use the keystore file you created from the EN JavaScript console above to log into the Wallet.
Go to "KLAY Faucet" from the left pane menu, and click the "Run Faucet" button to get 150 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.
To leave the javascript console, execute the following command.
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 . 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
Access .
The default unit is peb (1 KLAY = 10^18 peb). More information about KLAY units can be found at .