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
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
29 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
25 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
34 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
11 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
17 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
37 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 ...
1
vote
1answer
99 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(...
0
votes
0answers
14 views

Update or delete Geth failed - Windows 10

I am a beginner with Ethereum so there is a big chance that I am missing something basic. I was following an Udemy tutorial so I am at the set up phase. I installed geth 1.8.23-stable and I was ...
0
votes
0answers
62 views

referenceError:unescape is not defined

The geth console called a smart contract method with an error: referenceError:unescape is not defined contractInstance.multiply.call(3) ReferenceError: unescape is not defined at web3.js:8360:42(...
1
vote
1answer
15 views

Using `recoverPersonalSignature` from `eth-sig-util` to verify message signed with go-ethereum's `crypto` package

I am using https://godoc.org/github.com/ethereum/go-ethereum/crypto#Sign to sign an arbitrary message and trying to recover the signer address using sigUtil.recoverPersonalSignature(https://www.npmjs....
1
vote
0answers
28 views

Solidity logic implementation using block.timestamp

i'm trying to implement some logic involving block.timestamps and i keep getting this weird transaction revert: The first time i call the function doLogic(), the transaction gets reverted. The second ...
1
vote
2answers
24 views

quiknode does not support eth_sign

I found that on the web of quiknode it says quiknode do not support eth sign and maybe infura does not also What should I do ? I want to use ethereum.php so I need to create eth sign and send ...
0
votes
0answers
26 views

Unlocking the ethereum account in azure using azure cloud shell

I have created an ethereum account in azure using ethereum consortium proof of concept and linking metamask with it ,I m trying to unlock the adrees of ethereum i have created I HAVE TRIED IN BOTH ...
1
vote
1answer
18 views

Unlocking the ethereum created in azure in azure shell

I have created an ethereum account using ethereum proof of authority in azure and metamask I have been trying to unlock my ethereum account to use it with my website i entered details like this in ...
0
votes
1answer
21 views

same transactions by different miners at same time

i have a private network having 3 nodes, two are mining and one is listener. All three nodes are connected as peers. Now, is there any way where both miners pass same transaction at same time.
1
vote
2answers
26 views

Not getting token address

Hi i am trying to get already deployed token instance here is my code async loadBlockchainData(){ this.tokenAddress = 0xebee955631d342484bc4a0a2302b9273d48ecc6b; const tokenAbi = [{"constant":...
0
votes
1answer
36 views

Can an Erc-20 token that I create on my Quorum be integrated with any cryptocurrency exchange (for example Coinbase)?

I have setup my own quorum blockchain network. If I deploy an ERC20 token contract with a coin name (say ABC), will I be able to list the coin in exchanges ?
1
vote
0answers
23 views

Geth 1.9.11 (and JSON-RPC) are still using a old version of web3?

Geth console by default is using web3 0.20.1, even in the very last geth version (1.9.11). Is it possible to use web3 1.0+? { api: "0.20.1", ethereum: "0x41", network: "3", node: "Geth/v1.9....
1
vote
1answer
24 views

Why Do I need to deploy contract each time I start a geth node

I have a simple smart contract that I deploy to my own geth node and it works fine but the problem is when I close the geth console and start it again I have to redeply the smart contracts again Here ...
0
votes
0answers
17 views

Go-ethereum light node does not provide getTransactionReceipt after upgrade

I'm running the following services in docker: go-ethereum 1.9.11-stable-6a62fe39 in light mode python 3.7-alpine app with Web3 v5.5.1. Geth node startup is straightforward: image: ethereum/client-...
0
votes
0answers
45 views

get event logs and debug trace from eth_call

I am looking for a way to execute a transaction locally (using local geth/parity node) for simulation only, before actually submitting it to blockchain. I know that I can use 'eth_call' RPC call and ...
0
votes
0answers
21 views

How to pass a selected radio button value in reactjs to ethereum blockchain

I am new to react and ethereum. I am working on voting dApp where I want to pass the selected candidate with a radio button in react to the blockchain. How do i go about it? here is my code. I have ...
0
votes
0answers
26 views

Unable to get the Ethereum accounts (eth_accounts) using the JSON RPC

I launched an Ethereum installation with the Amazon Blockchain Templates using the simplest installation, the docker-local with a private network (not connected to the public Ethereum network). ...
1
vote
1answer
27 views

Why is privateKey padded before secp256k1 signing?

I am checking how the Ethereum handles signing but I can't figure out why the math.PaddedBigBytes is necessary: func Sign(digestHash []byte, prv *ecdsa.PrivateKey) (sig []byte, err error) { if ...
0
votes
1answer
39 views

Deployed contract address is getting undefined after few days on private network

I have a private blockchain where I am able to deploy my smart contracts successfully and then I am getting the address of my smart contract which I am storing on my relational db. In geth console ...
0
votes
1answer
18 views

Geth Providing error on its directory path

I have initilize my node1 with my genesis file which worked fine command is 'geth --datadir node1/ init genesis.json'. But with same geth when I try to run this command geth --datadir node1/ --...
0
votes
2answers
81 views

Web3.js eth.subscribe: on('changed', function(event){}) doesn't work with Metamask?

I write a demo DApp website with this javascript const web3 = new Web3(ethereum); const contractAddr = "0x0Aa27e4B13D5c08A8767B36a0ACb76ED4549B7EA"; const abi = ...; let inst = new ...
0
votes
1answer
167 views

Getting “ReferenceError: unescape is not defined” when trying to call() a smart contract method from rasberry pi to a private geth network

> var contract1 = eth.contract(abi).at(address) undefined > contract1 { abi: [{.....] transactionHash: null, addRecord: function(), allEvents: function(), getPatientName: function(), ...
0
votes
0answers
18 views

DIGIX tokens mapped with physcial gold ids?

If digix tokens are linked to Physical gold, what will happen to this linkage, if user transfers his tokens to other users.
0
votes
1answer
23 views

PoA network confusion resolving using geth

I am planning to move from PoW to PoA consensus (clique) using geth. But I am confused of some of the topics - 1) Empty blocks are created periodically? What is the size of an empty block? 2) Is it ...
0
votes
0answers
20 views

Difference between method id, event id and ABI signature for event

I am confused as to what is the difference between method id, event id and abi signature. I got the abi signature of a token transfer function according to the following web3js function const ...
0
votes
0answers
33 views

Gas required exceedes allowance when invoking a pure function

So, I got a problem when interacting with a smart contract in geth. I have this very simple contract: pragma solidity^0.6.1; contract Simple{ uint256 public number = 1; constructor() public { ...
0
votes
0answers
30 views

smart contract not completed

I was supposed to receive payment through a million money ethereum smart contract. The transaction was made by my downline and it shows on my http://lk.million.money office but it did not show on my ...
0
votes
0answers
12 views

Is there a contradiction between the geth arguments --txpool.accountslots and --txpool.globalslots?

Geth has the arguments --txpool.accountslots and --txpool.globalslots. One guarantees a minimum number of slots for each account, and the other --txpool.accountslots value Minimum number ...
0
votes
0answers
12 views

Geth automining does not fill blocks to maximum

I am running a throughput test on a private geth blockchain. The test sends 500 transactions rapidly and then waits for their confirmations in order to measure transactions per second. However, I've ...
0
votes
0answers
33 views

Calling provable_query via Ethereum-bridge work only the first time

I implemented a contract to call a api via provable and ethereum-bridge on a private ethereum. In the first time, when calling a api, it works fine. However, when tring to call api again, I got an ...
1
vote
1answer
40 views

Is fully synced node required to access ethereum blockchain through geth?

Do i need fully synced node to access ethereum blockchain through geth using web3js? PS. i want to access ethereum blockchain through geth only, not metamask, infura, etc.
1
vote
1answer
29 views

Just synced a node, but want to use docker instead, can I moved synced db into container?

I just synced a node using geth fastsync and it took several days. But I just decided I want to use this computer's resources differently and run my ethereum environment from a docker container I ...
1
vote
1answer
28 views

Running geth - ssh doesn't work

The Ethereum light node is synced by geth, but when we tried to sync it we lost ssh connection. We assumed that while it is syncing it is impossible to connect via ssh to computer. If anyone has any ...
0
votes
2answers
62 views

solc@0.5.15 and web3@1.2.6 Error “Returned values aren't valid, did it run Out of Gas”

I created a simple contract and try to run it on Remix. It worked fine. However, when I deployed and excuted in a private ethereum, I got the error "Returned values aren't valid, did it run Out of Gas?...

1
2
3 4 5
98