> For the complete documentation index, see [llms.txt](https://docs.metadium.com/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.metadium.com/en/developer/node-start/account.md).

# Account

Create and manage accounts using gmet. You can easily use accounts when using  [Wallet](/en/wallet/wallet-info.md).

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