All Questions
6,660 questions
0
votes
1
answer
91
views
How to decode internal transaction in mempool
i'm researching on how mev works. I know that they are watching all pending transactions, then define function that is swap on dex and calculate amount to do sandwitch. However, when user do a swap, ...
2
votes
0
answers
34
views
How does an Ethereum PoS node software resolve social consensus?
As a new user, when I join the Ethereum network and want to know what the consensus chain is, I have to rely on social consensus, right — like for example I get two completely different states and ...
2
votes
0
answers
69
views
Go-ethereum full node uses 32 GB memory
My Go-ethereum full node constantly uses 98% of the available 32 GB RAM on my Windows computer, is this normal? Go-ethereum specs says that you only need 16 GB. Should I buy more memory or is Go-...
0
votes
3
answers
341
views
Smart contract holds USDT
My smart contract holds some USDT token and now if someone knows my Contract address can he/she transfer that USDT to his/her address.
Just to clarify the USDT contract has transferfrom function which ...
1
vote
1
answer
997
views
EvmError: Revert Foundry
Can anyone help me with a foundry test?
I don't know the functions when called from the test are working but for some reason, it's not when I'm importing the contract from the src the test reverting.
...
0
votes
1
answer
32
views
Creating a token for my personal dapp use only
I want to store the money in a smart contract from my user as long the user wants and pay back the user once he asks i will not charge for this service
if I store ether in it and the value of Ethereum ...
0
votes
1
answer
129
views
How can I fetch the current dollar price of BNB in a Solidity smart contract?
How can I fetch the current dollar price of BNB in a Solidity smart contract? Are there any recommended APIs or secure, decentralized methodologies for this?Is there a way to fetch the dollar price ...
1
vote
1
answer
59
views
Simpler way of removing bad peers in go-ethereum?
I daily have to remove 5-15 peers that's constantly delivering stale data. I have to manually remove them with admin.removepeer() by using their enode address. Unfortunately, the go-ethereum logs only ...
0
votes
2
answers
103
views
Object has no member 'call' when reading smart contract in geth console
I'm following the Storage contract example from the Geth site (https://geth.ethereum.org/docs/interacting-with-geth/javascript-console-contracts)
I am unable to call a 'retrieve' function on the ...
0
votes
1
answer
246
views
Error (9322): No matching declaration found after argument-dependent lookup
Here is the file which i try to run test through foundry.
//Imports
import "forge-std/Test.sol";
import {Portal} from "../src/Portal.sol";
import {IERC20} from "@openzeppelin/...
1
vote
0
answers
99
views
API to get MEV reward recipient from Beacon Chain
Is there any API which I can reliably use to get the MEV reward recipient and block reward for a particular block number as shown on the beacon chain page?
I can use the flashbots relay API but this ...
1
vote
1
answer
134
views
execution reverted despite not writing to the blockchain
I am attempting to read the value of a token on a DEX. When I run the code I get execution reverted despite not writing to the blockchain. Code is reproducible with your own Infura api key.
Any ideas ...
1
vote
0
answers
117
views
Ethereum network on TCP vs QUIC protocol (UDP-based) on data transferring
I'm new to the Geth p2p network (devp2p). Devp2p uses both TCP and UDP to run it's networking protocol. The TCP is for the data transferring between each node and the UDP is for nodes discovery. I ...
0
votes
1
answer
306
views
Geth transactions not broadcast and stuck in pending state
Setup three Geth private network nodes(Clique) via docker container. They are deployed on three different VMs. Among 3 nodes, there is a miner node to mine the block, a RPC node to accept RPC request, ...
0
votes
1
answer
92
views
How to discover enode addresses on local network (in private test network)
how i can broadcast a enode address to another physical machine on the same network, in geth
take for example, this as my enode address:
"enode://...
1
vote
0
answers
19
views
Tool for finding from which block Geth is in archive mode?
e.g. I can run geth in archive mode after the 17.000.000 block. I know I can find a wallet address and run getStorageAt manually on multiple blocks to find if my node was archive or not.
But is there ...
0
votes
1
answer
60
views
Verify signature result return 0x
The return signature result from signMessage method obtained is 0x. How do we handle 0x signer result from frontend?
const signer = new ethers.providers.Web3Provider(provider).getSigner();
try {
...
1
vote
1
answer
105
views
Geth Archiver node configuration
I am interested in running a Geth archiver node and I noticed in the offical documentation that in order to do that states:
Archive nodes are created by configuring Geth's garbage collection so that ...
2
votes
0
answers
267
views
web3.exceptions.BadFunctionCallOutput: Could not transact with/call contract function
I deployed simple helloworld code and want to call contract function. It must return "Hello World!"
My contract is
pragma solidity >=0.5.16;
contract HelloWorld {
...
1
vote
0
answers
51
views
How to check if a certain hard fork is enabled in your network?
We are running a private PoW (Proof of Work) network on geth
I would like to know, how can i determine if a certain hard fork is enabled on my network ?
For instance, how will i check if the London ...
1
vote
1
answer
38
views
Is Geth safe to install?
I was wondering is Geth is safe to install, after I am unable to verify the PGP signatures of the developers.
I import the PGP keys into my keyring on my PC, but when I proceed to check the signature ...
1
vote
0
answers
269
views
cannot use array as type ptr as argument
I am using Go-Ethereum and I have the following error:
abi: cannot use array as type ptr as argument
But it does not make any since I don't pass an array.
The arguments to routerABI.Pack function ...
1
vote
0
answers
13
views
What's difference between filter for hashes and filter for full transactions?
I'am trying to understand the main difference between a filter for hashes and a filter for full transactions. Can anyone explain me this please?
1
vote
1
answer
48
views
Does geth or parity in development chain mode support methods like hardhat_setSorageAt or is there a way to manipulate EOA?
I wan’t to create more sustainable test network for my develop project. Hardhat node gets slowed down with the time and even crashes.
I am wondering is there a modified geth rpc client supporting some ...
3
votes
0
answers
103
views
Cannot send transaction to smart contract, 'unknown account' even with account added to wallet
I am trying to send a transaction that updates the state of a smart contract. I have locally deployed a ethereum network using Geth and three VM.
Here is my JS code:
import { Web3 } from 'web3';
...
0
votes
1
answer
40
views
local initialization
I was working in this solidity code. here is the code sample from my project
interface customeInterface {
function token0() external view returns (address);
function token1() external view ...
0
votes
1
answer
195
views
can eth_call simulate approve and transfer?
I have a solidity contract that contains a logic to approve and transfer balance, swap and flashloan. But when i use eth_call to call my function that perform swap, it reverts.
I tried by ...
0
votes
1
answer
189
views
how can i decode this transactions and see what it contain?
I'm interested in decoding the information within this transaction, which can be found at the following link:
https://etherscan.io/tx/0x1013929251687ff7f6a7e2e0c7e3caae6fd93a2342dd5ad9793ff33c5802269f
...
0
votes
0
answers
45
views
Securing Access to User Balances in Ethereum Smart Contract
I'm working on a Mobile app where users sign up, and they are assigned public and private keys. However, these keys are never actually shared with the users but are stored in the database. I want to ...
0
votes
1
answer
67
views
can eth_call() make this?
I have a contract and inside the contract there is a non-payable function that can call externally. this function do some analysis,and calls other payable function than can make real transaction using ...
0
votes
1
answer
163
views
How to trace transactions without sending them to the network?
I have made several transactions and would like to test/trace them without waiting for the miner to generate a block. And without even sending them to the network without testing. How can this be do ...
1
vote
0
answers
540
views
How to run a PoS private network with geth & lighthouse?
So far for testing contracts, transactions and other dApp experiments
I had worked with pre-established testnets (Rinkeby, Goerli etc)
now i am tasked with deploying a private PoS network based on ...
0
votes
1
answer
152
views
How to make contract transactions with Web3.py
I am getting error while deploying smart contracts with web3.py. The error says "web3.exceptions.ContractLogicError: execution reverted: VM Exception while processing transaction: invalid opcode&...
0
votes
1
answer
176
views
No commission comes from buying and selling on the Goerli network
Deployed the contract on the Goerli testnet via Remix. Added liquidity with the openTrading function. I buy tokens from another wallet through Uniswap, the purchase is successful, but the commission ...
0
votes
1
answer
269
views
Sign_transaction and send_raw_transaction error in Web3.py
I would like to sign_transaction and send raw transaction with custom transaction fields. But I could not do it. Any help will be appreciated.
Thanks
0
votes
1
answer
57
views
depolying system contracts for new evm blockchain
i was trying to fork a dpos evm blockchain , how to deploy system contracts for dpos and slash and get the "code" data in genesis file as below ?
"alloc": {
"...
1
vote
0
answers
25
views
Good extensions for both Foundry & Hardhat
Hello i'am looking for good vscode extension for both foundry & hardhat. Thank you for your feedback !
1
vote
0
answers
33
views
Getting `Fatal: Option "nodekey": invalid character '"' at end of key file` when trying `geth --nodekey /path/file`
I generated a key-pair with geth account new --keystore
and now I'm trying to attach it to a light node with geth --nodekey,
but I'm getting the error Fatal: Option "nodekey": invalid ...
1
vote
1
answer
53
views
how to revert transaction excuted by low level call
Hello ethereum community. I'm experimenting with low level calls and i want to revert the transaction made by low level call, if i didn't get the desired result. Is it possible?
(bool success, ) = ...
0
votes
3
answers
559
views
Despite calculation I get contract creation code storage out of gas
My smart contract is deployed on https://sepolia.etherscan.io/tx/0x1b1742a3ff2ac160d5f245ab91828fcc56a803cb3826b6cbdb9f3cb2f293ba66
Once deployed I get contract creation code storage out of gas error
...
0
votes
1
answer
17
views
how to chech the address that buys the highest amount on a contract
What is the process for identifying the address that has made the largest purchase amount within a specific contract?"
1
vote
1
answer
216
views
Why Golang was chosen to implement ethereum protocol?
I know there are many implementations of the Ethereum protocol, i.e. the first implementation in Python, or other implementations using C++, C#, and Java. As go-ethereum has gained lots of attention ...
1
vote
0
answers
114
views
Best way to get validator address/fee recipient address for a block
Is there any other way to get the proposer fee recipient address other than using flashbots relay API? Relay API isn't thorough and for certain blocks, you can miss out on getting the proposer fee ...
0
votes
2
answers
62
views
Deploying contracts at same address
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/*
Let's say Alice can see the code of Foo and Bar but not Mal.
It is obvious to Alice that Foo.callBar() executes the code inside Bar.log().
...
1
vote
1
answer
99
views
Full node is missing transactions
I am running a full node (geth + lighthouse) on mainet for a few months. In a random test i found that my the geth client did not heard of some transactions (i took random blocks from Etherscan, and ...
0
votes
1
answer
52
views
Mismatch in `accessList` between Geth and Nethermind
Access Lists were introduced in https://eips.ethereum.org/EIPS/eip-2930, and one of the design decisions was to support duplicates "because it maximizes simplicity, avoiding questions of what to ...
0
votes
0
answers
83
views
approve spender to swap
i'm trying to swap using 1inch aggregator api and when i try to swap, it says
"Not enough allowance. Amount: 4600000000000000. Allowance: 0. Spender: 0x1111111254eeb25477b68fb85ed929f73a960582&...
1
vote
0
answers
33
views
Is there any way to read block attestation from inside a solidity smart contract?
Are there any precompiles, or any other native ways to get block attestation data from ETH2 POS inside a solidity contract?
0
votes
1
answer
693
views
are there other ways to send bundle of transactions without using flashbot?
I am wondering if there are some ways to send bundle of transactions without using flashbot?
I am not sure how this area works,
would you please give me practical sources to learn ?
0
votes
1
answer
33
views
Dose contracts must be deployed?
I see js programmers compile and call solidity contract without actually deploying it using hardhat and/or similar tools. Do they really can use the contract without deploying on the chain(like swap ...