0% found this document useful (0 votes)
53 views

2 3 EthereumCommands

This document outlines various commands for interacting with Ethereum nodes, wallets, and transactions. It covers basic commands for displaying accounts, starting and stopping mining, and checking balances. It also covers more advanced commands for interacting with the eth, miner, personal, txpool, admin and net modules to manage accounts, transactions, nodes and the peer network.

Uploaded by

fintech
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

2 3 EthereumCommands

This document outlines various commands for interacting with Ethereum nodes, wallets, and transactions. It covers basic commands for displaying accounts, starting and stopping mining, and checking balances. It also covers more advanced commands for interacting with the eth, miner, personal, txpool, admin and net modules to manage accounts, transactions, nodes and the peer network.

Uploaded by

fintech
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

3.

Ethereum Commands

I. Basic Commands
1. Display list of accounts in ethereum

> eth.accounts

2. Display coinbase for mining

> eth.coinbase

3. Start mining

miner.start()

4. stop mining

> miner.stop()

5. checking balance

> eth.getBalance(eth.coinbase)

II. Eth Commands


1. Display list of accounts in ethereum

> eth.accounts

2. Display coinbase for mining

> eth.coinbase
3. checking balance

> eth.getBalance(eth.coinbase)

4. Check whether the node is mining or not


> eth.mining

5. Check the number of hashes per second that the node is mining wit
> eth.hashrate

6. Check the current gas price. The gas price is determined by the x latest blocks median gas price
> eth.gasPrice
7. Check the current block number
> eth.blockNumber

8. Getting Block information


> eth.getBlock(50)

III. Miner Commands


1. Start mining

miner.start(6)

2. stop mining

> miner.stop()

3. Setting etherbase, where mining rewards will go.


> miner.setEtherbase(eth.accounts[0])

IV Personal Commands

1. Create a new account


> personal.newAccount("123456")

2. List all the Ethereum account addresses of all keys in the key store.
> personal.listAccounts

3. Unlock account
> personal.unlockAccount(eth.accounts[0])

4. Lock your account


> personal.lockAccount(eth.accounts[0])

5. Sending Transaction (Refer Sending Ether to other account)


>personal_sendTransaction

V. TxPool Commands
These commands containing all the currently pending transactions as well as the ones queued for
future processing

1. Check the transaction status


> txpool.status

2. Display Transaction Content


> txpool.content

3. Display inspection property can be queried to list a textual summary of all the transactions
currently pending for inclusion in the next block(s)
> txpool.inspect
VI. Admin Commands
Geth Admin commands
1. Check Node information
> admin.nodeInfo

2. Check node data Directory


> admin.datadir

3. Check the information known about the connected remote nodes


> admin.peers

4. To add a new remote node to the list of tracked static nodes


>adin.addPeer(url) //refer node connectivity

VII. Net Commands


1. Print the network Id
> net.version

2. Check wether network listning


> net.listening

3. Check how many peers connected to the node


> net.peerCount

You might also like