Questions tagged [go-ethereum]

Go Ethereum (short: Geth) is a Golang implementation of the Ethereum protocol.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Setting up a private Ethereum network and integrate it with Hyperledger Caliper

I hope you're alright and safe there. I'm trying to set up a private Ethereum network and bind it to Hyperledger Caliper. However, I couldn't sufficient sources to do that. Recently, I used geth v1.19 ...
0
votes
1answer
17 views

How can I view pending events, without much delay?

I can view pending events like so: pending_events_filter = my_contract.events.TestEvent.createFilter(fromBlock='pending', toBlock='pending') pending_events_filter.get_new_entries() But the events are ...
0
votes
0answers
8 views

buy token on uniswap providing ETH from smart contract

How can I programatically provide ETH to a uniswap pair and get back tokens (swap). I was looking into the router object provided by uniswap but I didn't understand the procedure. The goal is call a ...
0
votes
0answers
6 views

How many parameters of geth node should I tune if mining eth? [closed]

eg. maxpeers should be larger. then anything else should I tune?
2
votes
0answers
11 views

What is the computing power of the Ethereum network in FLOPS?

The aproximate computing power of current Bitcoin network in terms of FLOPS (FP32) has been estimated at about ~80,000 exaFLOPS and being aware of the limits of the analogy because of the widespread ...
-1
votes
0answers
12 views

Returning A list of of active players in a DApp game [closed]

What is the best way to return a list of all active players in a DApp game? If I have a room or realm, and I would like to show every address that is inside of that room/realm in the UI, what is the ...
0
votes
0answers
10 views

coin age selection - how does it work? [closed]

I have 2 questions.. I have read the following: The Coin Age Selection method chooses nodes based on how long their tokens have been staked for. Coin age is calculated by multiplying the number of ...
0
votes
1answer
8 views

Where is the documentation for admin.sleepBlocks?

