Metadium Tech (ENG)
  • Navigation
    • Metadium Overview
    • Metadium Tech (ENG)
    • Metadium Tech (KOR)
  • METADIUM Info
    • Architecture
    • Network Structure
    • Consensus
    • Smart Contract
    • DID
    • EIP-1559
    • Fee Delegation
    • Roadmap
  • Developer
    • Node Start
      • gmet Binary
      • gmet Guide
      • Connect Node
      • Account
    • Install Node
      • End Node
        • Requirements
        • Install Gmet
      • BP Node
        • Requirements
        • Install Gmet
  • Smart Contract
    • Solidity
    • Precompiled Contracts
    • Sample Contracts
  • API Reference
    • API Info
    • Json-RPC
    • Explorer API
      • Accounts
      • Blocks
      • Contracts
      • Transactions
      • Event logs
      • Tokens
  • Wallet
    • Wallet Info
    • Fee
  • FAQ
  • Articles of Foundation
Powered by GitBook
On this page
  • Create Account
  • Get Account
  • Check your account balance
  1. Developer
  2. Node Start

Account

PreviousConnect NodeNextInstall Node

Last updated 1 year ago

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

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