Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
9 views

Firewall blocks interactions with geth peers and it is not clear how to fix it

Input: geth on port 30303 port 30303 forwarding is enabled on router uPnP is disabled on router UFW firewall is enabled with the following rules: $ sudo ufw status verbose ...
0
votes
0answers
12 views

Impersonating accounts on a forked Ethereum main net using Hardhat

I used the example from the Hardhat docs to impersonate an account on a forked network: await hre.network.provider.request({ method: "hardhat_impersonateAccount", params: ["0x...."]...
2
votes
0answers
18 views

Transforming random number into normal distrubution

I am looking to transform a random number into a normal distribution between 1-20. I have been looking to implement the box muller transformation to do so. But can someone point me an easy way to do ...
1
vote
1answer
14 views

message: 'invalid argument 0: json: cannot unmarshal hex string without 0x prefix into Go struct field SendTxArgs.value of type *hexutil.Big'

I am using a JSON RPC request and source code is as follows: var options ={ url: "http://127.0.0.1:8545", method: "POST", headers: {"Content-Type":"...
0
votes
0answers
11 views

Geth getPendingTransactions and subcribe pendingTransactions return nothing

I have installed geth on my server and I think it's fully synced but I can't get any pending transactions using either web3.eth.subscribe('pendingTransactions') or web3.eth.getPendingTransactions() // ...
0
votes
1answer
22 views

whether the value stored in levedb in Ethereum can be changed? [closed]

I can store some key-value pairs through smart contracts in Ethereum, and this key-value pair will be stored in levelDB. But why can I still modify this key-value pair? In my opinion, the data stored ...
0
votes
0answers
8 views

Ethereum validator voting [closed]

How does voting work exactly in Ethereum? While reading the white paper and some blog entries it repeatedly says validators "vote" on blocks. But how does voting work in a decentralized ...
0
votes
0answers
10 views

How to get transaction Status and data regarding that transaction in web3js?

I have a Dapp where user can buy and send ERC20 token whose bussiness login written in Smart contract..Now when someone buy the token, how do I know in web3 that how much token they've bought and what ...
0
votes
0answers
19 views

Resending transactions with personal_sendtransaction [closed]

I am using the function "personal_sendtransaction" in the personal namespace of geth. If the tx gets stuck I need to resend the same transaction with a higher gas. How can I do this inside ...
1
vote
1answer
16 views

OpenZeppelin balanceOf(address) function Vs Mapping

The OpenZeppelin ERC-721 library has a function called balanceOf(address owner), which enables one to know how many tokens an address owns. Furthermore, one can also use a mapping in order to keep ...
1
vote
0answers
11 views

Does ETH store a block tree (all connecting blocks) or only active chain?

Specifically I am interested in core-geth repository. Does it store a Block Tree (thus on single height it may store multiple blocks), or it stores only single (active) Chain (thus, on single height ...
0
votes
1answer
19 views

Best Practices for Verifying Ownership of an NFT ERC-721 Token

I am developing a Smart Contract (SC) and a front-end Dapp which will be used to sell some NFT ERC-721 tokens. When a user/address buys one of the NFT tokens, the token will be minted to his benefit ...
0
votes
0answers
7 views

Blockchain & Solidity : Could you someone explain me what function entrySet is for?

I found this code online.It's about notorization of some document. I need to understand this code real quick. So could you tell me what function entrySet(bytes32 _checksum) do? pragma solidity ^0.5.0; ...
1
vote
0answers
30 views

Failure to call 1inch getExpectedReturn function from the Solidity contract

I am trying to test 1inch getExpectedReturn function from my Solidity contract. I deploy my contract on the Mainnet forked with Ganache via Remix. The entire contract is pretty simple and looks as ...
0
votes
0answers
14 views

Why is my ether balance 0 in geth after complete sync

I setup geth on clouding server 2 weeks ago and it was synchronized already. And I deposit some eth to my account. By Etherscan, I can see my balance but web3.eth.getBalance always return 0. I create ...
0
votes
0answers
14 views

Can I use a separate pc to run a full eth node and connect to it?

Since running a light node doesn't work (no peers connecting) and running a full node on my pc takes up basically all the RAM while syncing I've decided to run a full node on my old laptop instead. ...
1
vote
0answers
13 views

How to convert geth arhive to full node without loosing intermediate state

We have a geth node that runs with --gcmode "archive". However, the recent growth of disk space is unsustainable and we want to change this to a full node. If I stop the node and just re-run ...
0
votes
0answers
10 views

can a node mine without download all of the blocks

if there is a node which doesn't have enough disk space, can i mine without download all of the blocks? i wonder if i can mine ,with just downloading the latest states of ethereum? but i'm not sure ...
1
vote
1answer
24 views

What do you need to enter in <IPC_LOCATION> of geth attach <IPC LOCATION>

What do you need to enter in <IPC_LOCATION> of geth attach thank you
0
votes
0answers
15 views

Geth Setup: enabling JSON RPC endpoint with --http

I'm a beginner with blockchain and only starting to read programming textbooks. So a newbie to computer science as well. Right now I'm playing around with my Windows desktop though will be switching ...
0
votes
1answer
12 views

Getting 0 holder on Etherscan testnet despite having token transactions through DAPP

Recently, I've created a token and it is pure ERC-20 Compliant...I've sent some token to another address but when I see it on rinkeby testnet etherscan web page it shows 0 holder despite having the ...
0
votes
0answers
26 views

How to see pending transactions in local geth node?

I'm looking for run a local node and get pending transactions Since 3 days runing, no pending transactions appear > txpool.status { pending: 0, queued: 0 } And I use this command line (last ...
1
vote
1answer
27 views

Best Practices for Recommendation regarding Gas Price & Limit in a Dapp

I am developing a Dapp. I was wondering what are the best practices for user recommendation regarding gas price and limit in such a Dapp? Should I be using the following methods in my contract, or ...
0
votes
0answers
18 views

How to Host and deploy DAPP? [closed]

I have made DAPP successfully using Solidity as a primary backend language and HTML for frontend.. Now I want to deploy it. So anyone can access it permanently all over the world..But I can't able to ...
0
votes
0answers
21 views

Parameter to improve geth performances?

I have setup a local node using geth and fast sync. I use it in combination of ganache to simulate transaction after forking from mainnet. However, I am not satisfied with the performance. Only a few ...
1
vote
0answers
9 views

Geth Puppeth set Seaing Profit to 0

I am creating a private blockchain network using GoEthereum. I am using Clique (to get the PoA protocol). Since I have predefined sealers/miners, I do not want to set any mining profit for them. But ...
1
vote
1answer
18 views

Extracting blockchain state at a specific block number to interact with deployed contracts

I want to extract main net state at a specific block number using geth or parity. Then using the extracted state I want to interact with contracts deployed during that time using ethers js. Can ...
0
votes
0answers
10 views

How to add ethereum node to already existing blockchain without knowing genesis file?

Target : i want to add new node to already running blockchain. Correct, if i am wrong for adding node to network. two node's should have same genesis block. if genesis block have different values then ...
0
votes
2answers
25 views

Resolve solidity compiler error

I am trying to create a smart contract and I am using ganache, visual studio code and truffle for that purpose. The versions installed in my windows system are: Truffle v5.1.49, Solidity v0.5.16 (solc-...
1
vote
1answer
12 views

What is the easiest way to interact with your contract in a development environment?

Is there some form of toolkit which generates a console similar to the one on etherscan, where you can call functions that are defined in your contracts ABI? It seems quite painful having to write the ...
0
votes
0answers
31 views

Error: Contract not deployed after cloning private geth network from one server to another

Steps to reproduce: Private geth network is running on server1. Deploy contract using truffle and make a few transactions. Stop geth n/w of server1 and copy its entire directory (accounts.txt, boot....
0
votes
2answers
53 views

Solidity Split Comma-Delimited String into Individual words

Since Solidity functions can't accept String Arrays as arguments, I'm trying instead to pass in a long comma-delimited string, and then convert it to an array of strings on the fly. I'm close - but ...
0
votes
0answers
19 views

Solidity - Setting the length of an EnumerableSet UintSet

Is it possible to pre-set the length of the set of an EnumerableSet.UintSet type? For instance, if I declare this mapping: mapping (address => EnumerableSet.UintSet) private agentTickets; and then ...
0
votes
0answers
19 views

How can I have no gas fees in a private PoA network while avoiding spam attacks and the halting problem?

Complete noob here. I'm developing a dApp that functions on top of a private clique PoA blockchain (using geth). The project should be viable in a production environment and allow nodes to transact ...
-2
votes
0answers
31 views

how add value to eth.accounts[0]? [closed]

i created a new account in private chain. But the new account value is zero. How add value to the account? Thank you very much. i install web3.js 0.20.6. geth version: 1.9.23. when i use eth....
0
votes
1answer
35 views

Invalid implicit conversion from uint256 to bytes32 requested

I am trying to run someone else's code from GitHub and I encounter this issue. It said that Invalid implicit conversion from uint256 to bytes32 requested. Please have a look on this code. function ...
2
votes
0answers
75 views

Geth keep truncating ancient chain + rewind blockchain ? Why ? 😥

Maybe it's a newbe question but I notice that when I restart Geth it always "rewind blockchain" ? Why is this ? Here is example output: INFO [11-08|22:02:47.152] Starting Geth on Ethereum ...
0
votes
0answers
6 views

Issues with autogenerated go file while using abigen

I have a simple sol file message.sol pragma solidity >=0.5.10; contract Message { string public message; constructor(string memory initMessage) public { message = initMessage; ...
0
votes
1answer
29 views

How to remove this ParserError of contract in solidity langauge. I am using remix ide

pragma experimental ABIEncoderV2; pragma solidity >=0.4.18; contract Record { struct MedRecord { string password; string name; address patient; address[] ...
0
votes
1answer
21 views

Why calling to methods from Web3 using call() give errors although set functions with send() work

I'm new to solidity and I'm just testing some examples from tutorials. The problem is that I can't call get functions although I can call set function. I'm using Remix IDE for smart contract, Geth for ...
0
votes
0answers
23 views

Running Ethereum Node for pending tx - beginner questions

I have been getting into blockchain development/solidity and started a project where I want to scan all pending tx for specific addresses. I am using python and web3.py and started by using Infura and ...
1
vote
1answer
42 views

Deploy from Remix to Quorum using password? “authentication needed: password or unlock”

I can SSH into the box that is running Quorum: run geth with the flag --allow-insecure-unlock geth attach new-node-1/geth.ipc personal.unlockAccount(eth.accounts[0]) I'm interested in knowing if I ...
0
votes
1answer
29 views

How to concatenate uint to address in solidity?

I would like to concatenate an Ethereum address to an uint in Solidity. How can I do that?
1
vote
0answers
28 views

Understanding eth_estimateGas with regards to gas price, and current mempool

Does anyone have a detailed understanding of how eth_estimateGas works with regards to gasPrice and the current mempool state? I have historically seen some really odd behavior when using ...
0
votes
0answers
23 views

geth javascript console: web3.eth.subscribe ==> “Object has no member 'subscribe'”

I must be missing something -- I am trying to use the web3.eth.subscribe() function in my geth node's javascript console and there is no subscribe function. Welcome to the Geth JavaScript console! ...
0
votes
0answers
15 views

Is it possible to attach an extension to a native code in an Ethereum node?

I need to execute some functions that are really difficult to write in Solidity, but there are plenty of libs already ready to use (computation of crypto algorithms). Is it possible to create a kind ...
0
votes
0answers
18 views

Geth remote central server with local keystores

We are running multiple wallets and each wallet is connected to local geth. Because of high usage we created one central geth and we connected our wallets to this remote geth. Our issue here is that ...
0
votes
1answer
19 views

Is the value of the privateFor param accesible in the contract?

Transaction params for quorum can contain a privateFor param { "jsonrpc":"2.0", "method":"eth_sendTransaction", "params":[ { ...
0
votes
1answer
32 views

A new block sealed in 6 hour on average in my POA private chain using AWS EC2. Why?How do I increase the frequency?

As title: My AWS EC2 spec. is : 1 vCPUs, 2.5 GHz, -, 1 GB memory, 30GB SSD ,a free testing VM. My init command is: geth --datadir "." --networkid 15 init "./CustomGenesis.json" ...
0
votes
1answer
85 views

ERC721 Token Transfers and Approvals

ORIGINAL POST (EDITED POST BELOW): I keep getting the following error in my ERC721 Contract: “ERC721: transfer caller is not owner nor approved” This happens when I’m trying to buy a Token that has ...

1
2 3 4 5
104