Metadium Tech (KOR)
  • 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

gmet을 이용하여 계정을 생성하고 직접 제어합니다. 을 이용하는 경우 간단하게 계정을 이용할 수 있습니다.

Create Account

gmet을 이용하여 Account를 생성하는 명령어 입니다. 생성된 Account File은 Keystore 디렉토리에 저장됩니다.

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

Get Account

외부에서 생성된 Account File을 디렉토리에 복사하는 명령어입니다.

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

Check your account balance

gmet Console에 접속하여, 잔고를 확인하는 명령어입니다.

eth.getBalance('{your_address}')

gmet Console로 Keystore에 있는 모든 Account의 잔고를 조회하는 명령어입니다.

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