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
1answer
45 views

Account address in ethereum wallet already existed

My etherum got stolen today I have hosted my own ethereum fast node. The node wallet has multiple account. I have created a mini app with api to create new account(without passwords) for users, also ...
1
vote
1answer
22 views

Pros & cons of enterprise volatile/stable ERC20 usage and likelihood

What are the pros and cons for a business to accept a stable/volatile erc20 token as means of payment? and what is the likelihood of such? I assume a business would always prefer a stablecoin over a ...
1
vote
1answer
93 views

List of Stablecoins built on Ethereum

What are some stablecoin projects built on Ethereum and how do they distinct between each other?
0
votes
1answer
11 views

Disguise the input from msg.sender of a function call

is it possible to disguise the input from msg.sender of a function call? e.g. If we assume I have a smart contract which includes a mapping of registered inmates, and a user-group called prison ...
1
vote
0answers
60 views

No contract code at give address

Its a bit of a long question... I am using Go to deploy a Smart Contract using the following code: client, err := ethclient.Dial("http://localhost:8545") if err != nil { errorhandler.HandleErr(...
0
votes
1answer
33 views

How to sync to Rinkeby Test Network using geth in Windows?

Should I run this command or the ipcpath must be changed for Windows. geth --rinkeby --rpc --rpcapi="personal,eth,network,web3,net" --ipcpath "~/Library/Ethereum/geth.ipc" And after that what path ...
1
vote
0answers
27 views

Blockchain Content

I am wondering if the content (transaction) of the consortium blockchain can be visible only for the validators. In other words, the registered users cannot read the content of the blockchain. Is ...
1
vote
0answers
25 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 '...
0
votes
0answers
16 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
12 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 ...
3
votes
1answer
41 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 ...
1
vote
0answers
24 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
79 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 ...
1
vote
1answer
17 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
1answer
20 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
0answers
35 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
2answers
37 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 ...
2
votes
1answer
28 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 ...
0
votes
1answer
31 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
1answer
25 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; ...
2
votes
1answer
27 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 ...
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 ...
3
votes
2answers
91 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 ...
0
votes
1answer
21 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
74 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 ...
3
votes
2answers
75 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
0answers
36 views

I am working on a smart contract. I am getting the following error while running the smart contract in the browser console

Uncaught (in promise) ReferenceError: TruffleContract is not defined at Object.loadContract (app.js:55) at async Object.load (app.js:8) here is my code of app.js file App = { ...
3
votes
1answer
25 views

Rinkeby SSTORE GAS

I am checking the OP codes of a function (smart-contract), in Rinkeby. In my implementation there are 6 SSTORE op. - 4 of them, have 5000 GAS. - 2 of them, have 200 GAS. 5000 GAS is justified, based ...
1
vote
3answers
18 views

Is there anyway to seize an account from smart contract?

I creating a smart contract for manage loans and I am searching some way to make me sure when the borrower defaulted pay back the loan, seizing some percentage of ether from the guarantor's account. ...
0
votes
2answers
22 views

does we need 6 blocks confirmation using ethereum poa network?

when working with poa ethereum network, does we need to wait 6 blocks to be confirmed? I am implmenting a private network, and I want to know if is it possible to has a fork inside the chain
0
votes
1answer
40 views

Original genesis.json file for ethereum mainnet, which should have 314 accounts allocation?

314 accounts are created at the start of ethereum frontier release and some funds were alloted to them. https://www.etherchain.org/charts/totalAccounts where can I get the genesis.json file used to ...
0
votes
0answers
13 views

Should Ethereum wallet need to be imported to a node to send eth from it using CURL JSON rpc?

I created 2 wallets using MyEtherWallet. Noted down the private key, public key pairs. If I then use one of the wallet's public key as the from address and the public key of the other wallet as the to ...
0
votes
1answer
25 views

how can we know the address of the peers in Private ethereum block chain to send the transactions

Hi iam new to private ethereum block chain and geth. Can anybody suggest me how can we know the receivers address to send the transaction using geth console on sender side?
0
votes
1answer
31 views

truffle test get different results between ganache-cli and local geth

When I run truffle test on ganache-cli, it will pass the test but when I run the same truffle test commnad on local geth node, it will fail with error saying invalid address at the method which takes ...
0
votes
0answers
18 views

Private Chain Gas Zero [duplicate]

Is there a way to make transactions costless on a private Ethereum network? I am already limiting who can interact with the deployed smart contracts and who is a member of the network with code. I ...
0
votes
1answer
56 views

How are new users authenticated into Quorum network

I could find from online readings that Quorum has a Network Manager component that controls nodes access to network to created permissioned network of nodes. But, I couldn't see explanation on how ...
0
votes
0answers
19 views

Api do not return response with promise handling, works without it

I have already deployed ethereum private blockchain network on linux and on windows 10, but api's do not return response. For example contract.methods.freezeAccount(address,tempStatus).send({from:'...
1
vote
0answers
44 views

Synchronisation failed, dropping peer valid and Impossible reorg

I'm working on a project called Rubykube Workbench. But the "ethereum/client-go:Stable" container gives error. System information Geth version: 1.8.23-stable-c9427004 (docker container) OS & ...
0
votes
0answers
87 views

web3j.ethCall returns null when retrieven contract variable

Environment: Geth node Geth/v1.9.0-unstable/windows-amd64/go1.12 Commands used to start the node to mine: geth --datadir "." --networkid 101 -verbosity 6 --port 30301 --rpcport 8101 --nodiscover -...
0
votes
1answer
72 views

Genesis allocation and (address, balance) tuples

On go-ethereum souce code at core\genesis_alloc.go(19): ... package core // Constants containing the genesis allocation of built-in genesis blocks. // Their content is an RLP-encoded list of (...
0
votes
1answer
110 views

Block sealing failed err=“unauthorized signer”

i am trying to run geth environment on windows after i have successfully set it up on linux. When trying to deploy contract on geth like i did in linux it produces following error. loadScript('...
0
votes
1answer
52 views

How can I decode transaction input to know what method was called and what arguments were passed in (and arguments types)?

following to the approach explained here to use etherscan api from Python to get transactions info such as input How to retrieve transactions' info such as gaslimit and gasprice from Etherscan? ...
0
votes
0answers
10 views

what's the functionality of the core/vm/runtime package, especially runtime.go

When i try to find the workflow of Creating a contract in Ethereum, I found besides two general entries for calling contract creation function, executing tx and verifying tx respectively, and there ...
0
votes
1answer
59 views

Mapping problem

**I am Using Solidity compiler 0.4.11 When I compile my code i get the error that is " Error: Type "mapping(string => string)" not supported for state variable.\n\tmapping (string => string) dataLink *...
0
votes
1answer
13 views

error handling in sending custom token to multiple addresses in one transaction

i am trying to write a contract in which there is a function to divide the amount into equal parts and then deposit it into multiple accounts in one transaction. The problem is that, i want function ...
0
votes
1answer
51 views

how to get contract creation code (bytecode) from etherscan api?

I tried etherscan api to get the contract creation code (bytecode for depolying contracts). I tried both getContractABI and getSourceCode, but the return values are not what i am expecting. I need ...
0
votes
1answer
66 views

Solidity Contract Deployment fails - but account has plenty of ETH

I was just trying to deploy a new contract on the Ethereum MAIN-Net (not Ropsten, Rinkeby or the other test-nets) - and I’m getting this strange error: Message: sender doesn't have enough funds to ...
1
vote
0answers
147 views

Geth/Ropsten light node can't find suitable peers even after adding peers

I am trying to deploy a test contract on Ropsten test net. I have started a light node using the command: geth --testnet --datadir=./.ropsten --syncmode=light --rpc --rpcapi="personal,eth,network,...
1
vote
0answers
87 views

Simplest way to connect Mist to a node

What do you guys think the simplest way to connect Mist to geth running on another machine? I'm running geth 1.8.23 on another machine using ./geth --rpc --rpccorsdomain "*" --rpcapi "db,eth,net,...
1
vote
1answer
29 views

Token real synchronization from my website

I like to integrate a real token synchronization (From distributer wallet account to user's wallet address the token need to transfer) in my website. My website needs to interact with the blockchain ...