Sorry for being stupid. > web3.version { api: "0.20.1", ethereum: "0x41", network: "1108", node: "Geth/v1.9.21-stable-0287d548/windows-amd64/go1.15", ...
0
votes
0answers
11 views

How to get the Etheruem contract init code hash by using remix.ethereum.org?

How to get the Etheruem contract init code hash by using remix.ethereum.org ? It's a little fuzzy with bytecode and deployedBytecode, I use the contract code deploy on mainnet by others, I try to ...
0
votes
1answer
11 views

How to see the miner account that earned gas? Or how to know the account where gas goes?

I made a transaction to another account on rinkeby and then saw the record on Etherscan. There is Txn fee as gas. But how can I know where the gas went. I mean the account that gas was paid to. I ...
0
votes
1answer
18 views

How Private Ethereum network store my input data in mined block

I'm trying to understand how a private ethereum blockchain store data. I connect to a node through web3j API in java and send a transaction like: EthSendTransaction sendTrans = ...
0
votes
0answers
15 views

How can I set the timeout for web3 python function Eth.getTransactionReceipt and the ContractFunction.call?

I am polling the Eth.getTransactionReceipt and the ContractFunction.call to get the transaction receipt for a mass transaction submitted onto the Ethereum chain. I notices that I have a lot of ...
0
votes
0answers
16 views

Properly Exposing Geth RPC in 2020

With the default allowed ["net", "web3", "eth"], I want to expose Geth 1.9.21-stable RPC to another machine. In config.html I set HTTPVirtualHosts = ["*"]. The ...
0
votes
0answers
15 views

How do I receive a revert message using go-ethereum

How do I receive a revert message using go-ethereum? receipt, err := bind.WaitMined(context.Background(), client, tx) if err != nil { fmt.Errorf(err) } fmt.Println(receipt.Status) Now I can only ...
0
votes
0answers
17 views

geth node not seeing pending transactions

I'm running a geth node locally on goerli network in sync mode. I use the following command to boot the node : geth --goerli --syncmode "light" My txpool never list pending transactions, ...
0
votes
0answers
13 views

How to add specific transaction in block using geth?

How to include own pending transaction in block will be mined? Some mining pools using this for payouts with low gas price to their miners.
0
votes
0answers
16 views

Uniswap Integration [closed]

Can anyone please help me with integration of uniswap using Java(any API or refrence code). I tried using web3j API but not able to properly integrate uniswap using it.
0
votes
1answer
22 views

How to add USDT ERC20 Token to private blockchain

I am running a private ethereum blockchain on my machine using geth. I want to send USDT token from one address to another, but I could not because neither address have any USDT token. I have tried ...
0
votes
0answers
11 views

Why does ip address value differ in the enode url from the info output of a geth node instance to running admin.nodeInfo.enode in the js console?

I'm in the process of creating a private Ethereum network. I am able to successfully connect nodes on my local machine but unable to connect nodes in my LAN or outside my network. When I run a geth ...
0
votes
0answers
13 views

Connect GETH to miner's node. Speed ​up transactions

Sometimes transactions from my node are delayed, how to configure Geth so node can connect directly to the miners' nodes? For example asia.sparkpool.com:3333 Or what other options? Thank you in ...
0
votes
1answer
24 views

Require(…) condition location in wrapped functions

If I'm wrapping functions, like below, does it make a difference whether I check the input argument in the private function or the external one? Will it save me gas cost to do it in the external one ...
0
votes
0answers
31 views

Uniswap Factory contract event - how to find addresses for new token pair

When creating a new pair on Uniswap, Uniswap emits a PairCreated event that details which tokens are invovled. However, it sorts the token like this in the factory contract: (address token0, ...
0
votes
0answers
8 views

Abigen doesn't create free data retrieval call for public state variable

I'm looking at an example contract using go-ethereum. In the book, when a go file is created in Store.sol through abigen, the code that automatically gets the Version() string is generated. However, ...
1
vote
2answers
24 views

medalla testnet launchpad requires metamask or similar

Following the official Medalla launchpad at https://medalla.launchpad.ethereum.org, at some point you need to connect to a wallet and the only options are MetaMask, Portis and Fortmatic. Why is this ...
0
votes
0answers
7 views

If mining is on, on an Ethereum node on EC2 AWS instance, it is unable to connnect to peers on Azure

I am runing a private ethereum network with nodes on AWS and Azure. AWS EC2 - Mining Node & Azure - Peering node When the mining is on, in AWS node, the peering is lost intermitently, with Azure ...
0
votes
0answers
6 views

ETH daemon not syncing from snapshot

I have a snapshot of an ETH daemon that is running fine. I tried created another instance of this daemon from this snapshot. Its been running for about 8 hours now and still not synced. This is the ...
0
votes
1answer
18 views

constructor input arguments or hardcoded values? best practice

What is the rationale for choosing to use constructor input arguments over hardcoded values? and what is best practice?
1
vote
1answer
30 views

how miners within a mining pool execute transactions and verify blocks?

I know that solo miners have to select & execute transactions in a block and also verify the recipint block and its transactions, all by themself. However, I am not sure how this works in a mining ...
0
votes
1answer
8 views

When an Ethereum transaction event occurs, is there a case when it was not included in the main chain later due to a fork?

I know Ethereum is a POW blockchain where forks take place. The transaction event is issued after executing the transaction on the node. If a fork occurs, is there a possibility that the transaction ...
0
votes
0answers
15 views

Invalid block header RLP and rlp: input string too short for common.Hash, decoding into (types.Header).Root

when I run the geth as a private chain node it shows error below: C:\tools\src\github.com\ethereum\go-ethereum\geth.exe init C:\tools\src\github.com\ethereum\go-ethereum\genesis.json #gosetup INFO [09-...
0
votes
0answers
9 views

Ethereum Wallet unable to connect to node

I am receiving the error message below: Is anyone able to tell me what I am doing wrong? Thank you
0
votes
1answer
10 views

I am getting a error when trying to set up a local raft network

When I try to run the command geth attach $nodeName/geth.ipc It shows the following error 'Incorrect Usage. flag provided but not defined: -raft' I am not able to understand what went wrong exactly, ...
0
votes
1answer
15 views

Importing Parity/OpenEthereum private keys to Geth: got zero balance

I have to migrate to Geth from Parity/OpenEthereum as the latter completely stopped syncing for me. First of all I tried to copy one of my private keys exported with parity_exportAccount() - which ...
0
votes
1answer
9 views

How to restart my private chain node?

I have run a private chain in my computer. I use the command eth --networkid 606 --nodiscover --allow-insecure-unlock --rpc --syncmode "full" --rpcapi "eth,net,web3" --datadir /...
0
votes
0answers
8 views

Retrieving on-chain data off-chain based on emitted events

Is it possible to 'subscribe' to a particular event emission off-chain using Web3.js or something? Let's say I want to show the arguments of a particular event emission on-chain, in a UI off-chain, ...
0
votes
0answers
31 views

Stuck at looking for peers

Trying to learn blockchain. I executed the following command to mine: geth -datadir="/media/Osiris/privatechain" -mine But the execution does not proceed beyond looking for peers as shon ...
1
vote
1answer
21 views

how to use eth_estimateGas for erc20 tokens?

i wanna calculate estimate gas for BNB, PAX, LINK i have used geth 1.8 and web3.php my contract data that used (i found them from etherscan): <?php /** * @var array */ public ...
0
votes
0answers
20 views

Ethereum private network behaviour

I tried launching a private POW etherium blockchain. Following is what I observed. Attempt 1 2 node network. Node1 is a miner, node2 doesnt not sync Attempt 2 2 nodes network. Node1 is a miner, send ...
0
votes
1answer
18 views

Problem Internal Transaction Ethereum ( Funds dont appear in my wallet)

I have some funds frozen in ‘internal transactions’ and dont appear in my wallet ethereum. I sended ethereum with exchangue “Buddha” to my wallet, and them work sending ethereum with smart contracts ...
0
votes
1answer
13 views

How to connect more than 2 nodes in private ethereum network

I'm quite new to ethereum, I followed some tutorial to create a private ethereum network. I created 3 nodes, and to connect these 3 nodes, I need to run on node 1: admin.addPeer(enodeofNode2), admin....
0
votes
0answers
19 views

Why my function named SubmitHash shows in Etherscan input field but not PublishHash?

I deployed my contract in Ropsten Testnet with submitHash as a function name. I get function Name with value passed in Etherscan. function submitHash(bytes32 pHash) external onlyOwner() { emit ...
0
votes
0answers
16 views

Error: failed to unlock developer account on using list

I am following this video from youtube to learn about blockchain. I am getting error while trying to list the account using command "geth -datadir /media/privatechain -dev account list". But ...
0
votes
1answer
11 views

Howto check sync with kovan testnet is complete or not?

I am trying to sync with Kovan testnet, docker run --name eth -p 8546:8546 -v ~/ws-002-chainlink/ws00-docker-geth-ropsten:/geth -it ethereum/client-go:stable --testnet --syncmode light --ws --wsaddr 0....
0
votes
2answers
30 views

Revert ETH transfer to smart contract

How can I revert a transfer of ETH funds to my smart contract? I would like to instantly revert any ETH being sent to my smart contract.
0
votes
1answer
29 views

How Can I use my Metamask accouns to deploy a contract using Truffle

I have the full geth node on my machine and want to deploy my smart contract on ropsten using truffle. In truffle.js fileI have connected to the node as the following: ropsten: { host: "...
2
votes
1answer
41 views

Is there any way to do dry run a smart contract on Ethereum Mainnet?

For testing my codes without side effects (e.g., consuming gas, etc.) on the development environment, I'm finding a way to execute a smart contract that interacts with other contracts deployed on ...
0
votes
1answer
20 views

input argument structure for constructor in remix

how would the structure for an argument to the below constructor look like in remix? constructor( uint256[5] memory _a, uint256[5] memory _b, ) public {...}
0
votes
1answer
47 views

Error: Returned error: invalid opcode: SHR

I am getting this error while migrating Contract: pragma solidity ^0.5.16; contract Hello { string message; constructor() public { message = "Hello, World"; } function ...
1
vote
1answer
23 views

Why was support for floating point numbers not natively added to Solidity (or Ethereum in general)

Remix usually shows that floating points are not fully supported yet, and even the external libraries avaiable for floating point calculations in solidity are under the hood still using integers. So, ...
0
votes
0answers
6 views

How do I startup geth to allow incoming work from an ASIC miner?

Github only shows options for GPU and CPU mining. I would like to point an ASIC at my geth node. Does anyone know how that's done? Other pools will accept connections such as: stratum+tcp://eth.pool....

1
2 3 4 5
103