All Questions

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

Manipulate Uniswap oracles

Is it practically safe to consume from Uniswap spot TWAP oracles? I mean, I know it's technically possible to manipulate them, but based on this article, it sounds like it'd be economically impossible ...
dNyrM's user avatar
  • 902
0 votes
0 answers
3 views

When using geth to synchronize with ligthouse, the ligthouse client reports the "Failed to get remote head and new block ranges: EndpointError"

When using geth to synchronize with ligthouse, the ligthouse client reported the error "Failed to get remote head and new block ranges: EndpointError(FarBehind), retry_millis: 60000, service: ...
muxi's user avatar
  • 1
0 votes
0 answers
3 views

Does hardhat-trace work on localhost?

I'm trying to troubleshoot my hardhat project's smart contract, but every time I run npx hardhat trace --hash [transaction hash] I get the error Transaction not found on rpc. This has me wondering if ...
Trent Kennelly's user avatar
0 votes
0 answers
6 views

What does the Geth/Erigon ethereum client do if there are not enough transactions in the pool to fully fill the new creating block?

What do Ethereum nodes (Geth/Erigon) do if there are not "enough" transactions in the transaction pool to fully fit a new creating block? Does the node, upon recognizing that there are no ...
dassd's user avatar
  • 101
0 votes
0 answers
3 views

how can I sign a typedData with @safe-global/protocol-kit?

how can I sign a typedData with @safe-global/protocol-kit api? I have objects like this const data = { domain, types, message }
coco irons's user avatar
0 votes
0 answers
2 views

Problema con stablecoin Blockchain

Buongiorno ho scritto il codice del mio stablecoin ma ho bisogno che sia visionato da un esperto per correggerlo eventualmente e creare le proxy e magari cominciare la programmazione della propria ...
enrico durante's user avatar
0 votes
0 answers
6 views

Geth Failed RLPx handshake error EOF when trying to connect static node

So currently im trying to connect between nodes and i face 2 error which is The node is still having 127.0.0.0 which is a localhost IP and it should be able to detect my public IP so the other node ...
ValentinoFish's user avatar
0 votes
0 answers
4 views

when i open my site in trustwallet it shows a warning of critical state that "this address is unsafe as identified by hashdit"

I'm encountering a critical warning message for my website, "(https://python50dec.com)" The warning indicates that the site is flagged as unsafe by TrustWallet scanners. I'm seeking guidance ...
Surya Vino's user avatar
0 votes
0 answers
8 views

eth_call swapExactTokensForETH simulation error

