Stack Exchange Network

Stack Exchange network consists of 175 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
0answers
2 views

rlp: cannot encode negative *big.Int

i use the go-eth p2p mode to develop a p2p net, i send a message with negative big int, the erorr occur rlp can not decode the negative big int, there are some way to solue
3
votes
2answers
46 views

how to setup a ethereum private blockchain?

Does anyone know how to set up a private blockchain in ethereum network? is that possible to run a private ethereum node? I have seen forking of public blockchain like EOS into a private blockchain.i ...
1
vote
1answer
34 views

How could I check value and gas at Geth

My source below pragma solidity ^0.4.17; contract EtherBox { uint balance; constructor () public payable {} function SetBalance() public payable { balance = balance + 10; }...
0
votes
0answers
5 views

Could we set the transaction cost for private blockchain?

I have set up a private blockchain for group of nodes.My question is whether i can set the transaction cost in my private blockchain in-order to avoid span transaction?
1
vote
0answers
8 views

How to use the 'evm' command of go-ethereum?

I'm just engaging in geth development and was trying to put some changes into evm opcode implementation(functions like opAdd) for debugging. After compilation done, I found that there is a command '...
1
vote
2answers
125 views

Not able to unlock account using GETH on testnet

I am using GETH console to unlock the account but i have been consistently getting error "Error: no key for given address or file". I looked into "C:\Users\AppAdmin\AppData\Roaming\Ethereum\testnet\...
0
votes
2answers
34 views

Windows 10 private net can't connect to the other peers, geth: 1.8.11

System information: Geth version: Geth/1.8.11-unstable OS & Version: WINDOWS10 I modified the main net Genesis config parameters in DefaultGenesisBlock in genesis.go, and I replaced the ...
0
votes
1answer
48 views

Update private chain from homestead to byzantium

I need to update my the version of my chain from homestead to Byzantium. Who can tell me how to do it? thanks.
0
votes
1answer
33 views

Execution of sending transaction never ends [UPDATED]

I send a transaction with web3 1.0.0 from a script like: async function sending(deployed_contract) { await deployed_contract.methods.mymethod(1).send({from: account}) .on('...
0
votes
1answer
39 views

Make a transaction to Node 1 without syncing the blockchain on Node 2

Is there any way in which I can send a transaction to a contract deployed on Node 1 from Node 2 without syncing the entire blockchain on Node 2. I basically want to access the Node 2 without having ...
1
vote
1answer
34 views

What are the inputs to the truffle Txn?

I am testing truffle now and I want to know more about what it deploys and how. It seems to use two txns. I have some results - Running migration: 2_deploy_contracts.js Deploying CA12... ... ...
0
votes
1answer
36 views

go-ethereum: deploy contract with pub + private + key + password

I'm not sure if I create the right title. But the problem is: I do have a public and private key from ganache network. I want to deploy contract using go-ethereum which requires me to setup keystore ...
2
votes
1answer
33 views

Is it possible to check the Thrid party token ( USDT ) within my ERC223 contracts?

I want to check how many tokens are received in my contracts, so that I am able to allocate MY TOKENS to the TOKEN Sender. I tried several ways like approveAndCall, but its not working. I don't ...
0
votes
1answer
39 views

Modifier condition always false

I am passing an array of addresses into a contract from a parent contract. Using that I am generating a mapping with those address to quickly verify the msg.sender is part of the set mappings. To ...
0
votes
1answer
45 views

Remove coinbase transactions in private net

I was willing to setup a private ethereum network with low difficulty. I can fix the difficulty of each block to 1 (or constant) to avoid problem of very high difficulty with increase in no of blocks. ...
0
votes
0answers
12 views

Trying to load js file in Geth console, but I get “Error: could not decrypt key with given passphrase”

I'm trying to load a javascript file into my geth console: > personal.unlockAccount("0x527239d79ef1f8d8e2696d2651d01969ce9a6876",null) Unlock account 0x527239d79ef1f8d8e2696d2651d01969ce9a6876 ...
0
votes
0answers
4 views

Which kind of error does LOG15 in Ethereum-geth client is about? i always encounter it when When unmarshalling msg.data()

I marshal a struct locally, and then send the marshaled data to ethereum geth client. But when i unmarshal it in geth , i always meet a log15 error. I have explored it for a long time, but didn't ...
2
votes
3answers
495 views

Are all Accounts available in every node in the network?

In the context of building DApps, Can a DApp have access to any account across the network (any given node)? Or just the accounts created for the Node it "points" to? I guess this is another way of ...
3
votes
1answer
24 views

Embedding ETH Wallet Address into Webpage

Hey is there a quick way to embed an Ethereum wallet address and a button into my existing website so as to allow people to send in their ETH donations to me? Or do I need to go through the whole npm ...
0
votes
1answer
43 views

Approve step in DAO refund - Error: exceeds block gas limit

I'm following the steps from this URL: https://theethereum.wiki/w/index.php/The_DAO_Refunds#How_Do_I_Withdraw_The_DAO_ETH_Refund_Using_Go_Ethereum.3F "How Do I Withdraw The DAO ETH Refund Using Go ...
0
votes
0answers
22 views

“Normalized odd number of arguments by adding nil ” when unmarshalling data in geth client

I use json.marshal api encoding a struct and then send the marshalled data to geth. It's oK to unmarshal the data locally, but geth returns a error when unmarshalling it. I don't why, please give me ...
0
votes
1answer
33 views

Why the remote port connected by the geth node is not the initial port by remote node?

I deploy a ethereum private network by geth, And I running three node on my computer, connect them by bootnode. The private network is working, But I'm confused about the results of the operation. My ...
0
votes
2answers
52 views

Golang Equivalent to list accounts on node - web3.eth.Accounts()

Does anyone know if its possible to get a list of the accounts on a node using golang, after Dialing to the node, basic PoC would be assuming the accounts are already unlocked via the CLI Basically ...
1
vote
0answers
13 views

How do newHeads and event subscriptions behave on past reorgs?

Based on the geth documentation, I understand that a subscription on both newHeads and logs will emit all new heads and events that come from a reorg. However, I couldn't find what the behaviour is ...
0
votes
1answer
16 views

Accounts with ether cannot execute transaction on private chain

According to Metamask my accounts have ether, one account can submit transactions and have them be executed by the network, the other two have their transactions left as Submitted transaction. Note, ...
0
votes
1answer
49 views

DAO withdrawal without keystore

I have been reading here about the withdrawal process. A friend of mine has participated in DAO and he needs some help - a couple of days ago found that DAO has failed and wants to withdraw. All he ...
33
votes
2answers
21k views

How to select a network id or is there a list of network ids?

We're starting a new open network based on the Ethereum protocol. The question is how to allocate a network id for the new network. In Ethereum we have main net, four test networks, classic with test ...
1
vote
2answers
25 views

On-chain settlement based on off-chain activity

I'm build a DApp where the end-user should be able to attach a proof (could be information, data, attachment, whatever). Now, if the DApp accepts this proof as being legit off-chain, then I want the ...
0
votes
1answer
17 views

Multiple Geth on same machine with different genesis

i have been running multiple geth instances on a single machine for the conceptualization of private blockchain. Now i am trying to run two different and separate from each other geth instances on ...
1
vote
0answers
13 views

retrieve state from leveldb

I want to retrieve the latest state from the local disk leveldb. I first get the latest block "currentBlock" from the leveldb, which works fine. Then I use the function loadLastState in go-ethereum ...
0
votes
0answers
17 views

Correct way to handle sent signed transaction on ethereum poa network

Hi I’m having issues with sending multiple transactions to an ethereum proof of authority node(network) on azure. To clarify what I mean. I created an api service, using expressjs and node. Its meant ...
1
vote
1answer
43 views

Rainbow Table, compromised Geth Node and any possible recourse

If and/or when a geth node is compromised, and the hacker uses a rainbow table, will he or she be able to get many private keys to sign his/her way to be the king of ether?
0
votes
1answer
37 views

Contract's transaction count in a certain period

I want to determine the number of transactions of a contract in a certain period. My question is that in the transaction receipt, if we want to say that contract A has x number of transactions will ...
0
votes
1answer
19 views

How to return values from dynamic array push function?

How to fetch value from dynamic array push function? Below is the code of pushing function, but how will I fetching that array values? contract PushStruct { struct MyStruct { uint field1; ...
1
vote
1answer
18 views

what is difference in ethereum transaction after constatanople upgrade?

I have heard that Constantinople update transverse the consensus protocol of ethereum from proof of work to proof of stake. So they claimed that this update could speed up the TPS(transaction per ...
2
votes
1answer
23 views

What is the non-transactional behavior of the EVM?

This question is about Solidity code that reads the state of a deployed contract on a Geth node using web3.js. When I call claimsProcessed() with a different account than admin, I expected it to throw ...
1
vote
1answer
41 views

How to query incoming transactions to an ethereum address via web3j?

i know this question has been asked many times in this forum, but none of them give clear cut answer to the questions. I tried the snippet mentioned in this answer: Common useful JavaScript snippets ...
0
votes
0answers
17 views

is it possible to mine two transaction from same account with different nonce for one block? [duplicate]

I have a question about double spend attack on ethereum I heard that double spend attack is prevented by Nonce and we can send transactions with different nonce it can be validate but this ...
1
vote
1answer
44 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
1answer
17 views

Blockchain Hark Fork System Impact - risk assessment and mitigation plan

I am exploring on System Impact risk assessment and mitigation plan during a block chain (ex –Ethereum) hard fork. 1) What happens to the deployed smart contracts when a hard fork occurs? 2) Does ...
1
vote
1answer
48 views

Geth interface panic after weeks of being in sync

After weeks of being in sync and working fine, my Geth just stopped. Upon restart, what started as a long hang on FS Sync Time (repeat output with different values, no further movement beyond ...
0
votes
2answers
44 views

What do I need to log into Geth?

I had to reformat my OS since the last time I did any mining and so I don’t have any of the data originally on my HD. I do have my Geth account # and assuming I can remember my password is that ...
0
votes
1answer
38 views

Problems with Geth 1.8.19-stable

I am trying to add static peers by static-nodes.json file but with this version it does not work. What is the way to do it ? If I add peers with admin.addPeer() it works, but if I am using --syncmode ...
3
votes
2answers
48 views

Can we do ethereum transaction for free on private blockchain

I am very new to ethereum Blockchain. Please give some suggestion regarding one query regarding gas fee. Can we do ethereum transaction and smart contract deployment for free on private blockchain ...
0
votes
1answer
34 views

Can I access last mined block if my node is not there yet?

This might be a stupid question, but I'll ask anyway... I'm currently connected to Ropsten and when I execute eth.blockNumber it says 1853682 (I'm like 300000 blocks away from current last mined ...
1
vote
1answer
37 views

Smart Contract To Send Multiple Outputs

I'm learning about smart contracts currently and a bit confused as to how they really work. My website allows users to send ETH from their wallet on site to another address off site. During which I'd ...
0
votes
1answer
50 views

Oraclize usage on blockchain

Is it possible to use oraclize for the purpose of communicating between ethereum private and public blockchains? For example, if i triggered an event in private blockchain, that event should be ...
1
vote
2answers
141 views

How can I find all contracts that support a particular ABI?

I'm trying to find an easy way to scan the blockchain for contracts that support a particular ABI. Take ERC20 as an example: What is the easiest way to find all the ERC20 supporting contracts on the ...
0
votes
2answers
199 views

2019 SPECS FOR RUNNING GETH FULL NODE

What are the specs for running an ethereum full node in Jan 2019? No fast flags as eth.blocknumber and some other methods needed. PLEASE NEED OFFICIAL ANSWER Thank you! I have a very powerful machine ...
0
votes
2answers
76 views

how to create genesis block on ethereum?

geth --datadir ./ init customgenesis.json Fatal: Failed to read genesis file: open customgenesis.json: no such file or directory