Last updated
Last updated
Ethcode provides developers with all the required features of Ethereum account. Inside Ethcode developers can create, import, and Export an Ethereum account to do operations on EVM-compatible systems. below is the explanation of each feature associated with the account.
An Ethereum account is 42 characters long hexadecimal address. Developers can use an inbuilt Ethereum account to do any deployment and contract call process in Ethcode.
Ctrl + shift + P
- shows command palate of VScode.
Ethcode: Activate Extension
- this command activates the Ethcode extension.
3. Create ethereum account
- command is for creating an Ethereum account in Ethcode.
4. Set the desired password for the new Ethereum account.
You should remember the password of your newly created Ethereum account to do any interaction with smart contracts.
After successful account creation now it's time to fund your Ethereum account with faucet tokens.
you can get free tokens from mentioned faucets:
If anyone wants to use accounts created outside Ethcode like Metamask. Ethcode provides the feature of importing the Ethereum account stored in Keystore format.
Import ethereum account
- command for importing Ethereum account stored in Keystore format.
2. Select keystore file where it is saved in your local machine.
Developers love uniformity that's why Ethcode contains one more exciting feature called Export account. you can export the Ethereum account that you use in Ethcode in Keystore format and use that account on others wallets too.
Ethcode: Export Account
- command to export account from Ethcode in Keystore format.
2. Select account from the Quick menu.
3. Select the directory where you want to save the Keystore file.
While using with hardhat, one might select hardhat accounts and be able to use that account for readonly calls without any further modifications. But if user requires to sign transactions with a hardhat account using ethcode here are the steps.
Export a hardhat wallet
create account.ts
file
create keyeth.ts
file
Import the hardhat wallet into ethcode
Now you should be able to sign your transaction using the hardhat wallet you imported. When asked for password use nothing and hit enter.
Goerli testnet faucet:
Sepolia testnet faucet:
Polygon mumbai faucet: