Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [go-ethereum]

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

0
votes
1answer
19 views

How to use event log in solidity contract using go language

I have created ethereum smart contract using go language. Smart contract successfully deployed. I have a created many transactions on ethereum private network. But I confuse how to get event log.
0
votes
1answer
30 views

Speeding up Geth Synchronization

What would help speed up synchronization? I'm not sure if it's a bandwidth issue or a CPU issue? If I were to upgrade my processor would that help make it move faster or do I need to upgrade my ...
-1
votes
0answers
15 views

Geth Core Development - How to retrieve addresses written in the genesis block?

I am currently trying to retrieve the account addresses that are stored in the genesis block as seen in the alloc section here: { "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, ...
1
vote
0answers
44 views

[RuntimeException: java.lang.NoSuchMethodException: SmartContract using web3j

I am following this tutorial for deployment of contract https://www.youtube.com/watch?v=ibAh04Csp0M&index=33&list=PL16WqdAj66SCOdL6XIFbke-XQg2GW_Avg but i am getting [RuntimeException: java....
0
votes
1answer
35 views

Transactions on Ethereum private network using the MetaMask Ropsten test connection?

I have 4 accounts on my private blockchain ethereum network and one of the account has balance of 10000000000000000000 and other accounts have zero balance each. When I connect to this network from ...
0
votes
1answer
42 views

How can we access private blockchain from another network?

I have private Ethereum network running on my local network with two sealer node and one bootnode. I have deployed the private blockchain and configured it using geth. Now I want to create another ...
-1
votes
0answers
35 views

What RPC data am I missing out on by using a geth `fast` node vs a `full` node?

I have read about the differences between geths --fast and --full nodes. In terms of RPC calls, what can I get with a --full node that I cannot get with a --fast? Specifically, can I get events, ETH ...
-1
votes
0answers
36 views

How to send API request in HTTPS to smart contract using nodeJS?

Please help me with nodeJS API request. I setup HTTPS server in app.js but still api sends the request in HTTP. How can I send a request to smart contract in HTTPS? Code: userCreationApiRoutes.post('...
1
vote
1answer
22 views

How can I execute transferFrom function in node js

There is solidity erc865 code function transferFromPreSigned( bytes _signature, address _from, address _to, uint256 _value, uint256 _fee, uint256 _nonce ) public ...
0
votes
3answers
23 views

Transfer ETH using third party

I want to transfer ETH from an individual address to another address. So is there any API provider who can send ETH from single Address to another address. Also If I setup Web3 in windows machine ...
1
vote
1answer
28 views

Getting the last synced block is 0

I am trying to get last synced block but it always 0. So I have run geth --syncmode fast -cache 4096 --rpc Here is a logs INFO [12-19|09:47:50.058] Imported new state entries count=...
0
votes
1answer
19 views

can an ethereum contract control alternative assets like btc?

can ethereum contracts control other assets, where the actual contract owns the btc and will only release it back to the address it was sent from (to avoid a DAO type hack) once a certain signal is ...
0
votes
1answer
22 views

problem I have 200 gb hard disk this will be a problem when downloading the blockchain geth ethereum

How much space does a PC need to download the complete portfolio of geth-ethereum on my pc? I have 200 gb of hard drive.
0
votes
1answer
14 views

Trying to figure if blockchain has finished downloading.

I am working on the text, Mastering Ethereum and working on the part where one has to download the blockchain. Now I elected to use geth because parity seemed to be getting stuck on blocks for almost ...
0
votes
2answers
33 views

Suggestion on my asset contract

I created asset transaction smart contract. Functions are Create Assets (asset id, asset details, with owner) and pushing into array list. Get Assets by owner address: Looping assets array and get ...
1
vote
1answer
53 views

Asset based transfer Solidity Contract

I am trying to create asset based transfer Smart contract by solidity language. i'm using ethereum. functions are Create assets (land_id, land_size, land_price) with a ownership of contract owner. ...
1
vote
0answers
27 views

Mainnet sync Broken

I am having a Mainnet on Azure VM which was syncing the network as expected, but mean while after adding Ropsten network syncing on the same VM simultaneously I'm facing problem with Mainnet sync ...
2
votes
0answers
20 views

The '*.ldb' files in `~/.ethereum/geth/chaindata`are not sequence one after one, is it normal?

I start ethereum with command: geth --syncmode fast --cache 256 and I find my files in ~/.ethereum/geth/chaindata are like: 000390.ldb 000392.ldb 000420.ldb 000484.ldb They are not one after one. ...
2
votes
1answer
35 views

ethereum wallet:Your computer's clock is not synced.

i am using geth VRSION: 1.8.20-stable-24d727b6 and ethereum wallet Ethereum-Wallet-linux64-0-9-3 and i am using Ubuntu 18.04.1 LTS and on wallet startup wallet is showing the error message here ...
2
votes
0answers
40 views

Unable to send large transactions on ethereum private chain

I have a small contract pragma solidity ^0.4.17; contract A10test{ mapping(uint=>string) public data; uint public revisionNo=0; function setdata(string _data) public { data[revisionNo] = ...
1
vote
1answer
38 views

How Ethereum consensus validates same transaction from different miners? [duplicate]

In an Ethereum node, my brief understanding regarding transaction flow is below. When a client initiates a transaction, all mining nodes receives this request. Based on gas price, miner choose to ...
2
votes
0answers
30 views

geth : Unable to fully sync to Rinkeby

I am trying to synchronise geth with Rinkeby node but when around 100 or so block left, it keep on dropping the peer and doesnot sync fully with the test net below are the screenshot for the same.
7
votes
1answer
74 views

Will Eth 2.0 be implemented in geth (go-ethereum) or will it run on a new client?

Geth is the official implementation of Ethereum based on the coding language Go. Currently, there are 8 teams that are building Eth 2.0 https://www.coindesk.com/next-gen-buidlers-the-8-teams-working-...
0
votes
1answer
16 views

How to differentiate between different logs in ethclient

I have events like this in my .sol file event userActivated(address owner, address contractAddr); event userDeactivated(address owner, address contractAddr); And I am using ethclient Go module to ...
0
votes
1answer
47 views

Data availability in Ethereum/Hyperledger-fabric (Blockchain)

I have a use-case like there is an admin who creates application and invites several user to use that application. Now, i need to audit trail over the activities done by the user. Users no need to ...
0
votes
1answer
23 views

Can ERC20 tokens be traded on other blockchain based decentralized exchange?

I have a quick question to ask from you. can we trade erc20 tokens on decentralized exchange which is built on custom replica of ethereum blockchain or you can say on a fork of ethereum blockchain. ...
1
vote
2answers
39 views

How eth_getStorageAt works when block option is not “latest”?

For the block parameter of eth_getStorageAt call, we are given 4 options: HEX String - an integer block number String "earliest" for the earliest/genesis block String "latest" - for the latest ...
1
vote
1answer
20 views

Event not visible on Etherscan transaction list

I have a BuyToken event when user send ether to smart contract they will receive tokens based on ether amount. For ex: 1 ETH = 1000 Token. /// This notifies clients about the Buy Token event BuyToken(...
2
votes
1answer
41 views

How do ethereum validate a OLD transaction(say 10k blocks ago) without sync/replay-ing the full node?

When a full node receives a freshly mined new block, it seems straightfoward how we could validate all the transactions contained in the block. As we already the current world state, we could just ...
0
votes
1answer
36 views

Mineable Tokens? Is it possible? If so, how can I make one? [duplicate]

Just wondering if you could make a ethereum token that is mineable. I saw this link, but don't really know about it and i dont know anything about solidity. Can someone please help me? Thanks, ...
1
vote
1answer
23 views

Boot Node issue

When I create a bootnode, I am not getting the enode. So I used this link for reference to derive it. However, the below is happening. It seems that the bootnode address is 128 bits whereas it is ...
1
vote
1answer
27 views

What are the correct steps to make connection and communication within one Node by creating Private Network in windows?

What are the correct steps to make connection and communication within one Node by creating Private Network in windows? Installation of Geth is done in windows successfully, puppeth is also running. ...
1
vote
0answers
13 views

Geth Clique: can change config params in genesis and still retain the existing blocks?

I have altered my custom Geth private chain Clique PoA, but it seems after I do that I encounter: BAD BLOCK Error: invalid receipt root hash Is it possible to: change the Geth code add a new hard ...
1
vote
1answer
29 views

How does Infura deal with Finality

When submitting smart contract calls to infura or subscribing to a contract's events, does infura have it's own finality bound or will I have to implement this in the client?
3
votes
0answers
49 views

Why two contracts got same address?

I've been testing payments for shopping cart on a private chain. I create and deploy contracts to disburse payments among sellers. So if a shopper buys same items again the contracts for two carts ...
0
votes
1answer
22 views

Issues while sending raw transaction for calling smart contract methods?

let provider_url = "https://ropsten.infura.io/v3/d5bca90ec3084aee8abd468fdf876a11"; this.web3Provider = new Web3.providers.HttpProvider(provider_url); window.web3_ = new Web3(this.web3Provider); ...
0
votes
1answer
16 views

How can I start swarm such that the api's are available from other machines?

I'm running this: swarm \ --bzzaccount $ACCOUNT \ --password .ethereum/.password \ --bzzapi "http://0.0.0.0:8500" \ --lightnode And when I curl from localhost I get a response: $ curl http:/...
0
votes
1answer
37 views

ERC-20 Token Transfer Error (Unable to locate Corresponding Transfer Event Logs), Check with Sender.

I created a contract on ropsten, but whenever i tried sending tokens manually to other wallets, it fails. This is the transaction details: https://ropsten.etherscan.io/tx/...
1
vote
1answer
50 views

What's the difference between 'type' and 'callType' in parity trace?

For the parity node, the response for getting the transaction trace contain "callType" and "type" which are all "call". But for geth node we only get 'type':'Call'. So I am confused, whats the ...
1
vote
0answers
22 views

Any company out there offering enterprise-grade support/maintenance for geth?

In strictly regulated enterprises, like banks for instance, often it is required to have support/maintenance for the software in usage. From the Ethereum community I know that Parity Technologies is ...
0
votes
1answer
114 views

ALERT: [ethjs-rpc] rpc error with payload

I am trying to create transaction local blockchain using ganache on When i confirm the transaction i get the error as "{"id":4818399857527,"jsonrpc":"2.0","params":..", please refer screenshot for ...
0
votes
1answer
37 views

Difference between Binary of the Contracts in Hex and contract bytecode?

I use the command "solcjs --bin mycontract.sol" to get the "Binary of the contracts in hex" and it looks like: It can be used as a parameter of evm in geth after the command "evm --code". When I use ...
0
votes
1answer
46 views

PoA private net keeps mining blocks at high rate with no transactions

I am creating a private network based on Clique (PoA) and I have a certain problem with the amount of blocks mined by my two nodes. The number of blocks is very high I quickly reached hundreds of ...
1
vote
3answers
50 views

How to check if geth node is running ,from web3j code

I am connecting to Geth using Web3j plugin. web3j = Web3j.build(new HttpService("http://<ip>:<port>")); // defaults to http://localhost:8545/ However, if the Geth node is not started, ...
1
vote
1answer
38 views

How to gather all addresses of nodes in a private network?

I am currently learning core-development in go-ethereum. I am a little weak with networking, RPC and connections. I am trying to write a function in my own consensus mechanism that gathers all ...
1
vote
0answers
29 views

Where is the bytecode of smart contract stored ? And how to get it executed?

Well, my question is terse but to the point: Where's the bytecode of smart contract stored? And how to get it executed ? From the image and Ethereum Yellow Paper we can see there is codeHash in ...
2
votes
1answer
23 views

Where does Ethereum node store its variant? [duplicate]

It's known to all that once the smart contract is deployed to the Ethereum network, it won't be modified. But what about the value of a contact's variant? Say a smart contract looks like: ... ...
1
vote
1answer
24 views

automate geth setup: automate addition of enodeInfo url of other peers

I am trying to setup multiple geth nodes on multiple docker containers. I am using a script that can initialize a genesis json file and start geth. After that, I am doing the following manually (and I ...
1
vote
1answer
72 views

creating a private boot node based on geth

I am trying to create a boot node for my private network, I followed a tutorial which led me to generating a boot.key and run bootnode -nodekey boot.key -verbosity 9 --addr :30301 It is supposed to ...
3
votes
1answer
110 views

Gas costs of the following contract

I'm calculating the gas costs of the following contract: 0x6001600190016007026005016002900460049060016021900560150160030260059007600303600960110a60005260086000f3. Disassembled versions: contract ...