Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
14 views

How legacy transaction are handled after EIP1559 update?

After the EIP1559 transaction gas is mainly divided into base gas price and priority gas fees. But as we know EIP1559 is backward compatible so how legacy transaction ( they just have gas price field) ...
0
votes
0answers
6 views

How to add ERC1155 to this Smart Contract

so I have two smart contracts and I want to add erc1155 functionalities this is the first one: 1; name: NFT.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/...
0
votes
0answers
7 views

Is there any verified ERC1155

Hey so am looking for a verified well written ERC1155 Contract with EIP2981 for an NFT Marketplace
0
votes
0answers
5 views

go-ethereum ( geth ) how mining ether through binance pool

Guys does anyone know how to miner ethereum through the binance pool?, I'm using go-ethereum (geth), because I only have CPU's to mine, but I can't find any article teaching how to mine through a ...
0
votes
0answers
12 views

Getting notified after receiving eth from smart contract

I am wondering if there is a way to find out when my addresses are getting eth from smart contracts. To be more specific, I am using geth 1.10.9 syncmode = fast and I have over 10k addresses to track ...
0
votes
2answers
22 views

How to install a node to get a balance of addresses?

We need to install the ETH client in order to receive balances of different addresses using GetBalance (https://web3js.readthedocs.io/en/v1.2.11/web3-eth.html#getbalance). Please tell me, do we need ...
0
votes
0answers
10 views

Can GETH run quickly and be always up-to-date with an AWS c5 instance?

I've noticed that most people who are using AWS to run their ethereum node are using the i3 (or i3en) instance type for its high I/O performance with the attached SSD. For my particular use case, I ...
0
votes
0answers
16 views

How is EtherScan Built? [closed]

I am a dev and I really want to learn more about Ethereum development. So I want to build something similar to the EtherScan website for learning. Can anyone tell me how EtherScan does it? Do they run ...
0
votes
1answer
12 views

Private network desync

This is a similar to question to this one I have just setup 2 private nodes on AWS EC2 via geth, which are connected to each other, and have 1 "Hello World" smart contract already mined. ...
1
vote
0answers
10 views

Nodes running in archive mode cosumes different disk space?

I have 2 nodes, running in archive mode, both using Geth/v1.1.2-c4f93121-20210825/linux-amd64/go1.15.14. Both of them has finished syncing with the network (I checked using eth.syncing and it ...
0
votes
1answer
28 views

How to send USDC through geth CLI?

I had 100 USDC transferred to a local Ethereum wallet I control. It shows up as a valid token when I view it in Etherscan. I normally use geth CLI for all Ethereum transactions, but I'm not sure how ...
0
votes
0answers
15 views

get_new_entries() and txpool.inspect() both return empty objects

I'm currently trying to monitor pending transactions destinated to a certian address. What I was planning to do was getting the pending transaction pool by either using w3.geth.txpool.inspect() or w3....
0
votes
1answer
13 views

Does the timestamp matter for a new transaction? About same gasPrice TX order inside a mined block

I want to send a Transaction to follow a specific Transaction in the same block. Now I can guaranty my Transaction exactly been placed in the same Block. But there are a lots of other TXs between my ...
1
vote
0answers
15 views

bsc node lags behind the network

bsc full nodes often lags behind the network. it's freezes and then starts to catch up. both nodes are running on nvme. what the problem looks like: the node stops syncing while the network height ...
0
votes
0answers
8 views

Issue in deploying PublicResolver.sol from ens-contracts

I tried to deploy PublicResolver.sol on Rinkeby. I had to fix several SPDX license errors but still I am not able to deploy it because its constructor requires NameWrapper contract address, which cant ...
1
vote
1answer
23 views

flag provided but not defined

Am starting off in blockchain development using the book Mastering Blockchain A deep dive into distributed ledgers... Am using WSL. $geth version Geth Version: 1.10.9-stable Git Commit: ...
1
vote
1answer
20 views

ERC 721 - How to determine ownerOf a specific token_id

I am having some trouble determining the owner of a specific token_id. const fs = require('fs'); var jsonFile = "abi/ERC721.abi"; var abi = JSON.parse(fs.readFileSync(jsonFile)); const ...
0
votes
0answers
17 views

Trying to make an eip-1559 transaction

Im have a hard time trying to figure out how to change my code to make an eip-1559 txn. Everything I do always comes back 0 (Legacy). This is my code. const tx = await uniswap.swapExactETHForTokens( ...
0
votes
0answers
20 views

Help Solidity Smart Contract [closed]

Hello Everyone hope you having a good day! I want a smart contract with just one getter function which will fetch the user details from already deployed without giving the input parameters like ...
2
votes
2answers
70 views

how does optimistic rollup work?

I am mostly interested in why 7-day fraudulent proof checks exist. Let's say on L1, I got 10 ETH and I deposited it on L2 as WETH. Now, 10 ETH is locked on L1's bridge contract and 10 WETH is on L2 on ...
1
vote
1answer
31 views

How to recover public key using ecRecover in Python?

I am able to use ecRecover to verify the signer in Javascript, for example: const ecRecoverAddr = await window.ethereum.request({ method: "personal_ecRecover", params: [message, ...
0
votes
0answers
11 views

How is the account state updated on HD wallet transactions where the address are different everytime

I am implementing an HD wallet in ethereum (BIP-39 and BIP-44), so let's say I generated an account A with a private key PrK and public key PlK. From them I derive many keys and hence addresses Addrs-...
0
votes
1answer
20 views

Chainlink job not working with external bridge, it is giving an error "Error: UnprocessableEntityError"

I have created an external adapter and hosted it on AWS server as it required to get data from third part URL with authentication headers. I have also hosted a chainlink node and added this AWS ...
0
votes
1answer
108 views

Why am I getting "Error: unknown account" when trying to send ETH using eth.sendTransaction?

I have an ETH testnet set up using this docker-compose.yml file. When I try to send 1 wei from the "buffer" account 0x411167FeFecAD12Da17F9063143706C39528aa28 to the test account ...
0
votes
1answer
27 views

unable to input negative value in power for an int variable in remix

I want to input the following values to this function function rebase(uint256 epoch, int256 supplyDelta) epoch (5 minutes later) supplyDelta -0.000000000000001 I tried doing so in remix but got an ...
0
votes
0answers
27 views

How and which value to set for supplyDelta in the rebase function

This is my rebase contract https://testnet.bscscan.com/address/0xE6A61396361935231E6BC403Fc206Fa1A99E628F#contracts. I want to set a rebase time period of 4h but I don't know how to set the ...
0
votes
1answer
32 views

BEP-20 Token Transfer Error

I am unable to transfer test tokens from my address (say address A) to another address B. The steps I did were deploy and verify a rebase contract, all tokens were automatically sent to my address. ...
0
votes
0answers
12 views

Is there any good in-depth slides for explaining ethereum?

I am looking for in-depth slides that explain all concept of Ethereum such as p2p network, blockchain, blocks, transactions, virtual machine, Gas mechansim, accounts, smart contracts and dapps etc. ...
0
votes
0answers
7 views

txByPriceAndTime block sorting exceptions [duplicate]

As writen in GETH, transactions inside block is sorting by rule txByPriceAndTime, where if transactions have same price, they sorted by first come first serve. Most of blocks in BSC/ETH is working ...
0
votes
0answers
21 views

Connecting Metamask to local geth node RPC only works on Chrome but not Firefox

I'm trying to connect to my local geth node RPC from my Metamask in Firefox, but it always gives the following error under the "Chain ID" field: Could not fetch chain ID. Is your RPC URL ...
0
votes
0answers
8 views

How to make a new contract using remix with a function in which I want to get the user details from my already deployed contract on the blockchain

How to make a new smart contract using remix with a function in which I want to get the user details from my already deployed contract on the blockchain? Please be elaborate on the answer with some ...
0
votes
0answers
17 views

Can anybody tell whats wrong with my code

Can anybody tell whats wrong with my code. I am trying to call a function to get the user details from my already deployed contract and I am using interface for my new smart contract but still I am ...
0
votes
0answers
22 views

Is it possible to mint NFT (ERC-1155) using go-ethereum?

While web3.js provides fairly straightforward method to mint NFT, is it possible to mint NFT using go-ethereum? The system we have is using golang as primary programming language and we like to stick ...
0
votes
1answer
22 views

I am trying to call the other contract which is already deployed on the blockchain. But when I try compiling it with remix , it doesn't compile

I am trying to call the other contract which is already deployed on the blockchain. But when I try compiling it with remix , it doesn't compile contract Othersurround { function ...
0
votes
0answers
15 views

How do I call a function of a deployed smart contract using remix?

How do I call a function of a deployed smart contract using remix? How do I call a function of a deployed smart contract using remix? Here is the deployed contract with a call function having two ...
0
votes
1answer
19 views

How do I call a function of a deployed smart contract?

How do I call a function of a deployed smart contract? Here is the deployed contract with a call function having two input parameters - user address and email id and it returns the user details. How ...
0
votes
0answers
18 views

Fastest way to download Ethereum state with geth?

I want to do some experiments that require that I access Ethereum state db. I have a standard laptop with SSD drive. From what I've read, synchronizing in "fast" mode may be endless on a ...
0
votes
1answer
17 views

How do I hide specifically "private_key" from being viewed by everyone as everything is getting stored on the array publically including private_key

How do I hide specifically "private_key" from being viewed by everyone as everything is getting stored on the array publically including private_key? I want to display all the data like ...
0
votes
2answers
40 views

chainlink request to cancelChainlinkRequest

I have been on this to test how requests will be canceled. i go this error the has of the transaction here: https://testnet.bscscan.com/tx/...
0
votes
1answer
96 views

How can I create a local USDT testnet?

I want to create a local testnet on which I can move USDT (test coins) between wallets. I managed to create a ETH testnet inside Docker. In the docker-compose.yml below, the lines between # ETH ...
0
votes
1answer
17 views

How can I add function and array to already deployed contract on the main net

How can I add function and array to already deployed contract on the main net. //Already deployed contract struct User { address wallet_address; string userId; string ...
0
votes
0answers
18 views

Unable to connect to AWS Ethereum node via AWS Lambda (Python Web3)

After reading the documentation and searching online, I'm stuck with being able to connect and ensure I'm connected via my AWS Lambda function. Whenever I try to execute this specific function, I keep ...
0
votes
0answers
16 views

How to get a list of all registered user details like address, userId,firstname,last name,email id,private key that are registered through my dapp

How to get a list of all registered user details like address, userId,firstname,last name,email id,private key that are registered through my dapp. struct User { address wallet_address; ...
0
votes
0answers
69 views

Returned error: unknown account Web3.js on BSC using Metamask

I'm using Metamask for calling smart contract.I tried to call one of the smart contract payable method but I got this error "Returned error: unknown account".Everything was working fine, ...
0
votes
0answers
23 views

Server error local 0x-api

I tried to deploy local 0x-api. I ran geth on port 8546 and tested web3(I get the latest information correctly). Next, I put this ETHEREUM_RPC_URL in the field in .env, then I make the appropriate ...
0
votes
1answer
13 views

Hello, how do I normalize the value of ethereum and cryptocurrencies with decimal?

my problem is the decimal value of USDC is 6. The amount of 0.1 we enter turns into 100000. I want to return it with php so that's what I want. When I enter the number and decimal value in a method, ...
0
votes
2answers
44 views

Unexpected error calling ethereum contract using web3.js

Unexpected error calling ethereum contract using web3.js MyContract.methods.actual_balance("0xE8D.........").call({}) .then(r=>{ console.log(r) }).catch(err=>{ console.log(err) ...
0
votes
0answers
28 views

Error in installing Remix-ide: Missing script "build"?

I want to install remix-ide on ubuntu server v18.04. I use these commands: git clone https://github.com/ethereum/remix-ide.git cd remix-ide sudo apt install build-essential npm install npm rebuild npm ...
0
votes
0answers
11 views

Best Way to Estimate Gas, Flashbots [duplicate]

I am writing an arbitrage bot that leverages the Flashbots bundle. For those who don't know, if you submit transaction through flashbots if the transaction revert, then you don't pay any gas. My ...
0
votes
0answers
7 views

How to Index Uniswap Token Price with local Indexer ( with Geth or True Blocks, Chifra)

How can I collect token price data from Uniswap with a local indexer (True Blocks) or Geth? is it even possible without running a node, or a light node? I am new to this and I don't really what to do, ...

1
2 3 4 5
114