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
58 views

invoking smart contract through geth console

i am trying in invoke the smart contract through geth i am successful in doing it but the problem is i have a function in the contract which should give me the list of candidates. i getting it but the ...
1
vote
1answer
41 views

migrating contracts

When I want to migrate a contract to rinkeby network using the command: truffle.cmd migrate --network rinkeby I get the error: Using network 'rinkeby'. Running migration: 1_initial_migration.js ...
0
votes
1answer
49 views

How to get the pending transactions in the whole network from ethereum?

I would like to get the pending transactions in the whole network of ethereum. For example, the transaction '0xabcdefg' is right now pending in the pool, waiting to be mined by miners, after 12 ...
2
votes
1answer
38 views

Markle patricia tree odd key lengh

I was going through MTP deatils here Can someone give real scenario example for odd key length? "When traversing paths in nibbles, we may end up with an odd number of nibbles to traverse, but ...
0
votes
1answer
70 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
33 views

Error: The contract code couldn't be stored, please check your gas amount. Modified truffle.js not solving the problem

My smart contract could not deploy successfully, it contain 400 line. My truffle.js was configure to module.exports = { // See <http://truffleframework.com/docs/advanced/configuration> ...
0
votes
0answers
10 views

Tutorials on blockchain decentralized application

which video tutorials can you guys recommend to person like me who want to developed a blockchain decentralized application that can store files on blockchain network. Patiently waiting to hear from ...
0
votes
1answer
27 views

Make a transaction from a node not in network

I have a smart contract deployed on one node. This node has another node in the same network. Is it possible to make a transaction from a 3rd node to the 1st, when both are not in the same network?
0
votes
0answers
15 views

Chainlink services are not supporting the privateFor transactions in Quorum/Kaleido

We are exploring Kaleido and Chainlink for one of our use cases. What we have done: We have created a network of Quorum/Raft nodes. We had setup the chainlink service for the network. We have setup ...
1
vote
1answer
38 views

Multiple Array[] along with mapping handling

This code is running but when the same user makes a bid then the bid is being replaced from the first bid and event is printing twice the same record. I want that one address make a bid and for his ...
0
votes
0answers
7 views

Geth trace transaction int old block

I start geth without setting gcmode=archive at the beginning. But when i realized that if i want to get all the internal transactions in ethereum blockchain, geth has synced at the blockheight of ...
0
votes
1answer
90 views

abigen error : Failed to generate ABI binding: unsupported arg type: tuple

Hello I 'am trying to generate Go ethereum binding for a smart contract in which I have a function that takes a struct as argument. It seems that abigen doesn'tsupport this argument. struct Device { ...
2
votes
1answer
37 views
+50

Token Swap From Ethereum Host Network To Different Blockchain

What is a good way to swap tokens from the Ethereum host network to a different network (i.e. the Tron blockchain)? Would the best way to do this be to have a smart contract where ERC20 token holders ...
2
votes
1answer
105 views

The difference between web3.version.network and web3.version.ethereum

The return values of the commands web3.version.network and web3.version.ethereum are: web3.version.network = "The network protocol version" web3.version.ethereum = "The etherum protocol version." ...
0
votes
1answer
32 views

RPC 's SendRawTransaction(increased nonce) many times ,only the first transaction in block

I am using infura node (rinkeby), php. There are 3 transactions I signed with custom nonce (like the solution here) then broadcasted them by sendRawTransaction and succeeded. After above I get 3 ...
0
votes
2answers
99 views

miner.start() cannot deploy my contract

My environment: geth 1.8.11 Ethereum Wallet Mist Browser Windows 10 I tried to deploy a new contract in the Ethereum Wallet. I executed (miner.start();) in the Geth JavaScript console to get some ...
0
votes
1answer
25 views

how do I make users sign different strings with their private key separatelly

Here is the the scenario. Users come to my website and register(by using email and password). Then they login. After that, They add a new item(which has name and quantity fields). After Clicking ...
1
vote
2answers
4k views

Geth Fast is running for hours

So I started using geth with --fast and it is still syncing (after more then 12 hours). Is there a way to make it happen faster? I have tried light before, the same happened but it stopped it after 6 ...
0
votes
0answers
11 views

get statistics by event filters or normal blockchain traversal

I want to ask what's the better approach among the following two: Filter events using address.eventFilter function or traversing the local blockchain block by block and getting events statistics. I ...
0
votes
0answers
16 views

Where can I buy some usdt in small amount for testing on mainnet

Any where to buy small amount of usdt of mainnet for testing?
0
votes
1answer
34 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
29 views

Using geth Light Node to detect ERC-721 transactions

Is it possible to use a geth light node to detect incoming transactions executed via ERC-721 contracts? I have experienced being not able to get receipts using getTransactionReceipt in native and ...
1
vote
1answer
124 views

Ethereum Puppeth private blockchain hosted in google cloud how to connect through rpc

I have deployed a priavate etheruem Poa bloackchain to google cloud using puppeth everything is working fine but i can't figure out how to connect throw rpc to the private network ! please help ! any ...
0
votes
1answer
73 views

How do i change the value of ETH User can send?

pragma solidity ^0.4.19; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } ...
1
vote
1answer
27 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 ...
4
votes
1answer
326 views

Why does geth -light start importing block headers from 3297471

I've been using geth to download the blockchain (on full) and one of the requirements for my research involves the use of light clients. I used 2 computers to download the blockchain on the -light ...
1
vote
1answer
92 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 ...
2
votes
2answers
153 views

Geth v1.8.21 slow syncing on archival node

Geth Version v1.8.21+bionic - stable Machine - 16GB Ram, SSD, i7 processor I'm currently in the process of syncing a full archival node on Geth. Up until recently the chain was syncing fine, around ...
1
vote
1answer
100 views

How many non-empty accounts are there?

I am researching into the statistics of Ethereum and I an looking for a datum of how many non-zero balance account currently exist in Ethereum? I know that in total 30M of accounts were created but ...
0
votes
1answer
44 views

How do i solve this gas out of limit issue?

From: 0x08393207d999c507670510ea5713d4842ecfc86e To Contract: 0x9a4bdb797d957be02804410ec49cd6de4a831b9d Warning! Error encountered during contract execution [Out of gas]
0
votes
1answer
26 views

Can I add my own fields to JSON files in the keystore directory?

I need to add a few fields to JSON v3 wallet file, can I do it ? What is Ethereum's policy on this? For example, to add account name I would do something like this: { "address": "...
4
votes
2answers
5k views

RPC connection to private net using MetaMask works, but using geth, mist or solidity browser doesn´t

I am trying to create a private network consotium in Azure by following this tutorial: https://github.com/Azure/azure-quickstart-templates/tree/master/ethereum-consortium-blockchain-network Problem ...
0
votes
1answer
29 views

Error when deploying contract in geth with truffle ? --> Returned values aren't valid, did it run Out of Gas?

I have deployed a contract in a geth private network by using truffle. I can send transaction via my UI in html / nodejs but i am not able to do a call to retrieve informations. If I do, nothing ...
2
votes
1answer
261 views

Bootnode Discovery with external IPs instead of local ones

I would like to create a private testnet of mining nodes that external light clients can connect to. The caveat is that I'm doing so on Kubernetes (specifically via the excellent helm chart). So I can ...
3
votes
1answer
49 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 ...
-2
votes
0answers
5 views

How to enable a node with only the Whisper functions?

I need to enable nodes only to exchange WHISPER messages. Also, I intend to deploy it over IoT devices. So I'm looking for a realy minimal implementation of an Ethreum node. I believe it should still ...
0
votes
1answer
24 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
3answers
76 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
23 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
1answer
41 views

Where Can Find the Ethereum source code on Proof Of Stake

Looking to find the implementation of Ethereum Proof of Stake Source Code on GitHub.
0
votes
1answer
210 views

The geth account new and web3.eth.accounts.create

The geth account new and web3.eth.accounts.create. That both function/command are same are different.To create new account.
0
votes
1answer
84 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
53 views

connecting geth to web3.go 1.0 via websockets or HTTP

Is there anyThing similar to web3.js written in go that allows me to communicate with the geth client ?
1
vote
0answers
25 views

Error: gas required exceeds allowance (10209310) or always failing transaction

I'm newbie in ethereum and on my first lession I faced an issue that I can't solve: Hello.sol: pragma solidity ^0.6.0; contract HelloSol { uint savedValue; function setValue( uint newValue ...
0
votes
2answers
152 views

Solc complier error “TypeError: Cannot read property 'TestToken.sol' of undefined”

I set up a contract with three files referring to Token Factory. I make a test on remix online tool, they can be successfully compiled. when I'm tring to compile them by solc module in a .js file, ...
1
vote
1answer
120 views

How to call a contract function that alters blockchain state on geth console

It should be easy, but I'm having a hard time using a simple smart contract described in the Solidity language reference called SimpleStorage. It only as one attribute, a setter and a getter, and I'm ...
0
votes
2answers
458 views

ethereumjs-wallet/hdkey is no more in npm

how to generate multiple addresses from single mnemonic? var hdkey = require("ethereumjs-wallet/hdkey") var bip39 = require("bip39"); // You can generate a mnemonic seed with bip39 library var ...
0
votes
1answer
20 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
3answers
181 views

Error: Invalid JSON RPC response: “” from web3

I run: geth --rinkeby --rpc --rpcport=8545 --rpcaddr=192.168.1.37 It works in console: geth attach http://192.168.1.37:8545 > eth.syncing false > eth.accounts ["...
0
votes
0answers
11 views

Getting HTTP/1.1 403 Forbidden when i want to get account balance

Some months ago, I was able to get the balance of my account using this code (I run the code in Unity 2018 and get the code from tutorial in github. I modified some parts of the code). This is the ...

1
2 3 4 5
98