Account

Create and manage accounts using gmet. You can easily use accounts when using Wallet.

Create Account

Command to create an account using gmet. The created account file will be stored in the Keystore directory.

gmet metadium new-account --out <account-file-name>

Get Account

Command to copy externally created account files to a directory.

mkdir {data_directory}/keystore
chmod 700 {data_directory}/keystore
cp <account-file-name> {data_directory}/keystore

Check your account balance

Command connects to the gmet console and checks the balance.

eth.getBalance('{your_address}')

Command to check the balance of all accounts in the keystore using gmet console.

function checkAllBalances() { 
var i = 0; 
eth.accounts.forEach( function(e){
     console.log("eth.accounts["+i+"]: " + e + " \tbalance: " + web3.fromWei(eth.getBalance(e), "ether") + " ether"); 
i++; 
})
};

Last updated