All Questions
694 questions
0
votes
1
answer
25
views
I want to retieve data from contract A that has been already stored in the contract B by contract A?
dex.sol(contract A)
//SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
import "./storage.sol";
contract dex1{
storage_contract public contractaddress;
constructor(address ...
1
vote
1
answer
312
views
Signing messages in cpp
I am trying to execute eth transactions from cpp. For that we need to be able to sign messages using Elliptic curve algorithm. I have found this repo, but output signature is different from what we ...
2
votes
2
answers
838
views
How to retrieve 1 eth I send by mistake to my smart contract token?
This is the contract as you see there's one eth there https://etherscan.io/address/0x19d71f00354ad302e89ca47e59b68917f9a871d7#code.
I still have ownership of contract.
My eth stuck in smart contracts....
1
vote
0
answers
23
views
IP host management in truffle_config.js (Private Ethereum Network)
I have 3 Amazon Ec2 instances (each with a Geth node running on them) and I'm running over them my Private Geth Ethereum (PoA) blokchain and I wanted to ask if it was necessary to specify the IPs of ...
0
votes
1
answer
459
views
Unsellable tokens bought on DEX: Smart contract to get back funds
I bought token via Uniswap which are not unseellable.
I read somewhere that we can deploy a contract on the same account of the token for swap the token in eth.
I wrote a code and before deploying it ...
0
votes
0
answers
112
views
How it works? 4 transactions in 1 block
This address withdraws tokens from different accounts as shown above.
His steps:
He sends BNB to the address where there are tokens to pay the token withdrawal fee. Gas price 60 gwei
Withdraws ...
3
votes
1
answer
295
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
1
answer
292
views
Transaction successful but ether not transferred to destination account
I am following this article and everything works expected but ether is not getting transferred to the to account.Please find the logs below.
eth.sendTransaction({from:eth.accounts[0], to:eth.accounts[...
0
votes
1
answer
331
views
How to get hash of transaction **before** it has been mined in web3j?
I have been working on my project where I use web3j. I work with ledger over contract wrappers where the actual call to the ledger is encapsulated over variety of layers.
The issue is I need to get a ...
0
votes
1
answer
36
views
Where can I get Goerli Test Ether? Can someone provide me with some? Thank you very much! [duplicate]
My address is: 0xDA866378188C6C455C6f624353cF5d3475484e4e
Thank you very much!
2
votes
1
answer
265
views
TypeError: Member "WETH" not found or not visible after argument-dependent lookup in contract IUniswapV2Router
My code below
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IUniswapV2Router {
function getAmountsOut(uint amountIn, address[] memory path) external view returns (uint[] ...
0
votes
2
answers
1k
views
Create a MAX SUPPLY to Mint ERC20
I want to create an ERC20 on Solidity.
I want 1000 TOKENS of MAX SUPPLY (Like the 21m of bitcoin).
PERSON A: Mint to his wallet 700 Tokens. (Thats okey)
Only 300 Tokens are available.
PERSON B: Mint ...
0
votes
1
answer
13
views
How Should I Fully Remove The LP
My project is fail few months ago, and i removed the LP today, and i found there is some earned LP is not withdrawable.
Can somebody guide me how to fully withdraw it?
2
votes
2
answers
830
views
Recover public key from sign generated by AWS Cloud HSM - Golang
I am signing a transaction by using a private key in AWS Cloud HSM. But not able to recover the correct public key from the signature. Every time I try to run ECRecover method, it generates different ...
1
vote
0
answers
558
views
The definition and Implementation of the Keccak256() function
So I don't know if this is a silly/obvious question or not but after many hours I turn to the community for help.
So for the past few days I've been writing my own C++ code to take an input public key ...
0
votes
1
answer
1k
views
How can I add Rinkeby in Metamask?
I have a problem: I can't add Rinkeby Test Network in Metamask. First, I tried to add it from settings -> show test networks(on) and it doesn't work. Then I tried to add it manually and I created ...
-1
votes
1
answer
2k
views
Mining pool rewards erc-20 smarts contract [duplicate]
I was contacted from a girl of Singapore,she told me to join the website PETL.top,with 1k of buying USDT erc-20,every day I withdraw 30 dollar,but today I accept this partecipation for the claim the ...
3
votes
3
answers
8k
views
About geth's method eth_call and simulating state changing transactions
I am running my own local Geth node and my main objective is to simulate some transactions and see how does the state of the blockchain change from the current one. For instance if I simulate a tx ...
3
votes
3
answers
7k
views
{'message': 'Nonce too low', 'code': -32000} when sending transaction on geth JSON-RPC
I am trying to send a transaction using Go Ethereum 1.4.18-stable JSON-RPC and I am getting the following error:
{'message': 'Nonce too low', 'code': -32000}
This is a single transaction on ...
0
votes
1
answer
217
views
-32000 Execution Reverted - Simple AAVE Price Oracle request
I'm currently in the early stages of learning solidity and diving into the blockchain world; I do have prior programming experience.
I'm currently stumped on something that seems rather trivial, but ...
0
votes
0
answers
126
views
Ethereum wallet recovery
I was trying to sign into my old wallet inherited using Keystore JSON and password and I am getting the error "private key do not satisfy curve"
Please help me out
1
vote
0
answers
55
views
How do you find every self-destructed contract using geth?
I'd like to use my go-ethereum node to find every self-destructed contract in the history of Ethereum and get their addresses.
What is an efficient way to do so?
0
votes
0
answers
18
views
Invalid Opcode Error SHR [duplicate]
call to UniswapV2Factory.INIT_CODE_HASH
call to UniswapV2Factory.INIT_CODE_HASH errored: Internal JSON-RPC error.
"code": -32000,
"message": "invalid opcode: SHR"
I'...
0
votes
1
answer
35
views
Issues about Peer to peer concepts
Hy every one, I'm new in this world, and i'm trying to understand deeply how blockchain works. I'm little bit confused about the peer to peer concept. How many peers have Ethereum blockchain, ...
1
vote
1
answer
198
views
Can events be emitted WITHOUT a transaction?
I am curious as to why the emission of Ethereum events is tethered to the fact of a transaction being entirely mined
I realize that we can also make calls to public view functions, which do NOT ...
0
votes
2
answers
244
views
I have a problem in my Smart Contract in Withdraw Function
function withdraw () public OnlyOwner {
for (uint i = 0 ; i<= funders.length ; i++) {
address funder = funders[i];
addresstoFund[funder] = 0 ;
}
funders =...
0
votes
1
answer
64
views
Is it possible to modify Geth source code to send other signed transaction than one the sender has done?
Suppose there are two Ethereum nodes (A and B) that both are using Geth to interact with the network. Is it possible a malicious player can manipulate the source code of Geth so that each transaction ...
2
votes
1
answer
2k
views
Transaction Effective Gas Price
I am developing in Go and I have a question that I have been looking for the solution for a long time and I am not able to find it.
How can I find the effective gas price used in the transaction? Not ...
0
votes
1
answer
33
views
MetaMask does not let me send transactions on private network
Metamask lets me deploy contracts on my private network and but it does not let me send transactions.
Its real network running on a few nodes with PoW, only thing different is that minimum gas fee is ...
0
votes
1
answer
622
views
Did I get scammed? Created solidity smart contract and can't withdraw [duplicate]
Hoping this isn't the case but I created a smart contract based on a youtube video, I know feel like a moron, and glanced at the code and it seemed legit. I own the smart contract, but I can't ...
0
votes
1
answer
35
views
How can I get a large amount of Ethereum transactions in a database without running my own node? Does a database like this exist already?
I am doing research into Ethereum transactions and I simply need a database of 1000 transactions or just about 10 blocks worth of transactions. What is the easiest and fastest way to acquire this?
Do ...
0
votes
1
answer
19
views
How do I clear out all the saved entries in mapping?
How do I clear out all the saved entries in mapping after the data is no longer useful
1
vote
1
answer
722
views
Replacement transaction underpriced
I am building a Django service with Celery that sends multiple transactions to a contract and I am finding that the error {'code': -32000, 'message': 'replacement transaction underpriced'} from geth ...
19
votes
2
answers
16k
views
Geth - How to clear queued transactions?
When typing txpool on Geth I get:
{
status: {
pending: 15,
queued: 714
},
getStatus: function()
}
I don't even know why there are 714 queued transactions when there should be none. I ...
1
vote
0
answers
104
views
Why is the TransactionByHash function in the go-ethereum client unable to return the sender?
I learned how to get the sender's address from this question. JSON-RPC returns a result with a from field, which we can unmarshal in our struct.
But I'm curious why go-ethereum didn't return ...
0
votes
1
answer
273
views
How to read ERC1155's SafeTransferFrom() transactions in golang?
Trying to read ERC1155 SafeTransferFrom events, in golang.
Here is what I tried:
var (
// erc 1155
logSafeTransferFromSig = []byte("SafeTransferFrom(address,address,uint256,uint256,...
1
vote
1
answer
885
views
How can I send signed transaction that calls a contract method and also sends some eth with it?
Looking for a way I can send a signed transaction using web3 which will transfer some tokens tha the user grants along with some eth that he decides to donate.
I have a tx object like this:
var baller ...
2
votes
1
answer
203
views
Measure gas left in block in solidity
There is a gasleft() to check how much gas left for my smart contract execution in solidity. But how is it possible to check how much gas left in block?
I am having quite a big solidity function, and ...
1
vote
0
answers
175
views
Does Hyperledger Besu limit the amount of data in a transaction?
I need to send transactions to a private PoA Ethereum Blockchain. I know by geth source code it is limited to 128 KB: txMaxSize = 4 * txSlotSize // 128KB -> tx_pool.go file: https://github.com/...
1
vote
0
answers
36
views
Fork of geth - activate mining ONLY when there's transaction(s) that've come from a certain wallet/address. How?
This may be a fork of geth, or any other node client, or a tweak in its functionality:
I want to be able to activate mining process only when, and if, there have come transaction(s) from a certain ...
6
votes
2
answers
3k
views
Difference between ERC 20 and ERC 721 transaction receipt
I want to fetch certain transaction logs from a local ethereum node. For that, I need to identify how to differentiate between ERC 20 and ERC 721 transaction receipts. From what I saw on Etherscan, i ...
6
votes
0
answers
239
views
Kademlia: How does Ethereum uses node discovery protocol to avoid sybil/eclipse attacks?
I want to describe a case that's not clear to me. let's say we have 10 peer validator nodes who reach consensus and agree to store some blocks on their chain. Let's say now that a wallet wants to sync ...
0
votes
1
answer
57
views
Somebody wan to to send me eth tokens and asked me to send him fee first .. is this the normal way to do it?
Somebody wants to send me eth tokens and asked me to send him fees first .. is this the normal way to do it?
1
vote
1
answer
322
views
Not able to use --testnet flag on geth windows
I have a problem where if put
geth --testnet removedb
it says
flag provided but not defined: -testnet
Im on windows 10 x64. Thanks in advance!
1
vote
1
answer
67
views
New testnet and what to know after Eth merge and existing test nets deprecation
I am just starting to learn solidity in depth and with Eth merge coming, Rinkeby and few other test nets will be depracated.
I tried to get some test Eth with Rinkeby and Sepolia but constantly fail ...
0
votes
1
answer
60
views
ETH Transaction cancellation and overriding
Consider your transaction is pending in mempool for too long and you want it to be validated ASAP (I) or cancelled (II).
I) AFAIK In this case you are suggested to make the same transaction again (...
0
votes
0
answers
122
views
Transaction status marks Success but don't have Tokens Transferred
when I checked some transactions I found sometimes transaction mark success but can't see any info like Token Transfer. In this case, do you know what type of this transaction ?
0
votes
1
answer
249
views
Transaction Pending and Dropped
I have a transaction pending from 4 days.
I have tried to unlock following this answer:
MyEtherWallet is pending and dropping. It looks like it is stuck in a loop for 2 days?
Now the current nonce is ...
0
votes
2
answers
666
views
How to create transactions and delay its broadcast to other nodes
I am creating a project where i need to use my smart contract to add data to the storage but in a programatically delayed way:
I am using web3 in my nodejs server, and i want to create the ...
1
vote
0
answers
774
views
Why don't we have an EVM integration library written in C++?
We have web3.js for JavaScript, web3j for Java and NEthereum for Unity/.NET.
I want to develop with Unreal Engine (C++) a game that runs on Polygon, but there's no integration library in C++.
Should I ...