I can do swapExactEthForTokens with no issue but when I try to do the reverse, swapExactTokensForETH, I run into this error: { "name": "ContractLogicError", "message&...
user132647's user avatar
0 votes
1 answer
8 views

Metamask Mobile problem

code: if (!$metamask.states.connected || !connectedAddress.value) { errorMessage.value = 'Please connect your wallet first.'; showModalError.value = true; return; } let amountInEther = ...
brok 3's user avatar
  • 1
0 votes
0 answers
7 views

Self-custodial Login by Web3Auth Dialog

I'm implementing Safe Auth Kit into our dApp. But on the official demo site, there is this login dialog with all kinds of sign-in options. But in the GitHub repo, I don't see how can i set these ...
Chufta's user avatar
  • 21
0 votes
0 answers
7 views

Eth_sign, blind singing and MM signing

Having some confusion on what is what here. Is there difference in enabling eth_sign in metamask with blind signing on ledger? Many web3 sites today require user to sign message as log in method. I ...
Blissful's user avatar
  • 355
0 votes
0 answers
7 views

I need to know if the gas fees can be paid after the transfer from an investment account to my cypto.com account

I have a large amount to transfer from an investment account to my cypto.com account and can't pay the gas fees up front is there anyway to pay the gas fees out of the profit either before ...
Robert Owens's user avatar
0 votes
0 answers
5 views

Unhandled Rejection (Error): ENS is not supported on network private

Unhandled Rejection (Error): ENS is not supported on network private l.<anonymous> /packages/web3-eth-ens/lib/ENS.js:481 478 | if (!this._detectedAddress) { 479 | var networkType = await ...
Nishant Patil's user avatar
0 votes
2 answers
18 views

How to calculate fee when dealing with different decimals token?

I'm kinda struggling here to find a solution. I have a code where user can deposit token like USDC, DAI etc... For example USDC had 6 decimals and DAI has 18 decimals. How can I have a generic fee ...
0xAurora's user avatar
0 votes
0 answers
11 views

Understanding the number of aggregations of BLS signatures

I know there are about 1 million validators in the consensus layer. As far as I understand, BLS signatures from some of these are aggregated in each block. But how does this happen in practice? In the ...
user's user avatar
  • 1
0 votes
0 answers
10 views

Every couplle of hours my node de-syncs

For some reason, every couple of hours when I check on my node my geth log files show Imported new potential chain segment and then once synced it goes back to normal for a couple of hours. The issue ...
Creterine's user avatar
0 votes
0 answers
7 views

Migration Challenges: Updating Gnosis Safe Infrastructure becouse gnosis safe has removed older docker images

I've set up the entire infrastructure for Gnosis Safe on a new EVM chain that initially lacked Gnosis Safe support. However, Gnosis has deprecated that version and removed the corresponding Docker ...
UPENDRA SINGH's user avatar
0 votes
0 answers
5 views

The 'myEvent' is not being set in the getPastEvents function of web3.js

I am using "web3" : "4.5.0" I am trying to use the getPastEvents function in accordance with the official documentation of web3.js to view the emitted events for a specific event. ...
권승미's user avatar
0 votes
0 answers
5 views

adding custom contract to trust wallet

if ill deploy a contract on eth mainnet or seoplia then ill store usdt on that contract and then ill add that custom contract to trust wallet will it show my balance and usdt in that custom cotract on ...
freak OG's user avatar
0 votes
0 answers
7 views

Tuple as argument to method in Ethereum Remix

I've created this contract which allows me to perform a split payment of native tokens (ETH) or ERC20. Meaning I can send funds to multiple beneficiaries using one transaction. Once I deploy my ...
Christian Papathanasiou's user avatar
0 votes
2 answers
15 views

Is there anyway to recover eth in smart contract I setup with remix?

Watched a video on youtube on how to setup a smart contract (First time trying) Very stupidly used all the money in my bank to do so, now I have no idea if its even working or how to get the eth back ...
el_presidente909's user avatar
0 votes
0 answers
11 views

I need some help cancelling a pending eth transaction from my coinbase wallet

Long story short. I wanted to partake in a free nft mint but messed up and lower the gas. The transaction has been pending for 9 days and the gas is far too low to ever go through. I have since tried ...
john brady's user avatar
0 votes
0 answers
15 views

Truffle ganache debug not working

I have installed truffle and ganache and the @ganache/console.log library. Furthermore, I have the following contract from an online course which serves as an example to demostrate the debug mode of ...
TheDude's user avatar
  • 111
0 votes
2 answers
22 views

Can ERC-20 tokens be used in a smart contract?

All of the dApps I’ve seen and used so far only accept ethereum as a payment. Is it possible for dApps (not including the token’s smart conract) to use ERC-20 tokens?
11111's user avatar
  • 101
0 votes
0 answers
12 views

I swapped Pepe coin for eth on my trust wallet and can't find the eth in my wallet

I swapped Pepe coin for eth on my trust wallet and can't find the eth in my wallet. Transaction hx: 0xe3b68fd58b2b1ceca354b49babcca0ad7af938b0beba23d35b50eb9e7f6e80b9
Abc's user avatar
  • 1
0 votes
0 answers
12 views

Forking Swap from bsc on goerli, max input of native token 0

I'm trying to fork cheeseswap from bsc onto goerli. I've also tried to fork another swap from another network onto goerli and have the same issue. I Change all the chainid numbers, rpcs, factory, ...
Bobo From Florida's user avatar
0 votes
0 answers
10 views

ERC4337 - ambiguous verificationGasLimit

In ERC4337, verificationGasLimit on the official EIP page is explained such as: The amount of gas to allocate for the verification step On the following page, it's said to be: The VGL refers to the ...
Neo's user avatar
  • 83
0 votes
0 answers
12 views

Transfer Value isn't showing up in the contract value

So I'm totally new to ethereum. I'm asking you for help, maybe I don't understand the mechanics of this correctly. I set up a contract und transferred a little eth to it. But the transfer value never ...
trissdissi's user avatar
2 votes
0 answers
28 views

safe-global/auth-kit CORS policy issues on localhost

I'm trying to integrate safe-global/auth-kit and upon initialization of SafeAuthPack I'm getting CORS issues on localhost. Is there any workaround for this?
Chufta's user avatar
  • 21
1 vote
1 answer
18 views

Deploying a Safe locally ERROR: [SafeProxy was not deployed correctly]

I Everyone ! I'm currently trying to deploy a safe using hardhat and Safe Protocol Kit SDK Basically what I did was: Cloning the Smart contracts repo => Deploy them on hardhat local node Using the ...
Joshua's user avatar
  • 11
0 votes
0 answers
14 views

Lost funds via phishing/approval. Please help

It appears that ~0.137 ETH was automatically sent from my address to "Fake_Phishing188250" via a "Claim" transaction (...
Paulmuadib's user avatar
0 votes
0 answers
16 views

How to calculate how a certain transaction impacts a token price?

How to Calculate Token Price Impact of Large Trades in Decentralized Finance (DeFi) Environments I am developing a tool to analyze the impact of large trades on token prices within a Decentralized ...
Mohammad Safi's user avatar
0 votes
0 answers
6 views

Gnosis not working

We recently needed to upgrade the gnosis infrastructure due to deprication of old version. Earlier we were using gnosispm docker images and now we have moved to safe global. Since the transition, ...
Jogeshwar Singh ATR898's user avatar
0 votes
0 answers
5 views

Aave & de bank.com

Debank.com shows my wallet, Aave, & Uniswap assets, $1740, however, I can't locate the assets on these sites. My metamask wallet is connected. I don't recall getting a etoken and I just want them ...
Lori's user avatar
  • 1
0 votes
0 answers
17 views

How can I improve the cancelSale or depositEarnest functions to guard against DoS attack scenario where an attacker could call cancelSale & get ETH?

I have tried onlyBuyerSeller modifiers and refund distribution solutions in the cancelSale function to guard against attacker calling cancelSale function. In testing, attacker can still get the ETH. ...
gitatron.eth's user avatar
2 votes
1 answer
21 views

What's `//` in Vyper?

I'm doing some division in vyper (v0.4.0b), but I keep getting this error: InvalidOperation: Cannot perform decimal division on uint256 (hint: did you mean `(convert(price, uint256) * ...
Patrick Collins's user avatar
0 votes
0 answers
13 views

How do I import a package in vyper version 0.4.0^?

For example, let's say I want to import snekmate: from snekmate.tokens import ERC20 as base_token How do I get snekmate into my packages? Do I have to import them to my contracts folder?
Patrick Collins's user avatar
0 votes
0 answers
10 views

I have sent SYN tokens and are stuck in my ETH wallet. What can I do?

I have my SYN tokens stuck in my ETH wallet and can see them in etherscan. Anyway to send them out back to the original address the tokens weren't sent from? 0xF66Bd3fa316aBD9c44492bc92AefC90652AE9311 ...
Kevin B's user avatar
2 votes
0 answers
14 views
+50

How to slow down block production?

I have a Besu private network. The genesis file was created by me. I wonder how I could slow down block production speed. I already changed blockperiodseconds to 6 or 10 but I started to see some &...
Magno C's user avatar
  • 333
0 votes
0 answers
25 views

Recover ETH in Smart Contract [duplicate]

I'm reaching out to you because I think I've been scammed. I watched a video (https://www.youtube.com/watch?v=vv5l9VIBF1o) on YouTube that claimed to show how to set up a bot to earn ETH. So, I ...
Robin Borne's user avatar
0 votes
1 answer
20 views

How to write unit test with Timestamp base function?

I writing a contract for Staking Token to earn Token. It's similar to pancake MasterChef. The requirement is based on timestamp (not block). When I test the contract with hardhat, I call the deposit ...
MadTik's user avatar
  • 21
1 vote
1 answer
12 views

Fail with errors 'Pancake: TRANSFER_FAILED'

https://bscscan.com/tx/0x41fcd1893c7500ae2ace0ab195bb0c9bbfcfefd05ad794707a65749d358da3df. I don't undestand why my transaction is failed. I fixed my fee limit at 1.500.000 and only 10% was used. If ...
Yanis HERY's user avatar
0 votes
0 answers
7 views

Creating permissioned networks with geth only

This is a question about permissioning in private network, but actually articulated in 2 subquestions. Q1) Is it possibile to setup geth for a private ethereum PoA network with whitelist of nodes ...
Davide C's user avatar
  • 896
0 votes
0 answers
9 views

Hyperledger Fabric [closed]

* Copyright IBM Corp. All Rights Reserved. * * SPDX-License-Identifier: Apache-2.0 */ "use strict"; async InitLedger(ctx) { const user = [ { ID: "customer1"...
zafi's user avatar
  • 1
2 votes
0 answers
21 views

How to deploy Tornado Cash Hasher contract to ZkSync network

I am going to deploy Tornado Cash contract to ZKSync network. In the Tornado Cash constructor, it takes an argument: Ihasher _hasher; where the Ihasher is: interface IHasher { function MiMCSponge(...
CHM's user avatar
  • 21
0 votes
1 answer
20 views

Send a transaciton to Sepolia network but it can't be found from `sepolia.etherscan.io`

I am using below code to call a smart contract deployed in Sepolia network. const w = new Web3('https://rpc.sepolia.org'); await w.eth.accounts.signTransaction( { from: ...
Joey Yi Zhao's user avatar
1 vote
1 answer
12 views

Do I need private key each time when call smart contract?

I am using web3 library to connect to smart contracts deployed in Ganache/Ethereum network. I don't need to sign a transaction when interacting with Ganache network probably because it is a test ...
Joey Yi Zhao's user avatar
0 votes
1 answer
33 views

How do I know the gas and gas limit when sending a transaction?

I am using below code to call a smart contract method on Ethereum network. const w = new Web3(url); await w.eth.accounts.signTransaction( { from: account.address, ...
Joey Yi Zhao's user avatar
0 votes
1 answer
22 views

Updating UUPSProxy contract's inherited contract

I modularized my smart contracts for them to be more manageable, and I am also using UUPSUpgradeable pattern in my core contract. Now I have a problem though. Consider following example: contract ...
Ahmet Yazıcı's user avatar

15 30 50 per page
1
2 3 4 5
1065