Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
4
votes
2answers
605 views

Smart Contract firing send ether transaction that's not in the contract

I need some help with my smart contract, here's the smart contract code pragma solidity ^0.4.18; contract UserToken { mapping (bytes32 => uint8) public tokenBalance; bytes32[] public ...
2
votes
1answer
354 views

subscription not happen on geth+websocketProvider in web3

I have started geth node (connect to ropsten testnet) on my local OSX system. Command: geth --testnet --fast --bootnodes "enode://...
4
votes
1answer
1k views

flag provided but not defined: -rpc

I'm using Geth to set up a private ethereum network and this is the command: $ geth --identity "MyTestNode" --datadir "SomeDir" init genesis.json --rpc --rpcaddr "localhost" --rpcport "8000" --...
1
vote
1answer
137 views

Troubles importing mist wallet

I am currently attempting to import my old wallet onto a new pc in order to be able to transfer the 2 ethereums that I have stored on it onto an exchange, but can't for the life of me figure out how ...
0
votes
1answer
756 views

How to increase gas limit ethereum

I am facing this error : Error: exceeds block gas limit When i run below command it returns 5000. web3.eth.getBlock("latest").gasLimit so as per someone's suggestion 21000 gasLimit is needed to ...
1
vote
2answers
2k views

geth: Failed to unlock account

I exported the private key from Metamask and wants to import it into geth. geth is running on Windows 10. geth is started using geth --rinkeby --rpc --rpcapi="personal,eth,network,net,web3" --...
0
votes
1answer
287 views

Does creating account with geth command "geth account new" make a new key store holder?

There are multiple ways of creating a ethereum account through geth. geth account new newAcc, _ := am.NewAccount("Creation password"); by importing import "github.com/ethereum/go-ethereum/accounts" ...
1
vote
1answer
11 views

How legacy transaction are handled after EIP1559 update?

After the EIP1559 transaction gas is mainly divided into base gas price and priority gas fees. But as we know EIP1559 is backward compatible so how legacy transaction ( they just have gas price field) ...
0
votes
1answer
329 views

Why eth_getLogs returns empty result for Ethereum account address?

I'm developing an Ethereum platform and need to fetch the events log of a desired address. I found a code like this: curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"topics":...
1
vote
2answers
1k views

Geth Private Network Unable to Add Light Node

I have a private network setup with geth and a few machines (2 full nodes for mining and a light node). The three devices have the following IPs: MINER1 - 10.42.0.40 MINER2 - 10.42.0.250 LIGHT-NODE - ...
0
votes
1answer
1k views

go-ethereum event subscriptions doesn't work?

I'm new to go-ethereum and even Golang in general so my terminology might be wrong, I'm guessing event handling is also referred to as "subscription"? Anyways, my actual issue is that I want to test ...
1
vote
1answer
360 views

Using the Parity or Geth light client, how can I monitor an address for transactions?

I'd like to use Parity or Geth, in light client mode, to monitor an address for transactions. Essentially, I should be able to check each block for transactions involving a certain address. In the ...
1
vote
1answer
406 views

What is the point of having stateRoot rather executing every transaction?

EVM is a deterministic meaning that if any two(or more) nodes receive identical transactions in the same order(which is what blockchain is for), they will arrive at the same state independently. And ...
0
votes
2answers
627 views

Arrays copy memory in Solidity

