Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
31 views

Able to Import my Account from Geth to MetaMask but No Balance Shown

I'm able to mined to my Accounts in Geth and have successfully imported to MetaMask. Problem, is in my Geth Console, I have the balance of the Mined Accounts but after imported to MetaMask, the ...
1
vote
0answers
24 views

Issue with a transaction

I am parsing the blockchain via Go and I am facing a questionable issue. Although the transactions are passing all the tests, meaning that I am getting most of the fields, there was a contract that ...
2
votes
1answer
40 views

Sending transaction directly to miner on private network?

I am trying to understand how one node can send a transaction to another node (miner or full) directly rather than waiting P2P network to distribute it? Say I have two non-miner nodes A and B and one ...
2
votes
0answers
25 views

Running a SPV wallet on Arduino/ESP32?

I want my ESP32 to make transactions and check for the details of blockchain using a secure method. Actually, I want to use make calls to the blockchain instead of relying on a single node. In my ...
1
vote
0answers
70 views

How can I solve the runtime error I'm having while trying to download the Ethereum blockchain?

I've installed core-geth successfully and started downloading the Ethereum blockchain on Ubuntu (20.04.02 LTS), to an external SSD, with the following command: sudo geth --syncmode fast --cache 256 --...
1
vote
0answers
27 views

Still Unable to Unlock Personal Account in Geth - Syntax Errors, GoError

In my MacBook Terminal -> Geth, I have successfully created my new -> personal.newAccount(0xA93d5aC3B28587DA16E4821F571ACF44B6B28176) along with its given generated password. I’m still unable ...
1
vote
1answer
22 views

Fail to deploy contract on rinkeby using truffle and metamask

