Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
45 views

How to perform a beacon deposit for a new validator in a Custom Testnet?

I am trying to add a validator to an already running testnet How can i make a beacon deposit, to allow that validator to start staking / validating blocks on the same testnet ? Help appreciated!
0 votes
1 answer
100 views

web3py Force send eth transaction at the same block without conformation or any errors

My question is how to force send a transaction via web3 or any other way without paying attention to errors. I know that I will pay for the commission if I am not successful and that will suit me. I'm ...
0 votes
1 answer
238 views

1Inch with flashloan provider

Is there a way to trade on 1Inch using the API and flash-loaned balance. If it is possible please give me some info. I was seeing the DOC to find how to integrate the flash-loan provider with 1Inch ...
3 votes
2 answers
2k views

Get ETH and Token Balances of Wallet address

How do I get a simple and fast balance of ETH and all Token owned/stored within a wallet address? I have seen similar question and the closer answer was in this demo: http://wbobeirne.com/eth-...
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 ...
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
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, ) = ...
1 vote
1 answer
218 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 ...
0 votes
1 answer
300 views

Howto check sync with kovan testnet is complete or not?

I am trying to sync with Kovan testnet, docker run --name eth -p 8546:8546 -v ~/ws-002-chainlink/ws00-docker-geth-ropsten:/geth -it ethereum/client-go:stable --testnet --syncmode light --ws --wsaddr 0....
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&...
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 ...
2 votes
1 answer
782 views

web3 contract TypeError: 'apply' is not a function

I'm Trying to call the apply function on the contract ABI but I'm getting: TypeError: 'apply' is not a function at :1:1 > myContract { abi: [{ constant: false, inputs: [{...}], ...
1 vote
2 answers
407 views

UniswapV2's equivalent of getPair and other functions

i see uniswapv3 quoter or factory or router contracts doesn't have getPair, getReserve and other similar ABI functions like UniswapV2. does UniswapV3 have Equivalent for this functions? or did they ...
0 votes
3 answers
735 views

REWARD!! PLEASE CAN SOMEBODY HELP ME ETH STUCK - I am a newbie trying to create a trading bot. and came across a tutorial, my 1.1eth stuck Metamask! [duplicate]

SORRY ABOUT THE GRAMMAR AND SPELLING I HAVENT SLEPT FOR ALLMOST 2 days BECAUSE OF THIS.. Here is a bit of a back story on why I have become a little desperate lately to find ways to make crypto faster ...
0 votes
1 answer
495 views

getAmountsOut and sushiswap user interface shows different result

Hello eth communities.. I am trying to interact with ethereum chain using programming and I'm using getAmountsOut to get swap path quote using sushiswap's contract. But the result in my vscode and ...
1 vote
2 answers
201 views

how does swapExactTokensForETHSupportingFeeOnTransferTokens work and its inputs

I tried many things on inputs but unfortunately I am just receving a gas error (the one that says would likely fail if continued) How does the function input works exactly? uniswapV2Router....
1 vote
0 answers
97 views

Can I make a contract call to refund the unused gas fee to a specific address instead of the msg.sender?

Can I make a contract call to refund the unused gas fee to a specific address instead of the msg.sender? I want to use this as a means of charging fees for my project.
1 vote
0 answers
75 views

Uniswapv2 "quote" ABI

I am trying to sign contractof Uniswapv2 on ethereum mainnet using "quote" ABI. the function is quote(uint amountA, uint reserveA, uint reserveB) I use c++ to make the raw transaction and ...
11 votes
1 answer
4k views

Sign raw transaction offline with C++ on arduino

I'm exploring the IoT side of the EVM. I've programmed Arduinos and ESP8266s to interact with a Geth JSON RPC. I'm trying to be minimalistic and avoid NodeJS on the Geth JSON server side. Currently ...
1 vote
0 answers
30 views

Reduce gas price?

I'm working on a sniping bot on uniswap, and i have a little problem : the first ones to buy are those who pay the most. Pretty logical, but I don't really want to pay 300$ in priority gas to be the ...
2 votes
0 answers
47 views

geth full node is too slwo.Only about 50 blocks can be synchronized per minute

geth full node is too slwo.Only about 50 blocks can be synchronized per minute However I use snap mode to sync very quickly. Unfortunately what I need receipts for all transactions. this is my server: ...
0 votes
2 answers
106 views

transferring USDT from metamask to smart contract

I'm trying to transfer USDT tokens from my metamask account to another address(which is variable in smart contract) through method call. if I use transfer method, I'm getting not enough balance(...
0 votes
0 answers
68 views

BSC Testnet and ETH Testnet, I want to copy/fork a contract in eth which is evermoon, but I always get an error with the gas and it always fails

This is the error it gives me, can you help me fix this problem, I adjust the gas limit, it started from 3000000, to 30000000, but still the transaction failed. I tried in bsc testnet using ...
0 votes
0 answers
40 views

How to verify and publish a contract address source code to withdraw erc2o tokens

Created a contract sometimes back while playing with eth contracts tutorials, by mistake I sent some some erc20 tokens only to later loose control of the creator address. Stuck between letting it go ...
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
839 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....
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 ...
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
0 answers
84 views

How to build a ethereum private chain after the Merge?

I want the build an ethereum private chain that similars toward the exsiting ethereum network. But i find there were not any documents about how to build the ethereum private chain after the Merge
0 votes
1 answer
152 views

TestNet ETH Disappear after receiving it immediately

Whenever I get any Testnets (Sepolia or Goerli) to my MetaMask Its Immediately transferred away from my wallet to another address 0x000ED96F3C5636BBB1A4fa59B96C2CCD042e5000 without any of my ...
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 ...
1 vote
0 answers
22 views

Creating a local ETH2 environment for testing L2 solutions

I'm developing a Layer 2 network that runs on top of current Ethereum and has to do a lot with staking. run controlled local testnet incl beacon and staking. deploy smart contracts What is the ...
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?
1 vote
1 answer
304 views

Can't start mining on TEST-NET in Ethereum Wallet

Just installed Ethereum Wallet, downloaded blockchain, but can't start mining on TEST-NET. When I click 'Start mining', I get console error. Also I can't start mining from console. See screenshots ...
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 ...
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
130 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
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'...
2 votes
1 answer
2k views

How many GB is the ethereum Blockchain goerli and other testnets?

How many GB is the ethereum Blockchain goerli and others testnets? I could not find this information for testnets, if anyone knows this info using diferents sync modes in Geth (snap, full and archive) ...
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
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
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
4 votes
3 answers
10k views

Unable to attach to remote geth error

Following this answer, I'm running $ geth --dev to start a testnet, which works as expected, returning INFO [08-01|14:32:29] IPC endpoint opened: /Users/mcansado/Users/Desktop/private/datadir/geth....
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
75 views

How to allow a third party to access your private testnet via their wallet?

So I set up a private eth testnet, and so far I was able to connect to it via my local wallet on the same machine. However I had some issues when connecting to the same local testnet via a different ...

1
2
3 4 5
11