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
2 views

Why can't I transfer ether in contract?

I am deploying a contract to Ethereum EVM environment with Ropsten testing network. It sends 1 ether to another account which is passed from the method paratemter. After deploy, I set the target ...
0
votes
0answers
4 views

go ethereum Approve success but unable to locate this TxnHash on bscscan

I want to Approve some WBNB on bsc-chain(PancakeSwap) for swapping other token, currently the balance is "0.0008", the allowance is "0.0001", I want to swap all the WBNB so I need ...
0
votes
0answers
6 views

What's the best way to be as up to date with the network as possible

I am trying to create a fast responding system based on event logs. After getting into testing the system I ran across multiple issues from the public providers I am using. I started getting errors ...
0
votes
0answers
8 views

Why do I get 0 as balance?

I am using Solidity to deploy a contract to test network. Below is the full code. The deployment success but I always got 0 when run getBalance method. I am using the test account which is running ...
0
votes
0answers
15 views

Generating random number in smart contract using the random attribute of assets prices in liquidity pools

I'm aware of the disaster in relying on block.timestamp and block number when generating random numbers. But what do you think of XORing the prices of multiple ERC20 tokens using the getAmountOut() ...
0
votes
0answers
11 views

How to create/load/get address of/send transaction from/create accounts under my ETH wallet? (Clarification on wallets and accounts in the ETH node)

I'm totally new to the concept, but "how can I create/load/get address of/send transaction from/create accounts under my ETH wallet" in Ethereum node? I'm implementing Ethereum node on my ...
0
votes
0answers
9 views

How do I know whether a private network is using proof of work or stake or authorize?

I know there are three types of protocol proof of work or stake or authorize, I am using geth --datadir data/node1 --http --dev --http.corsdomain "*" --http.api web3,eth,debug,personal,net,...
0
votes
1answer
12 views

How to mine ether from a private network?

I launched a private network by using geth --datadir data/node1 --http --dev --http.corsdomain "*" --http.api web3,eth,debug,personal,net,miner --allow-insecure-unlock --mine command. I am ...
0
votes
1answer
16 views

Why doesn't `geth` have `--rpcapi` option?

I am new to Ethereum and trying to setup a private network by using geth command. I have installed geth: $ geth version Geth Version: 1.10.12-stable Architecture: amd64 Go Version: go1.17.2 Operating ...
0
votes
0answers
11 views

What are the different between geth command and geth console?

I have launched a private ethereum network on my local by using geth command: geth --datadir node1 account new geth --datadir node1 --http --dev --http.corsdomain "*" --http.api web3,eth,...
0
votes
0answers
8 views

How do I start a light Ethereum Node on Android?

I would like to program an android app which has a built in light-node with its own JSON-RPC API and connected to mainnet. Does anyone know if this is possible?
0
votes
0answers
7 views

How to generate a proper EIP712Domain signature transaction

I'm working a crowding contract in solidity. The contract has been deployed and I also generated a Go ABI. I've managed to generate the transaction hash and sign it using web3.js by hooking into bind....
0
votes
0answers
8 views

How to watch for events with web3.py python

