Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
2k views

Failed to add liquidity in pancakeswap

I am trying to make a few transactions on binance test net using a script in solidity and truffle which is a clone of PANCAKESWAP. I was able to successfully compile and execute the script once. When ...
2
votes
1answer
339 views

Go-Ethereum (Geth) run error: flag provided but not defined: -http.port

I use official tutorial to run Ethereum private network: https://geth.ethereum.org/docs/getting-started/private-net but the command : geth --datadir="/home/user/1" -verbosity 6 --ipcdisable -...
2
votes
2answers
193 views

How to hide transactions from mempool?

I am testing out blocknative's mempool explorer (https://explorer.blocknative.com) and noticed a lot of pending transactions are actually already confirmed by the time it picks them up, which I can ...
0
votes
0answers
34 views

Exactly what data does snap sync download?

Geth 1.10 introduces snap sync, faster way of syncing the blockchain. What data does snap sync actually download? If I run a snap sync with --gcmode archive will I end up with an archive node?
0
votes
0answers
12 views

Storage space geth for private network?

Setup a private network with clique at 15 secs block creation. Started with 3 nodes. Then deployed a smart contract (ERC 721) and send two transactions. After about 2 days idling, and no transactions, ...
0
votes
1answer
30 views

How do I change cors domain of geth metrics?

I am trying to connect the output of geth metrics of a local node to Grafana. I am initializing my node using the following geth command: geth --datadir "n1" --nodiscover --networkid "...
0
votes
0answers
22 views

geth never finishes fast sync on Linux Mint

$ geth version Geth Version: 1.10.2-stable Git Commit: 97d11b0187b4695ccf44e3b71b54155fe405a36f Git Commit Date: 20210408 Architecture: amd64 Go Version: go1.16 Operating System: linux GOPATH= GOROOT=...
1
vote
1answer
29 views

Where exactly is Ethereum private key?

I just generated new Ethereum account with geth account new Your new account is locked with a password. Please give a password. Do not forget this password. Password: Repeat password: Your new key ...
1
vote
0answers
101 views

Full Archive Node Compaction Performance

We're currently syncing a Full Archive Node (--gcmode archive --sync full --mainnet) and are experiencing a relatively odd behavior: As you can see, the node seems to "pause" its processing ...
1
vote
1answer
193 views

What are IBEP20 _lp and address _wbnb parameter in BnbStaking.sol [closed]

I am trying to deploy bnbstaking.sol for my own project by cloning pancakeswap-farm repository. The farm repository has other contracts of MasterChef, Souschef, CakeToken and SyrupBar. For farming all ...
0
votes
1answer
18 views

Unable to synchronize with Ropsten testnet with Geth 1.9.25

For the past two days I've been trying to synchronize with Ropsten testnet using the following command in Geth 1.9.25: ./geth --ropsten --rpc --rpcaddr="0.0.0.0" --rpcapi="eth, web3, ...
0
votes
0answers
14 views

What happen to the transaction that in the uncle block? [duplicate]

If a block realize it is an uncle block, what happen to the transaction that in the uncle block? Will the transaction in the uncle block be allocated into the transaction pool again or the sender need ...
0
votes
0answers
41 views

Trying to sync the ropsten testnet to local server using geth

I tried syncing the ropsten ethereum testnet to my local server using the following script: nohup geth --testnet --bootnodes "enode://...
0
votes
0answers
57 views

AWS geth fast regime synchronizing