I have this simple code: function restart() public returns (uint256[] ) { uint256[] memory result = new uint256[](5); result[0] = 10; uint256[] memory result1 = new uint256[](5); ...
0
votes
1answer
151 views

Deploy contract didnt resolve the promise

im facing a problem deploying a simple smart contract. When i use ganacha-cli, the program enter in a loop of confimation event, counting from 1. Thats the first problem. Output: Account: ...
3
votes
1answer
509 views

Can i delete some old files inside chaindata folder?

I am running geth with fast sync, Can i delete some old files inside chaindata folder so that my ssd will have some empty space or it will create some problems ?
0
votes
1answer
250 views

Error while calling function in smart contract using nodejs?

I have deployed a contract in private blockchain using mist wallet. When I try to call the function in the smart contract using web3 api it through the below error /home/karthikeyan/Desktop/n2/...
1
vote
3answers
169 views

See in geth if a smart contract (ICO) was never executed

If I send ether to a smart contract, how can I see in geth, that it was rejected? I want to see which of my transfers were accepted by an ICO and which were not. I don't see any such field in ...
0
votes
0answers
6 views

How to add ERC1155 to this Smart Contract

so I have two smart contracts and I want to add erc1155 functionalities this is the first one: 1; name: NFT.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/...
0
votes
0answers
6 views

Is there any verified ERC1155

Hey so am looking for a verified well written ERC1155 Contract with EIP2981 for an NFT Marketplace
0
votes
1answer
577 views

Mist: how to view private key of an account

Question: How do I use Mist to extract the Raw private key of an account. The account is password protected (if that makes a difference I don't know). Elaborating: I made an account with mist that ...
0
votes
0answers
5 views

go-ethereum ( geth ) how mining ether through binance pool

Guys does anyone know how to miner ethereum through the binance pool?, I'm using go-ethereum (geth), because I only have CPU's to mine, but I can't find any article teaching how to mine through a ...
0
votes
0answers
12 views

Getting notified after receiving eth from smart contract

I am wondering if there is a way to find out when my addresses are getting eth from smart contracts. To be more specific, I am using geth 1.10.9 syncmode = fast and I have over 10k addresses to track ...
0
votes
2answers
22 views

How to install a node to get a balance of addresses?

We need to install the ETH client in order to receive balances of different addresses using GetBalance (https://web3js.readthedocs.io/en/v1.2.11/web3-eth.html#getbalance). Please tell me, do we need ...
1
vote
1answer
141 views

How to run a simple Whisper (SHH) example

I am struggling to get a simple whisper (shh) example running. I am using the following versions: geth 1.9.24-stable-cc05b050 web3 6.14.5 I am running geth with the following command: geth --shh --rpc ...
1
vote
2answers
575 views

How make web3 work on?

Sorry for noob question. I installed web3 (npm install web3), but for some reason instead of calling web3 methods or showing object data, nodejs displays object structure: > web3.eth.accounts ...
0
votes
0answers
10 views

Can GETH run quickly and be always up-to-date with an AWS c5 instance?

I've noticed that most people who are using AWS to run their ethereum node are using the i3 (or i3en) instance type for its high I/O performance with the attached SSD. For my particular use case, I ...
0
votes
2answers
299 views

Why blocks are not including queued transactions in this private chain

I have started two nodes with same genesis.json on same machine in a same directory. I followed the following steps: ./geth --datadir ./chaindata/ --port 30303 --networkid 15525 --rpc --rpcport 8545--...
5
votes
2answers
193 views

Writing GBytes of data to disk, despite no network activity - what, precisely, is geth doing?

I'm watching geth 1.4.17 on Activity Monitor. Judging by the Network page, it's not doing anything. Rcvd Bytes is 5.9MBytes, and Sent Bytes is 2.6MBytes, and it's been that way for a while now. But ...
0
votes
1answer
323 views

How do I update Geth when using Ethereum Wallet on a windows 10?

How do I update Geth to the latest version(1.8.10) when I am using Ethereum Wallet on a Windows 10? It is not prompting me for an update to Geth as I skipped it the first time Ethereum Wallet was ...
0
votes
1answer
12 views

Private network desync

This is a similar to question to this one I have just setup 2 private nodes on AWS EC2 via geth, which are connected to each other, and have 1 "Hello World" smart contract already mined. ...
0
votes
0answers
16 views

How is EtherScan Built? [closed]

I am a dev and I really want to learn more about Ethereum development. So I want to build something similar to the EtherScan website for learning. Can anyone tell me how EtherScan does it? Do they run ...
1
vote
1answer
394 views

geth in private network throws Out of memory even after using 8 GB RAM + 100 GB swapfile

I am testing a private network for last few weeks. The block height has reached around 2,81,000 and now suddenly the memory usage of my server instance has shooted up TOO High and the geth process ...
3
votes
2answers
1k views

connect Mist to geth running in private testnet

I'm trying to run a private ethereum testnet for myself. I have installed geth 1.6.7 from the official Ubuntu PPA, and downloaded the latest Mist release from its github repo. I've run geth --...
1
vote
0answers
10 views

Nodes running in archive mode cosumes different disk space?

I have 2 nodes, running in archive mode, both using Geth/v1.1.2-c4f93121-20210825/linux-amd64/go1.15.14. Both of them has finished syncing with the network (I checked using eth.syncing and it ...
0
votes
1answer
197 views

change gasLimit parameter into the genesis.json file on azure priavte blockchain

I am trying to deploy a smart contract to an azure blockchain. The contract is deployed without errors but i can't submit transaction to the blockchain through this contract. I guess this is an issue ...
1
vote
1answer
23 views

flag provided but not defined

Am starting off in blockchain development using the book Mastering Blockchain A deep dive into distributed ledgers... Am using WSL. $geth version Geth Version: 1.10.9-stable Git Commit: ...
0
votes
1answer
119 views

How to configure Ethereum on Bifrost

I am building a blockchain application that allows investors purchase ICOs using ETH on the Stellar network. I use Bifrost to connect my application to stellar network. But when I startEthereum on ...
0
votes
1answer
716 views

Error: Returned error: gas required exceeds allowance (89459648255865) or always failing transaction

I am running a contract on a private network in geth, and using web3js. I have the following error when I run a transaction: web3.min.js:1 Uncaught (in promise) Error: Returned error: gas required ...
0
votes
1answer
28 views

How to send USDC through geth CLI?

I had 100 USDC transferred to a local Ethereum wallet I control. It shows up as a valid token when I view it in Etherscan. I normally use geth CLI for all Ethereum transactions, but I'm not sure how ...
0
votes
1answer
108 views

Why am I getting "Error: unknown account" when trying to send ETH using eth.sendTransaction?

I have an ETH testnet set up using this docker-compose.yml file. When I try to send 1 wei from the "buffer" account 0x411167FeFecAD12Da17F9063143706C39528aa28 to the test account ...
0
votes
2answers
40 views

chainlink request to cancelChainlinkRequest

I have been on this to test how requests will be canceled. i go this error the has of the transaction here: https://testnet.bscscan.com/tx/...
2
votes
1answer
320 views

Does it make sense to have a Node.js backend serving json to frontend for dapp?

Currently, the architecture I am looking at is that the smart contract (SC) sits on the ethereum network, but it is a complex and multilevel contract system. Just navigating through the tiers of the ...
2
votes
1answer
2k views

explanation of appending .selector in solidity smart contracts

I'm trying to understand what .selector means when appended to logic wrapped up inside of functions definitions. I've tried to read the section in soliditydocs, but it doesn't seem to answer my ...
0
votes
1answer
193 views

Geth sync too slow on MacMini to catch up with latest blocks

My workaround used to be do a geth -removedb and start a fresh fast sync from scratch. Trying to sync with existing blockchain data instead was a lost race of catching up to the latest block. Today ...
2
votes
2answers
70 views

how does optimistic rollup work?

I am mostly interested in why 7-day fraudulent proof checks exist. Let's say on L1, I got 10 ETH and I deposited it on L2 as WETH. Now, 10 ETH is locked on L1's bridge contract and 10 WETH is on L2 on ...
1
vote
2answers
1k views

geth: command not found (Ubuntu)

I have Ubuntu 18.04 installed, and I just installed Mist. To my understanding, installing Mist should have installed Geth as well, but when I do the command geth in a terminal, I receive geth: ...
0
votes
1answer
616 views

I downloaded and built quorum from the official git repo but I dont see the QOURUM OPTIONS

git clone -b geth1.6 --single-branch https://github.com/jpmorganchase/quorum.git NAME: geth - the go-ethereum command line interface Copyright 2013-2017 The go-ethereum Authors USAGE: geth [...
2
votes
1answer
365 views

Pending transactions Geth private Blockchain

I have an ethereum consortium blockchain based on Azure (Geth 1.7.3). I've been experimenting with an application which has a very simple smart contract. The contracts itself, stores data that comes ...
2
votes
1answer
371 views

Can we call two contracts in web3.eth.filter method?

I have two contract address and I want to check events on both in one call. I mean, can we pass two contract address in one option param like i do below? let web3 = new Web3(); web3.setProvider(...

1
2 3 4 5
114