Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
14 views

What are the steps to send ERC-20 tokens?

I need to send USDT and other ERC-20 tokens via Geth on Ethereum. I'm using PHP and Web3.php library to work with Ethereum. So far, it worked well for everything. Now, I need to start sending tokens ...
0
votes
1answer
8 views

How to sign transactions while Geth does not provide private key?

I've lunched Geth for the first time and created some accounts on it. While creating accounts, I entered a password for each, and a key file is generated which contains encrypted private key belonging ...
0
votes
2answers
15 views

Should I use getTransactionCount() result in sendTransaction()?

As I read, getTransactionCount() returns the number of transactions sent from an address. Which of below items should I consider? Not to use returned nonce? Use the returned nonce number as a ...
0
votes
0answers
3 views

I cant connetc geth in docker container from other container using docker name

I have docker-composer setup: Php and Geth. I can ping from php docker container to geth cont. but I cant get response from it. If I hard code ip address of this geth container, I get response if I ...
0
votes
1answer
13 views

Can we migrate private blockchain from one aws instance to another?

Right now, I am running my private blockchain on aws ec2(t2.medium) using geth. I am just curious that later on is it possible to upgrade that aws ec2(t2.medium) instance to aws ec2(t2.large) instance?...
2
votes
1answer
12 views

How to connect local ganache node with epirus

I tried apirus to connect to local ganache node. Ganache node is running on localhost:7545. git clone https://github.com/blk-io/epirus-free.git cd epirus-free docker-compose pull NODE_ENDPOINT=http:/...
0
votes
1answer
18 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
19 views

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

I am running private block chain using geth, Here is my geth command : geth --datadir $ethereum_home/chaindata --networkid 45683 --verbosity 3 --rpc --port 30304 --rpcport 8545 --rpcaddr "0.0....
0
votes
0answers
18 views

geth : Why db is not available and how to add it? [closed]

Is it possible to add "db" to the available modules, and how could I do that? geth --identity "PrivateNetwork" --datadir "c:\ethereum\data" --port "30303" --rpc --rpcaddr 0.0.0.0 --rpcport "8123" --...
0
votes
1answer
7 views

My cutom RPC meta mask created account is not showing in terminal

I have installed geth and created genesis.json and run my own private eth network. I started my rpc using geth --rpc --rpcport 5200 --rpcaddr 192.168.1.99 --datadir ./private Then I connected to ...
0
votes
1answer
21 views

Withdraw ether from other miner

I'm working with blockchain ethereum private network with several miners. I already successfully send and stamp a transaction from (example) one minerA to minerB using web3 library in python language. ...
0
votes
2answers
23 views

What is the websocket URL in Ethereum on Geth?

I've lunched an Ethereum server based on Geth. Now, I need to be notified about all incoming transactions on my generated accounts. In my previous Bitcoin Core server, I had an option in its config ...
1
vote
0answers
9 views

Can chain states be processed faster or in parallel? (geth full node syncing)

I am trying to understand more about chain states. Basically Geth is capable of downloading blocks pretty fast now, but getting "known" and "pulled" states takes much longer and seems to be ...
0
votes
2answers
18 views

How to prevent someone to replace our smart contract

I'm still learning to develop dApp and currently, I conduct some testing on my dApp. I found out that someone who is part of the blockchain network (miner and node) can replace our deployed smart ...
0
votes
0answers
25 views

How to get type of a contract internal transaction? [duplicate]

I'd like to get type(create, call, ...) of a contract internal transaction, like [this page of etherscan.][1] However, I couldn't find it any responses and documents of web3js. I'm getting a contract ...
1
vote
1answer
19 views

How do I increase the amount of memory geth can use for cache?

I'm running geth on a system with 96GB of memory, soon to be bumped up to 192GB. I currently start geth with --cache 32768 but I plan to double it when my memory is upgraded. However, I've noticed ...
1
vote
1answer
24 views

What should be the limit for miner to mine a block