We are using Amazon Ethereum full node subscription 1 on Ubuntu server with their standard predefined configure. But, after a couple of days it`s still outputs zero for addresses balances and zero ...
1
vote
0answers
19 views

Retrieve size of Ethereum state on a local Go-Ethereum node

I have a local go-ethereum node and I would like to measure the size of its state on disk. The chain DB is under a .ethereum directory but measuring the size of this dir would also include space used ...
0
votes
1answer
145 views

Non-existent import files in pancake-swap-periphery

I'm looking for someone to give me a basic understanding and direction regarding pancakeswap forking. I cloned pancake-swap's periphery repository from github and in its contracts it imports "@...
0
votes
0answers
10 views

How can I measure block processing time on a given Ethereum client?

I'm looking for a tool or library to measure block processing time on a given Ethereum client. My scenario would be to be able to compare block processing time to State size. The goal is to understand ...
0
votes
0answers
17 views

how to monitor transactions from both eth and erc-20 tokens?

So far, I already could get event logs from contract address(erc-20) by this function: sub, err := client.SubscribeFilterLogs(context.Background(), query, logs) What I want: eth transaction logs (...
0
votes
0answers
13 views

What is the most updated genesis file for Ethereum POA private network?

I have successfully created the multinode network, but some when trying to deploy smart contracts, some of them fail. This is the config of my genesis: "config": { "chainId": 999, &...
0
votes
0answers
13 views

How to stop and restart a multinode Ethereum private network?

I am testing a multinode Ethereum private network setup with Docker, 1 bootnode, 1 node, 2 miners, netstats and 2 swarm, total 7 containers. When I stop and restart the containers, the chain stops ...
1
vote
0answers
110 views

The method eth_getBalance does not exist/is not available

I'm trying to follow the simple "Getting Started with Geth" page instructions but it is not written very well and I'm doing something wrong. This is the page I'm looking at:Getting Started ...
0
votes
0answers
10 views

Using go, how to get the correct range of blocks

I have some eth wallet addresses, and I want to monitor the transfer information of these wallet addresses on some smart contracts.I use this function: query := ethereum.FilterQuery{ ...
0
votes
1answer
79 views

There is an address that is hacked, the bot is monitoring it and payments are received regularly!

So, the bot instantly cancels these payments by sending, for example, 0.01 eth with a commission (fee) of 0.009 to another wallet, or even canceling everything through self - sending 0 to the same ...
0
votes
0answers
22 views

Unable to send ether from one ethereum account to another due to “unknown account” error

I want to send 1 ether from one account to another. In order to do so, I attach geth to my self hosted local node (that is running on rinkeby) and execute the following command: > eth....
0
votes
0answers
4 views

Why is'nt my minner recieving rewards?

My minner (lolminner) is working perfectly, but in 2minners I'm not receiving almost any rewards. Apparently, I'm finding block at an incredibly low speed (at least compared to the previous week). Can ...
0
votes
0answers
25 views

Geth stucks on event requests

I have a loop that requests past events to my geth instance by batches of 5000 blocks. It always stucks after precisely 628 request and I get a timeout. Anyone knows why ? Thank you !
0
votes
0answers
12 views

Is there an API to check the real-time hashrate of specific miner pools?

I would like to check the current hashrate of a certain miner, but couldn't find any resources online.
0
votes
0answers
9 views

How to connect to Livepeer to Rinkeby network?

I want to run livepeer and for that I need it to get connected to an Ethereum network. There are two options as mentioned here: Hosted API services Self hosted Ethereum node If I want to opt for the ...
0
votes
1answer
2k views

Problem with BSC full node

I try install full node Binance Smart Chain (https://docs.binance.org/smart-chain/developer/fullnode.html). I follow all the instructions on the site. After the command geth --config ./config.toml --...
0
votes
1answer
286 views

Run geth looking for peers forever on AWS

I am new on blockchain.. sorry for asking very basic question: I am running my first geth private node on AWS using ubuntu using this command: geth --datadir ~/ethdata/ --networkid 12345 --verbosity 3 ...
0
votes
0answers
23 views

What can smart contract creator of Token on Ethereum Platform do to modify, change, upgrade or screw everybody on a DeFi platform?

Let's say an anonymous creates a Token called "baked" with Total supply of 1 million, and he keeps only 10k, and I buy the rest 990,000 He then uploads the Token on Decentralized Exchanges ...
0
votes
1answer
31 views

How to use a smart contract to deploy another smart contract in ethereum?

Since I have a testing contract with the reentrancy vulnerability, I want to reproduce it. However, only when the deployer is a reentrancy attack contract can this vulnerability be reproduced. Its ...
0
votes
1answer
101 views

Can a smart contract automatically generate tokenURI based on tokenID

Is there a way a smart contract can automatically generate tokenURI using the tokenIDs of erc721 tokens, if we dont want to use other methods. I am a newbie so need some guidance.
1
vote
1answer
642 views

Correctly compiled contract on remix returns empty ABI

I have two questions. My contract has compiled and deployed successfully both using remix and truffle. However: q1) remix returns an empty array of ABI. Also, after I hit compile the contract at the ...
4
votes
1answer
83 views

What's the meaning of “dirty” in Geth's INFO logs “Importing new chain segment…”

I am trying to understand the logs I see when I journalctl -fu my Geth service, which I restarted after it was offline for two days. This is less a troubleshooting question and more an extension to ...
1
vote
0answers
30 views

Able to Produce Blocks but Still Balance is Zero

Kindly find the following results below from my Mac Terminal: miner.start(1) --> null miner.stop() --> null eth.getBalance(eth.accounts[0]) --> 350000000000000000000 eth.syncing --> ...
1
vote
0answers
62 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
102 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
38 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
192 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
65 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
58 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
180 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
16 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
36 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
99 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
214 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
23 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
35 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

1
3 4
5
6 7
112