Following is a snippet from my truffle-config.js file networks: { // Useful for testing. The `development` name is special - truffle uses it by default // if it's defined here and no other ...
1
vote
0answers
37 views

How to get my USDT (ERC20) balance with web3.py + geth?

I have Geth in full node on my server and I want to get my USDT balance with web3.py. Here is my Code: from web3 import Web3 from ethtoken.abi import EIP20_ABI w3 = Web3(Web3.HTTPProvider('http://127....
3
votes
0answers
15 views

Ropsten datadir size increases significantly after 1.10.1

I am not sure if it is my problem. It occupied > 160GB now. Used to < 80GB IIRC. Anyone facing similar issue?
3
votes
0answers
27 views

Retrieving the sender of a transaction

I am trying to retrieve the sender address within a transaction in Go and I am facing some issues. As I understand, in order to retrieve the sender of a transaction, you can either try to get the ...
2
votes
0answers
45 views

GraphQL not working on Geth

I try to make GraphQL work on Geth (version 1.10.1-stable) without any success. I try to run this query, but I only get 404. curl -H "Content-Type: application/json" -d '{ "query": ...
2
votes
1answer
104 views

Holders and Max Supply not updating on Ropsten Etherscan

I have created a contract for erc721 token. The contract inherits open-zeppelin ERC721 smartcontract. When I deploy my contract on remix i can view the supply correctly however the max supply and ...
1
vote
0answers
19 views

converting string and int to bytes32 and vice versa doesn't return same value

I am trying to send a set of values, which contain 3 strings and 1 integer, as a bytes32 array to a function. The original values that I want to convert to bytes32 were ["maham",67,"...
1
vote
0answers
26 views

How to create a fork from Ethereum (with name e.g. Methereum) [duplicate]

How I can create my own fork of Ethereum? And people can come to my website(Methereum) and create their tokens. If there is a tutorial on any website please share that link Thanks
2
votes
2answers
631 views

invalid arrayify value while using bytes32 array

Since we cannot pass string arrays as parameters in solidity I used a byte32 array in a function. The code gives no error at compile time. But when I give input to the drawCard function as below in ...
1
vote
0answers
15 views

Any tutorial to How to self-host your own ETH [closed]

Yesterday I ask a Q to know if I can create my own self-host ETH and people come and create their tokens and I get answer YES! And now I want to know how to do this? Which repo I should clone? Which ...
1
vote
1answer
49 views

Can I self-host my own Ethereum

Can I create my own Ethereum with name blah and people can create their tokens with Remix on my own Ethereum (blah)?? Because Ethereum is open source!!!
2
votes
1answer
38 views

do I need install ethereum package?

I am a beginner and got confused. According to some online tutorial, I need to install "ethereum" and "geth" package in my linux (ubuntu) first before I run any mining program such ...
1
vote
1answer
11 views

Can a decentralized app know the true identity of its users?

I’ve been thinking about the architecture of decentralized applications. I know certain applications like Uniswap and Augur don’t know the identity of its users. Would these applications still be ...
1
vote
0answers
22 views

GetBalance generate too much request

What I do?. Download logs and collect address Use address to getBalance Result make a hodler table Result Too much generate request to infura Question Is any function/method to make a one request? ...
1
vote
1answer
20 views

How to trigger receive() fallback function | web3 geth

So Im pretty new to Solidity and I was looking into the receive and fallback functions and came across this very helpful post: What is the receive keyword in solidity? Then I read this: The receive ...
1
vote
0answers
24 views

Unable to Compile Contract in Brownie (not receiving a .json file in “build” folder )

I'm currently running Brownie in Studio Visual Code. My problem is that when I write a smart contract and try to compile it using command "Brownie Compile" I don't' receive a .json file in ...
1
vote
1answer
23 views

Structs giving error while creating nft on ropsten

I am trying to create 10 random nfts with different supplies using solidity version 6 and remix ide. However I keep getting the following errors: contracts/bullrun_cards.sol:29:16: TypeError: Type ...
1
vote
0answers
8 views

How to modify the Block Information in geth levelDB?

I want to change some information such as stateRoot or some other information for testing purposes in levelDB. Is that possible? If so, how?
2
votes
1answer
34 views

Problem when accessing variables in Storage geth

I found some contract that looks like this: // SPDX-License-Identifier: MIT pragma solidity 0.8.2; contract IceCream { address a; address b; bool public c = false; uint256 public d; ...
1
vote
1answer
28 views

Is it possible to know which will get the next pending block?

Is it possible to predict which miner will mine the next pending block on ethereum mainnet?
1
vote
0answers
34 views

How to clean up geth data directory, perhaps moving more into freezer?

I am running full geth 1.10.1 node; there is quite a large amount of data in active database and not nearly enough is moved into freezer db: Filesystem Size Used Avail Use% Mounted on /dev/vdc ...
0
votes
1answer
8 views

Transfert node to an other disk

I have a fast node running on a raspberry pi+SSD, I want to transfert it to a raspbery pi+SD card (512GB). If I install the same os, with the exact same packages, then make geth. Can I just copy the ...
0
votes
1answer
54 views

Connecting to Geth private network from Metamask using RPC URL

I have created a private chain in Geth which is running in machine1. I want to connect to the private chain running in machine1 from machine2's Metamask using rpc. machine1 and machine2 are connected ...
0
votes
0answers
21 views

truffle flattener cannot find part of path

I am trying to flatten a solidity file but I keep getting cannot find part of path error as shown below out-file : Could not find a part of the path 'D:\Blockchain\bullrun\src\contracts\ERC721.sol'. ...
0
votes
0answers
7 views

Start multiple miners in GETH

Currently I have only one miners performing in my private network setup with GETH. I am trying to process multiple transactions at a same time. This keeps throwing an issue as Returned error: ...
0
votes
0answers
19 views

How can we run a malicious node on a Private Ethereum Network (geth)?

I am running multiple nodes on a private Ethereum network (get) but I want one of the nodes to run maliciously (Maybe changing the stateRoot manually in levelDb). How can I do that?
0
votes
0answers
18 views

Transactions appearing in geth but not broadcasted

Transactions sent to my own geth node sometimes get stuck in the node for hours, before eventually being broadcasted. I am using geth 1.10.1. Transactions are sent with high gas and the expected nonce....
0
votes
1answer
10 views

RPC connection fails

I launched my geth with those parameters : sudo geth --syncmode "light" --cache=2048 --datadir /mnt/ssd/ethereum --pprof.addr 0.0.0.0 --pprof It's running on a ubuntu server 20 on a ...
0
votes
0answers
33 views

Calling function does not work

So this is for avax network and there is pangolin dex it's the same as uniswap and I just want to call a function to get pair. pragma solidity 0.7.1; interface IPangolinFactory { event PairCreated(...
1
vote
0answers
17 views

Create account with initial fund using web3

Is it possible to create an account with initial fund using web3? Every time I create a new account I had to do fund transfer to add initial fund. If there is way to fund the account with minimum ETH ...
1
vote
1answer
52 views

Cannot consume all pending transactions

I am trying monitoring pending transactions using my local node. I mentioned that my app does not consume all pending transactions. I compared transaction from my app with etherscan.com or dextools.io....
0
votes
1answer
38 views

Solidity Undeclared identifier. s not (or not yet) visible at this point. but it is

I'm making if else function and if price == stopOrder it should do executeOrder but it's giving me error function sellLogic() public { require(StopOrder != 0 || LimitOrder != 0, "stop ...
0
votes
0answers
11 views

running ethereum private server on global port

I am running private ethereum node but it is only running on local server. How can i make it run globally? Here is the command i have executed: geth -datadir . -rpc -rpcport "8545" -port &...
1
vote
0answers
18 views

etherem private network stopped for unknow reasons

I have setup an ethereum private network using geth. but it stopped as server got restarted. Here is the command that i am running. geth -datadir . -rpc -rpcport "8545" -port "30303&...
0
votes
1answer
17 views

Solidity if else 2 things how to

So I got an if-else statement if the price of eth is the same as stop order sell will be = to true, but I also want to do if the price is same or bigger then limit also sell = true. If price under ...
0
votes
1answer
15 views

Solidity gets frist 4 digits

Its outputing 173512312(1735.12312) but I just want first 4 letters contract SimpleAuction { AggregatorInterface internal ref; // For ETH-USD on ropsten, input the address: // ...
0
votes
1answer
23 views

Solidity finds eth price but its realy big

This script gives me some random like a number and not real eth price? the price that is outputting is 38598000000?! AggregatorInterface internal ref; // For ETH-USD on ropsten, input the address: ...
0
votes
0answers
12 views

How to assign an event output to a variable in SO?

So I got this function that gets latest eth price and I want it to put in a var like output = price. Thanks in advance. // For ETH-USD on ropsten, input the address: // ...
0
votes
0answers
26 views

Geth eth.syncing returns false, admin.peers mostly empty and the ancientdb just reset out of the blue. Help?

My start command is as followed: geth --syncmode fast --mine --miner.threads=15 --cache=4096 --miner.etherbase 0x0467f8979845f87614d36abe7de8fbb1968f919f Output: > eth.blockNumber 0 > eth....
2
votes
1answer
21 views

Block data withing range of date

I need to get access to the blocks between 7000 and 8000 and since I plan to query the states I need archieve option. Do I need to run a arhieve node and wait until it downloads everything, or is ...
0
votes
0answers
13 views

Geth python node no transactions / no data

I want to get transaction information on the blockchain ethereum using Go Ethereum (GETH) with web3 and python. I am running eth node on windows using the following command : geth --http --syncmode ...
0
votes
1answer
52 views

Blockchain synchronization never ends (Geth)

Ask me a question, please ... I installed Geth to mine Ethreum, I made all the settings correctly, but the synchronization does not end. I used the eth.syncing command and believed that when ...
1
vote
1answer
52 views

Measuring transaction latency and throughput in a multi node local private network

I'm quite new to Ethereum. I'll give a bit of context of my setup. I have created an Ethereum private network with Ethash (PoW) as the consensus algorithm. I’m aware of the resource consumption of ...
0
votes
0answers
23 views

geth websocket connection stuck open. ethers and web3

on my bsc geth node I have 2 bizarre issues. connecting to the jsonrpc over http through a script fails with network errors. same code through node shell works. /shrug web socket connection never ...