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

Storing and retrieving data from a transaction

I have a private blockchain using PoA and would like to store data in the data field of a transaction. To my understanding, the data field has a 32-byte limit and needs to be hex encoded. Is this ...
0
votes
0answers
24 views

loadScript returns undefined

I am using Ubuntu 20.04 for creating a private ethereum blockchain using geth. I am required to load the "Simple.abi" script present inside home/contract. But when I give the file-path in the ...
1
vote
0answers
33 views

go-ethereum: Return data from contract function

I have a smart contract written in solidity. I deployed the contract to my Ganache network and I can interact with it via go-ethereum using stubs generated by abigen. My function returns a uint256, ...
0
votes
1answer
35 views

problem help me gas * price + value

I've seen many topics, but I've yet not solved my problem. Please, help me! var EthereumTx=require('ethereumjs-tx').Transaction const Web3=require('web3') const web3 = new Web3('https://rinkeby....
0
votes
0answers
13 views

can sign derived wallet transactions with main's wallet private key of seed phrase?

I would like to sign a transaction from a wallet which is derived from a seed, and sign it, with it's parent first address and private key derived from the seed, can I sign any tx of any derived ...
2
votes
1answer
33 views

What you mean by Off-Chain in Ethereum Blockchain? can i use geth as off-chain in DApp?

I have read several articles of off-chain definition and come to know that they are use for scale the ethereum blockchain. but my question is what is actually mean by off-chain word in ethereum ...
0
votes
1answer
42 views

How to connect to my private ethereum network using web3?

I have setup my own private eth network. I wanted to connect to this. So first I have run geth --datadir ./tolotolo --networkid 1115 --port 30304 console 2>>myEth.log It generated geth.ipc ...
2
votes
0answers
25 views

How to determine the uniqueness of an internal transaction

How to determine the uniqueness of an internal transaction Example is this transaction: https://rinkeby.etherscan.io/tx/0xc756517a69239bddffe3e0cb07eba98d3ad0fae1b44fc936a0119dbaf7008942#internal ...
0
votes
1answer
49 views

Verifying ERC20 Contract that uses OpenZeppelin's library contracts

I deployed an ERC-20 Token contract and would like to now verify it on etherscan.io My contract utilizes Open-Zeppelin's library of contracts - which means it's importing one of their contracts into ...
0
votes
0answers
10 views

Fail Transaction Using Metamask And Create Smart Contract Using Geth Private Blockchain

I have an error when building a private blockchain on my computer. The code that I run is like this (Simply my concept make it without mining and only focus on smart contract): genesis.json file { ...
0
votes
0answers
17 views

Getting suffix of blockchain domain

I have a program that can get me the first part of registered blockchain domains, but not the suffix (.eth, .zil, etc.) and am not sure how to associate suffixes with names. I know that in some cases, ...
0
votes
0answers
12 views

What is good peer etiquette for being a light node?

I just started dabbling in running my own light node and it seems like the biggest challenge is finding peers. rfikki on GitHub posts these peer lists (https://gist.github.com/rfikki/...
1
vote
1answer
46 views

Gas price data from GETH

I am able to get gas price data as follows from some oracles (i.e., ethgasstation.info, etherscan.io): { "fast":50.0, "fastest":200.0, "safeLow":10.0, "average":20.0, "block_time":13....
1
vote
1answer
56 views

Whats the best way to sign and send a transaction?

Hey I want to send a transaction that has a message embedded in it. I want the most secure way to unlock the personal account. I have full node GETH installed and am using web3.I have a nodejs script ...
0
votes
1answer
47 views

Can we upload Keystore file to Metamask?

I created a geth Full Node. Through this I created a new account and a Keystore file was created. Can I import this Keystore file to Metamask so that I can transfer funds?
0
votes
1answer
10 views

Pushing process to background causes high kswapd0

I have a cpu-intensive process running on a raspberry pi that's executed by running a nodejs file. Running the first command (below) and then running the file on another tab works just fine. However ...
0
votes
0answers
18 views

What does geth need RAM for on a non-mining node?

I was running a private Ethereum chain on a couple of non-mining Raspberry Pis and encountered quite high and increasing RAM usage. I understand that there was a memory leak with geth versions before ...
1
vote
0answers
32 views

geth’s “debug_traceTransaction” vs parity's “trace_replayTransaction”

Is it at all possible to transform geth’s debug_traceTransaction trace into something that looks like what you get from parity's trace_replayTransaction? Parity’s trace module is extraordinarily ...
0
votes
0answers
42 views

geth mining with a single node on a private test network not working on Mac

I am trying to set up a simple test network with Go Ethereum starting with just one node. I tried on two MacBooks (macOS High Sierra 10.13.6), one with 4GB RAM and one with 8GB RAM and on an AWS EC2 ...
0
votes
0answers
26 views

Getting Blockchain Domains From Transaction Hashes

I am compiling a list of some blockchain domains (.eth, .crypto, etc.) and was wondering what would be the best approach. My strategy is to take something like this: https://etherscan.io/address/...
0
votes
0answers
22 views

indexer for Ethereum wallet-contract transactions history?

I Would like to have my own server with a indexer for a ethereum full node using this repo https://github.com/Adamant-im/ETH-transactions-storage script, to have all wallet,contract balance and it's ...
0
votes
0answers
12 views

fast sync mode node does not work?

I already have my light nodes working but in fast sync mode does not work the version of geth 1.9.3, I got these settings Geth Version: 1.9.13-stable Architecture: amd64 Protocol Versions: [65 64 ...
0
votes
1answer
16 views

1-To-M struct relationship advice *DApp Development

Let's assume that I'm building a property investment DApp. I have two entities involved in the DApp. Those two entities are 1) providers and 2) investors. Right now, a provider is able to offer 1 ...
0
votes
0answers
22 views

TransferFrom - User Experience Examples

Can someone provide some DApp examples where the transferFrom pattern has been implemented and does an at least 'decent' job of providing a good user experience. If not, what is then a convenient way ...
0
votes
1answer
44 views

How other party can access my contract?

I am running private ethereum blockchain. As we know smart contract is used for agreements between non-trusting parties. Now, I am wondering how the other party can access/see my smart contract? ...
0
votes
0answers
41 views

Truffle Error: invalid argument 0: hex string without 0x prefix

I'm trying to deploy and test the smart contracts on the Goerli network using Truffle. While migrating getting below error. Contract: Simple Storage Test suite Simple Storage Set ...
0
votes
1answer
29 views

light node can perform any operation what fast and full sync mode do, exception getTransationreceipt?

I need to send ethereum between wallets or interact with a token on the ethereum network can a light node has a constraint to do that,it can not perform any task as a full or fast sync mode node, I ...
0
votes
1answer
49 views

Running geth in light node?

I would like to run light nodes using geth, but I dont what version of geth is stable to that kind of node or even a sync mode fast node. thanks a lot.
1
vote
1answer
20 views

Isn't the blockchain size going to be a huge problem in the future? [duplicate]

At the moment the blockchain is already quite large. And since the main idea behind the blockchain technology is to get away from services that provide the information and rather have the information ...
0
votes
0answers
15 views

Does creating account with geth command “geth account new” make a new key store holder?

There are multiple ways of creating a ethereum account through geth. geth account new newAcc, _ := am.NewAccount("Creation password"); by importing import "github.com/ethereum/go-ethereum/accounts" ...
4
votes
1answer
47 views

Why is Ethereum licensed under the LGPLv3 license?

Simple question, which I cannot answer myself. Why Ethereum have an LGPLv3 license? Bitcoin has MIT license. Thank you.
1
vote
1answer
30 views

Do other blockchain have gas concepts? [closed]

I understand that Ethereum have gas mechanism to avoid infinite loop and network abuse, but I was wondering whether other blockchain platforms also have gas concepts? Say Cardano, Hyperledger,...
1
vote
0answers
41 views

Geth server syncs itself very slow on SSD storage

This is the second time I've lunched a Geth server with full mode on a server with the resources below: 4Core CPU 16GB RAM 400GB SSD But server keeps staying arount half of highestBlock and its ...
0
votes
0answers
11 views

how to sync a node from specific node or ip

I would like to sync a ethereum node but I got a problem i'm trying to sync it as light client but: hub=trezor vendor=21324 failcount=3 err="failed to initialize libusb: libusb: unknown error [code -...
0
votes
1answer
30 views

Get latest block info with gas price, block time etc., from etherscan.io

I am trying to collect information such as, 'fast': 140, 'fastest': 165, 'safeLow': 100, 'average': 120, 'block_time': 8.875, 'blockNum': 10021935, 'speed': 0.8993211072506393,....etc. on the latest ...
0
votes
0answers
45 views

How to config geth node to get ERC-20 tokens balances

I'm trying to tune my geth node to get ERC-20 tokens balances, but y API call always returns {'jsonrpc': '2.0', 'id': 1, 'result': '0x'} My geth node version: instance=Geth/v1.9.13-stable-cbc4ac26/...
0
votes
1answer
17 views

Is it possible to initiate Geth server from a specific block instead of genesis block?

I tried setting up Geth servers in full node different times, and all of them are always behind half of total max block. So, they cannot be synced easily even after weeks. I would like to know can I ...
0
votes
1answer
21 views

Ganache, Truffle, Metamask, and Geth [closed]

Can someone please explain the uses of these things and how these things are different or similar to each other, and how and when they can be used interchangeably?
0
votes
2answers
44 views

Arrays copy memory in Solidity

I have this simple code: function restart() public returns (uint256[] ) { uint256[] memory result = new uint256[](5); result[0] = 10; uint256[] memory result1 = new uint256[](5); ...
0
votes
0answers
14 views

Arrays copy memory in Solidity

I have this simple code: uint256[] memory result = new uint256[](5); result[0] = 10; uint256[] memory result1 = new uint256[](5); result1 = result; result1[1] = 20; return result; ...
1
vote
0answers
21 views

Geth stops working after being fully synced

I have a Geth server in full mode. It was synced fully and I was using it normally for weeks. Today, I wanted to check the synchronization status, so I used geth attach command to enter to the Geth ...
0
votes
0answers
23 views

What does “Time” in the Geth VM Trace Transaction refer to?

I'm new to Ethereum world, and I need some declaration, I used "Rinkeby network" and just found Geth VM Trace Transaction { "type": "CALL", "from": "0x6f1e5fc933898859686a4d39f4430316be589f5e", ...
0
votes
1answer
42 views

Number of state entries needed before geth node is synced up with Ropsten

I am currently syncing a Geth node with the Ropsten network. Currently the download in the terminal show a neverending stream of Imported new state entries. I understand that I have to wait for all of ...
0
votes
0answers
14 views

How can I get all updates for a given transaction hash via websockets?

Given an Ethereum public key, "0x7B10c5AaFa65B8AEd953bE6D593D3D29391592D7", how can I get all available data for transactions sent from the afore mentioned public key after they have been included in ...
0
votes
0answers
9 views

How to duplicate a Geth server?

I have a Geth server which is fully synced, but the second server I have lunched cannot being synced after 2 weeks! I don't know why is this happening, but I decided to test another way. I setup a new ...
0
votes
0answers
14 views

Can I check whether any deployed contract has implemented some particular interface or not?

My concern is whether I can do interface detection with my own interface,,, Like suppose, i have implemented some interface say loyalty interface in my one contract and I have deployed that contract ,...
1
vote
1answer
54 views

can anyone explain why call, delegateCall, staticCall functions in solidity are called low level functions?

As i have read at many resources, that these functions are low level functions. I want to know, should i use these methods to interact with already deployed contracts or not ?
0
votes
0answers
15 views

Geth returns tx hash but blockchain

I have a Geth server on light mode, and implemented sending transactions based on web3.php project. Everything works well, except sending transactions. The code I am using sends from, to, and value ...
0
votes
3answers
40 views

Can i know by any method whether the particular address is contract address or simple ethereum address?

Here is the problem I am facing. I am calling some function of already deployed contract using its contract address. Below are the lines of code :- function registerYourBrand(string memory brand, ...
0
votes
1answer
30 views

Can I change state of mapping variable in deployed contract from another contract?

I am calling addCoin and subCoin function of my AirToken contract and Hotel contract. This is function defination of addCoin and subCoin in AirToken contract and Hotel contract function addCoin(...