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
13
votes
3 answers

Flag provided but not defined: -rpc

Am starting off in blockchain development using the book Mastering Blockchain - A deep dive into distributed ledgers, consensus protocols, smart contracts, DApps, cryptocurrencies, Ethereum, Am using WSL with geth version 1.10.9. $geth…
Samuel IZABAYO
  • 155
  • 1
  • 5
12
votes
5 answers

calling smart contracts methods using web3 ethereum

Trying to work around the blockchain using Ethereum, I'm facing problems when trying to interface with a deployed contract. What I would try to achieve is to call a method to display information added to a private blockchain deployed locally using…
SKYnine
  • 2,708
  • 7
  • 31
  • 41
10
votes
1 answer

Geth ecrecover invalid signature recovery id

I'm trying to verify signature passed in from client using the geth golang library. I'm getting the sample data (signature / address) from one of my cryptokitties accounts (I can see it in the request). If I paste the blow credentials into…
Levon Tamrazov
  • 530
  • 2
  • 9
  • 20
9
votes
1 answer

How can I convert a *big.Int into a byte array in golang

Im trying to do calculations on a big int number and then convert the result to a byte array, but I cannot figure out how to do so this is where Im at so far. anyone got any ideas sum := big.NewInt(0) for _, num := range balances { sum =…
Kravitz
  • 2,769
  • 6
  • 26
  • 53
8
votes
1 answer

gas required exceeds allowance or always failing transaction on Geth private blockchain but works fine in others

I have created a private blockchain using geth. I also have a contract in which there is a function which call another function it third contract to set an address. I can call this function on Local blockchains like testRPC and Ganache blockchain,…
Farzad Salimi Jazi
  • 760
  • 10
  • 25
8
votes
6 answers

Is it possible to pay transaction fee from another account in ethereum?

i want to do a transaction in ethereum from account A but the transaction fee should be paid from account B. is it possible in ethereum?
rahul123
  • 81
  • 3
7
votes
1 answer

Is there a way to debug transactions in RSK network, which could be the best way?

We are running an RSK node, some smart contract transactions show internal errors, but the message related to the failed require condition doesn't appear in those error messages... We only see "internal error" and are unable to see which specific…
6
votes
0 answers

Ethers.js JsonRpcProvider Geth node in a Docker environment

I am trying to connect Ethers.js to a local Ehereum node (Geth) running in a Docker container. On the client side, I'm creating the provider this way: new ethers.providers.JsonRpcProvider('http://geth:8545'). geth is the node container hostname and…
Alpha60
  • 411
  • 5
  • 11
6
votes
1 answer

How to communicate with public Ethereum Blockchain on a web server?

In the backend of a Web application I have to communicate with the public Ethereum Blockchain. On local development machine, I run ganache as testrpc and connect with such a line of code: web3 = new Web3(new…
delete
  • 18,144
  • 15
  • 48
  • 79
6
votes
2 answers

Why is my Ethereum block number 0 in geth, even though the sync is nearly complete?

> w3.eth.syncing AttributeDict({ 'currentBlock': 5787386, 'highestBlock': 5787491, 'knownStates': 138355583, 'pulledStates': 138341120, 'startingBlock': 5787335, }) > w3.eth.blockNumber 0 I had done full sync but blocknumber is always 0.
pan12jian
  • 69
  • 1
  • 2
6
votes
9 answers

REMIX | Not possible to connect to the Web3 Provider

I had an error to run on web3 provider (localhost:8545) Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC). So I figured out like below. I'm running geth on my local and I gave…
rachel_hong
  • 471
  • 2
  • 6
  • 15
5
votes
2 answers

eth.getTransactionReceipt returns null

We are setting up something akin to a blockchain explorer, but our Eth fullnode seems to be missing transaction info for certain blocks. For instance, I can query eth.getTransaction but eth.getTransactionReceipt returns null >…
relik
  • 287
  • 5
  • 15
4
votes
2 answers

how to curl to Ethereum geth node on local network (not localhost)

I have geth running on local network (separate machine). curl'ing to http://localhost:8545 works just fine. How do I curl to that geth node from another machine on my private network? Curling to http://10.x.x.x:8545 just returns connection…
Adivate
  • 361
  • 2
  • 13
4
votes
1 answer

INFURA: sender account not recognized

I am trying to deploy my contract but it returns this error truffle migrate --network ropsten --reset 1_initial_migration.js ====================== Deploying 'Migrations' ---------------------- Error: Error: Error: *** Deployment Failed…
Gelso77
  • 1,763
  • 6
  • 30
  • 47
4
votes
1 answer

Ethereum, which syncmode to use, fast or full?

There is a geth program running, and provide --rpc service. What the service do: Sync blocks. Accept rpc requests to create transaction. There is another program try to read the new blocks, and find out the transactions relevant to addresses in our…
Eric
  • 22,183
  • 20
  • 145
  • 196
1
2 3
15 16