I am trying to run my smart contract in remix ide, below is my smart contract code: pragma solidity >=0.4.17 <0.7.0; pragma experimental ABIEncoderV2; contract Department{ struct Employee{ ...
0
votes
0answers
20 views

Pending transactions at the client machine, but minter is not minting a new block since there are no pending transactions

I am running Blockbench on Quorom Raft using smallbank workload: 4 minters and 4 clients. Following the logs, I found that sometimes 1 specific client (Client 4) has pending transactions but the ...
0
votes
0answers
13 views

Getting HTTP/1.1 403 Forbidden when tyring to get account balance [closed]

some months ago, i can get the balance of my account using the same code (i run the code in Unity 2018 and get the code from tutorial in github). but, yesterday i can't get the balance. would anybody ...
1
vote
1answer
15 views

What is an index position of an uncle?

I see this document. But I don't understand what is an index position of an uncle. I'd like to get informations of uncle blocks like etherscan.io However I don't know a value of the index position ...
0
votes
0answers
16 views

Is it possible to use geth attach with a different keystore?

I have set up geth to run as a systemd service (in Ubuntu 18.04 LTS) as system user ethereum. The datadir is set to /blockchain/ethereum. After fiddling with permissions and groups, I managed to add ...
0
votes
0answers
11 views

Connect to any ethereum node remotely

Is it possible to connect to any synced ethereum node remotely and query their blockchain? Also, if the former is possible then are there any known remote nodes that offer this functionality for free? ...
0
votes
0answers
13 views

Ethereum Peer Removal

Current Geth version supports a removePeer function, which is great. I am working on a IoT application proof of concept using a local ethereum network, and I need to dynamically add and remove peers ...
3
votes
1answer
64 views

is smart contract excution in every node give the same result?

In Ethereum as I know that every full node executes the transaction of the contract, hence if there is a code as follows: f() { string x; if(time()<12) x=AM else x=PM } ...
1
vote
0answers
32 views

How can I run smart contract on geth?

I know that when smart contracts run in Ethereum, there are parts that create and runtime, and use function selector to find and execute body of function. I have built geth on my computer from a ...
1
vote
1answer
24 views

Get each transactions from response of txpool.getContent()

I'm trying to get each transactions from response of txpool.getContent(). The response structure is here. > pending: { '0x0000000186c96Ab17A967d7A3033db82efcA587B': { '11': [Object] }, '...
1
vote
1answer
33 views

geth v1.9.13 - web3.exceptions.BadFunctionCallOutput: Could not decode contract function call func return data b'' for output_types ['uint256']

For clearity I am using two different ubuntu machines as follows, please note that both machines are sync to my private black chain and working on the same smart-contract: Contract call was working ...
1
vote
0answers
24 views

Remix IDE Desktop + Geth node as test network

I'm trying to connect the Remix Desktop client to my local Geth node. as usual i added: geth --rpc --rpccorsdomain https://remix.ethereum.org while starting up the node. This obviously only works ...
1
vote
0answers
18 views

Failed to create genesis block [closed]

I tried creating genesis block. I have created a directory to store the chaindata. But on initializing genesis.json file I am getting this error: invalid genesis file:invalid character '<' ...
1
vote
2answers
25 views

Can I connect to testnet after synchronization finished on mainnet?

I just finished block synchronization on mainnet by default, but I realized I want to try on testnet first. Should I do synchronization on testnet again? Or how can I connect to testnet? Thanks a lot....
1
vote
2answers
50 views

How to get pending transactions with using geth or other client?

I would like to get pending transactions with using geth. And I tried to use 'web3.eth.pendingTransactions' on geth console. So the geth returned '[]'. > web3.eth.pendingTransactions [] But I ...
2
votes
0answers
20 views

How to collect geth's metrics?

I am trying to measure chain insert rates in a Geth node. In a deprecated Go-ethereum blog, it says I can use debug.metrics(false) to get all available metrics (so I can use debug.metrics().chain....
0
votes
0answers
26 views

Truffle test using multiple connections

I am running a test which involves sending transactions to a smart contract from multiple nodes. Right now, I have seperate truffle folders in each node, with a test file that sends the transactions ...
1
vote
2answers
32 views

Empty to field in web3.py transactionReceipt

I fetched the transaction receipts of a block and had some questions regarding some of the fields. If a transaction receipt shows the "to" field empty and a address in the "contractAddress" field, ...
1
vote
1answer
22 views

How to execute a private transaction in quorum

I am currently learning quorum. I was able to build two node environment by referring to "Creating a network from scratch" in the following quorum official link, and successed to attach node1 using ...
2
votes
1answer
15 views

Can I hardcode an enode hex-section in a local network?

I have multiple devices with unique IP's. Is there a way to attribute the same enode hex to all of them (while still having unique IP's contained in the enode).
0
votes
1answer
24 views

Smart contract transaction takes different amounts of gas on different platforms

I have an ERC-20 token contract on which I want to perform some testing on a local chain. I got my chain setup, contract deployment and testing scripts ready on my Windows machine. However, since I ...
1
vote
1answer
24 views

How do we compile a contract with pragma solidity 0.5.7 to work with hardfork `istanbul`?

I am using Truffle to compile the contracts and by default it compiles the contracts with pragma solidity 0.5.7 to evm version petersburg. Is it possible to compile the same contract for evm version ...
0
votes
0answers
7 views

How to findout without total number of nodes and its information connected to bootnodes only from console or geth command

I want to find out total number of sealer nodes connected with bootnode also if possible for you anyone can someone tell me if we can find out that with either geth or bootnode flags. I cant use ...
1
vote
1answer
32 views

How to connect two nodes on two different networks

I'm trying to create my own chain so I have a VM which is the main node that will mine all the time, so that I don't lose the chain if all the nodes are off. I want also to make my friends able to ...
2
votes
1answer
14 views

Using debug_traceTransaction with geth in light sync mode

Is it possible to use debug_traceTransaction with geth in light sync mode? I'm doing this: docker run -it -p 8545:8545 -p 30303:30303 ethereum/client-go --rpcapi debug,eth,web3,net --rpc --rpcaddr "...
1
vote
1answer
222 views

Getting Error while compiling: Stack too deep

Here is my code i have array not 16 variables in a function please help where i am wrong. struct Escrow { bytes16 contractID; uint256 sellingTokenAmt; uint256 feeAmtInSellingToken; ...
1
vote
0answers
10 views

keystore path in geth command does not work

I've lunched Geth server and want to store data and keystores in a non-default directory. I've used this command to run Geth: geth --datadir /etc/dir/ --keystore /etc/dir/keystore/ But when I run ...
2
votes
1answer
25 views

how to run a private blockchain network with geth on other machines, such as server and client?

i want to run private blockchain network , on the server I'm running: geth --networkid 4224 --mine --minerthreads 2 --datadir "D:\mydirectory\private-network" --nodiscover --rpc --rpcport "8545" --...
2
votes
0answers
16 views

debug.traceTransaction returns empty structLogs

I have installed a private node using geth (1.9.11-stable). I have created a number of accounts, deployed some contract accounts and sent transactions from the accounts to the contract accounts. By ...
1
vote
0answers
22 views

Unexpected fault address

I picked up an Ethereum Blockchain at AWS ECS almost 3 months ago, it was working perfectly until I got this bug yesterday from the mining node: unexpected fault address 0x7fb93c71d000 [signal SIGBUS:...
2
votes
1answer
23 views

Difference between ERC 20 and ERC 721 transaction receipt

I want to fetch certain transaction logs from a local ethereum node. For that, I need to identify how to differentiate between ERC 20 and ERC 721 transaction receipts. From what I saw on Etherscan, i ...
0
votes
1answer
64 views

run geth light mode looking for peers forever

i run a geth light mode node on Ubuntu by geth --syncmode "light" --identity "mydev" --rpc --rpccorsdomain "*" --datadir "/root/mygeth/chain" --rpcapi "db,eth,net,web3" --networkid 1 console But it ...
0
votes
0answers
20 views

Getting 0 values from mapping variable

i added some data in smart contract mapping on remix i am getting values but with web3 i am getting 0 values const escrowCount = await neutralG.methods.totlaEscrows().call() for (var i = 1; i &...
0
votes
1answer
32 views

How i can call one method inside another method result?

i want to call two methods first call one method then second method after first method success below is my code please check and let me know how i can achieve this this.state.token.methods.approve(...

1
2 3 4 5
98