I am trying to watch for event with web3.py but I keep getting an empty list. Below is my current implementation. def handle_event(events): print(Web3.toJSON(events)) async def log_loop(...
0
votes
0answers
12 views

Is it possible to get revert reasons using CallContract method? If not how can I get revert reason using ethClient in go Ethereum?

I'm using the below functions to get the revert reason : func ErrorReason(ctx context.Context, from common.Address, tx *types.Transaction, blockNum *big.Int, ethClient ethclient.Client) (string, error)...
0
votes
1answer
17 views

How to obtain transaction creation time for Ethereum transactions using web3?

I am interested in analysing transaction latency in Ethereum (time it takes from creating the transaction until it has been added to a block). I have been looking at Web3 (link https://web3js....
1
vote
1answer
19 views

How Ethereum 2.0 and sharding will apply to private Ethereum with PoA consensus (Clique)?

We're about to run the private Ethereum PoA chain based on Clique and thinking how would we support it for ages. Hence we're wondering: Whether Ethereum 2.0 updates (London, etc) are even applicable ...
0
votes
0answers
8 views

i want to sell my ethereum but i only have BTC as an option to sell on ledger live

I have a nano s and have the latest update.. i want to sell my Ethereum but i only have BTC as an option to sell on ledger live. How come i cant see ETH as an option and only BTC in which I have none?...
0
votes
0answers
29 views

Geth receiving pending transactions without full sync

I would like to continue to solve this problem here: How to configure Geth for accepting future transactions without full sync? For statistical purposes I will need to remove the validation process. ...
1
vote
3answers
178 views

Metamask won't switch to Localhost 8545

I'm trying to get Metamask to connect to my "Localhost 8545" network. I've already unlocked the Test networks following the information provided in this question I'm on a Windows 10 machine ...
1
vote
0answers
10 views

Spin up custom ETH based blockchain: just changing the genesis and toml?

If I wanted, lets say, to power on a clone of BSC (just to have a PoA version of the thing), would it be enough to follow the full node setup guide from Binance and just edit the config.toml and the ...
0
votes
0answers
12 views

How do I send Ether from CL?

I'm running GO Ethereum on AWS Ubuntu and it's my first time mining. How can I transfer Ether to external wallet through Command Line? Examples are welcome! Thanks for your time. :)
1
vote
1answer
20 views

How do I simulate the effects of the transaction in the mempool?

Let's say I want to know at Block N + mempool what Block N+1's state will likely be before block N+1 is mined. What's the best way to compute the effect of Tx's in the mempool?
1
vote
1answer
20 views

Is it possible to purchase Ethereum with USD command line?

I opened a wallet using go-ethereum with this command geth new account Am I able to saturate this account by purchasing Ethereum with USD via the command-line? Are you usually charged a fee or can ...
0
votes
0answers
40 views

I updated my geth instance to 1.10.12-stable, but after update it is not syncing anymore

I updated my geth instance to latest stable version (currently 1.10.12). After it stopped synchronization. It loads new data, but the data is not synced. When I attach to geth console. Here is the ...
0
votes
0answers
9 views

Direct connection to a personal geth node for faster access

Is it possible, to directly connect to a node instead of going through the internet? If so, what should I be looking for to enable? I rent a half rack at a data center for my webserver and I'd rather ...
0
votes
0answers
22 views

Contradicting Execution of solidity contract on Online REMIX IDE vs Ubuntu execution using geth

I have a task at hand where we have to develop python scripts to interact with a solidity contract (using web3.py) deployed on a local running blockchain by GETH and do some analysis. Therefore the ...
0
votes
0answers
16 views

Everytime i call a contract method, i get error and not able to get tx. sucessful,

Everytime i call a contract method, it gives me error, also i am able to call that method of contract from the remix sucessfully. I am using infura. Below are the detailed code. using web3 1.6 ...
0
votes
1answer
27 views

How to add new peer to private quorum network?

I have created a network using raft consensus using quorum-wizard. I have created another node on a vm using this tutorial. I want to attach the single node to the network. for that I have followed ...
0
votes
1answer
17 views

Where does geth download it's data, the actual blockchain state?

We know that we can sync with current blockchain status with geth, for example, or any other similar things. If I run geth in console I can see ... INFO [11-16|22:27:56.602] Imported new block ...
0
votes
0answers
34 views

Exit function in POS Bridge go-ethereum

I'm trying to follow the POS bridge steps for transfer an ER20 token from ethereum görli testnet to polygon (mumbai testnet). I've accomplished the approval, deposit and burn steps. Nevertheless, in ...
0
votes
1answer
14 views

account defined in genesis.json has no existence when private node started using geth command

I copied go ethereum source from heco git repository compiled and used following genesis.json file { "config": { "chainId": 24, "homesteadBlock": 0, "...
1
vote
0answers
23 views

Usually how do developers test the robustness/reliability of an Ethereum client?

The Ethereum blockchain is the operational backbone of major decentralized finance platforms. As such, an Ethereum client is expected to be exceptionally reliable. I am curious about how developers ...
0
votes
0answers
15 views

Expose Ethereum Smart Contract as Rest API

I would like to know if there is any way to expose Ethereum Smart Contract function as Rest API. I am using Remix IDE to develop my smart contract and then deploying that to Ropsten network using ...
0
votes
0answers
26 views

What does the structure of an Ethereum block look like when it is stored? [duplicate]

I'd like to know the detail of the Ethereum transaction data structure. What data is stored in transaction? I have a basic understanding of the structure of the block, but is there a size for each ...
0
votes
1answer
22 views

Is it possible to reverse an internal transaction?

I've been reading about internal vs normal transactions, and since internal transactions are not recorded on the blockchain, isn't it possible to reverse them by changing the state of a contract after ...
0
votes
0answers
15 views

My geth node is stuck on "looking for peers"

I start the geth node with these parameters, "geth --ropsten --syncmode "light" --allow-insecure-unlock --http --http.api "eth,net,web3,personal" --http.addr '0.0.0.0' " ...
0
votes
1answer
21 views

how to find free network id and chain id for private network for go ethereum

I want to deploy a test node for this I want to know which network id and chain id is free to use for this private network, is there a way to check which one is available to avoid any conflict with ...
0
votes
0answers
13 views

admin.addpeers() is too slow?

I am running a private network where nodes add and remove each other dynamically (it is a mobile robotics system, where robots become peers if they can communicate). The problem is: the first time a ...
0
votes
0answers
13 views

Is there a way to control METAMASK via some type of api feature? I want to use it as my backend to send / receive eth and tokens

Is there a way to replace geth with just using metamask via some type of api via the command line? I want to interface with metamask to send and eth and erc20 tokens. Right now geth works, but it has ...
0
votes
1answer
10 views

How to create an infrastructure for node endpoint resolution on a multi-node network

I'm building a multi node private ethereum network with Quorum. I would like to give users of it a single url, like https://eth.domain.com, to connect to. At the moment, eth.domain.com resolves to a ...
0
votes
0answers
7 views

How to check if geth has access to keystore?

I have 2 accounts listed in geth and 2 related keystore files. Does geth store the password in a local db? How can I test if geth has access to the password or is able to use those keystores?
0
votes
0answers
18 views

can't sync geth: no suitable peers available

by some reason today(worked well till now) I can't connect to peers, error is "no suitable peers available". Ropsten, Goerli no matter. What may be the reason and how to fix?
0
votes
1answer
14 views

What would happen if too many people would call voting function of a smart contract at the same time?

if I have 4,000,000 users will use my voting app and in the same moment they will make a 4 million transactions to vote/ in another meaning they will press vote button at the same moment, is that ...
0
votes
0answers
16 views

Dynamic asset price calculator in solidity

My Token struct looks like this. struct Token { uint256 value; // Price of token in wei uint256 parts; // set to 10 ** 18 } Now: Anyone can create a Token and set its value Other users can ...
0
votes
0answers
8 views

clef: auto approve account_new and password

When I execute this rpc command curl -X POST http://localhost:8550 -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"account_new",...
0
votes
0answers
14 views

Ethereum Wallet Server Memory Usage Problem

When we are creating Ethereum Wallet server on Linux Ubuntu its using a lot of memory. Because its logging all of transactions automatically. Its about 1TB hard-disk memory usage per 1-2 days. Can we ...
0
votes
0answers
12 views

Does a geth light node verify transactions before sending them on chain?

I have a geth light node running locally , i used to use alchemy but now i use geth, however i noticed alchemy json rpc fails and doesnt submit the transaction when something is wrong , whereas my ...
1
vote
1answer
27 views

How to make your private ethereum block chain non mine-able?

I have made a private instance of ethereum and I want to make it non-mineable once after it is deployed. How will I be able to achieve that?
0
votes
0answers
8 views

can't execute `unlock` command

I need to unlock account through command line geth --unlock 0x1554ce5a208c80D6087d73296E65405002cd640e --password /home/a/.ethereum/pa but that command command just trying to start daemon, fail and ...
0
votes
0answers
10 views

What is the upper-bound size in bytes for a value in the state trie?

The value in the state trie is RLP encoded. What is the upper-bound size in bytes for a value in the state trie?

1
2 3 4 5
115