Questions tagged [geth]

Go implementation of command line tools for Ethereum blockchain

Go implementation of command line tools will allow you to connect your server to or run your application on the Ethereum blockchain

Ethereum CLI: https://www.ethereum.org/cli

Github: https://github.com/ethereum/go-ethereum/wiki/geth

237 questions
-1
votes
1 answer

How to get the current hashRate in geth?

I started geth on mainnet I did miner.start() it logs when generating the DAG , getting block headers ...etc but when i do eth.hashrate it logs 0 also when i do miner.getHashRate() or miner.HashRate it throws an error saying that the function is…
-1
votes
1 answer

Geth node not finding peers with Zedboard

I've been trying to setup an Ethereum node using geth inside a Zedboard which has Arch Linux ARM installed inside it. I am using the latest version of the binaries for the ARM7 version available in the official page (1.10.15). This is intended to be…
-1
votes
1 answer

"net/http: nil Context "coming from a smart contract funtion of an Golang API

I had a backend golang project built and ran already in AWS, and I added geth to achieve part of the blockchain functionality. So far, I had a smart contract written with its go file auto-generated by geth called orderContract.go. Now, I need to run…
-1
votes
2 answers

Get USDT balance (erc20 token)

Im trying to get balance of USDT address (erc20 token). func tetherAmount(addrHex string) { conn, err := ethclient.Dial("https://mainnet.infura.io/v3/[api_here]") if err != nil { log.Fatal("Whoops something went wrong!", err) } …
root
  • 13
  • 1
  • 4
-1
votes
1 answer

Command that works in terminal doesn't work with go exec.Command

I'm trying to attach to a go-ethereum node from a go script: accountInfo:= fmt.Sprintf("attach %v --exec 'eth.getBalance(eth.accounts[0])'", connect) //x, err := exec.Command("geth", accountInfo).Output() // returns 'Fatal: Unable to attach to…
getb21000
  • 11
  • 2
-1
votes
1 answer

how to fix i think some thing wrong with the code

what wrong with it ? do i do something wrong in here ? docker stop blockchain-service docker rm blockchain-service docker run --name blockchain-service -d --restart always -v ~/ethereum/:/var/run/ethereum -e …
-1
votes
1 answer

Balance does not increase by mining in private net

I can not mining from geth(v1.8.3) by using private_net. But I can not increase my account balance. I want to increase my account balance. Is there anyone to solve it? My execution commands are below. after executing this command, I confirmed mining…
-1
votes
1 answer

Ethereum private network: Operation not permitted

I created my genesys block and successfully connected me (admin node) to the network once. Now that I try to connect again, as I geth --datadir 'mychaindata' command, everything runs smoothly until I hit the Starting P2P Networking RLPx listener…
J.C
  • 252
  • 5
  • 18
-1
votes
1 answer

Good solidity smart contract tutorials, videos, examples

I am looking for a good resource for solidity advanced smart contracts development free resource or books. Scenarios like - Crowdsale - Insurance sector - Banking I have done some research on Open Zepplin which is a good resource for smart contracts…
-2
votes
1 answer

Use multiple SSDs for single geth node

I am setting up a Geth archive node, and it take a lot of space, I have a few SSDs (each 1 tb), I want to configure get in a way that when SSD1 is full it should automatically continue storing new data into SSD2 and so on. Any help?
-2
votes
1 answer

Confused on how to build a go project from source

I'm trying to build the Ethereum node Geth: https://github.com/ethereum/go-ethereum I cloned the project in my src folder ( in a folder called geth, should not metter, right? ) and when I try to run/compile does not…
Felice Pollano
  • 32,832
  • 9
  • 75
  • 115
-4
votes
1 answer

AttributeError: 'list' object has no attribute 'getH' ...Then how to find adjoint of a matrix in my given code?

n = int(input("Enter the number of rows in a matrix: ")) #key matrix for Hill Cipher key = [[0] * n for i in range(n)] #print(key) def key_mat(key): # To fill the elements in the matrix "key" for i in range(n): for j in range(n): …
Lubna Khan
  • 91
  • 1
  • 8
1 2 3
15
16