Questions tagged [ether]
Ether (ETH) is the main internal crypto-fuel of Ethereum and is used to pay transaction fees.
2,275
questions
3
votes
1
answer
74
views
Is it possible to allow a third-party relayer to spend ETH on your behalf?
With the ERC-20 standard, it is possible to approve a third-party relayer to spend the tokens on your behalf. This can be done by calling the approve function and providing a high allowance value, ...
0
votes
1
answer
32
views
historical Ethereum trading volume data at a minute interval
I want to access historical Ethereum trading volume and price data at a minute interval for the last six months, I found daily intervals but could not find for minute interval, any suggestion to find ...
0
votes
1
answer
65
views
Transaction failed-CALL_EXCEPTION
I deployed smart contract to testnet and i got error can someone help me debug this
Code:
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@...
0
votes
1
answer
69
views
Smart contract error Error: transaction failed
I deployed smart contract to testnet and i got error can someone help me debug this
Code
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@...
0
votes
1
answer
100
views
Code validation
Hi i want to deploy my first smart contract to the Eth mainnet and this require a lot of money and i am very scared can someone want to help me and validate this code for any errors becouse i cant run ...
1
vote
0
answers
30
views
How to calculate the weighted average price on binance?
can somebody please answer the question below?
What is the weighted average trade price of the ETH/USDT SPOT trading pair on the Binance.com platform on January 1st, 2023, in UTC time, considering the ...
0
votes
0
answers
20
views
Purposely failing Low-Level Call
Does this code below have a vulnerability?
burnAddress.call.value(msg.value)("");
//update state
burn Address is a trusted contract, which ...
0
votes
0
answers
25
views
UniswapV2 swapExactTokensForTokens Question
I have question does UniswapV2 swapExactTokensForTokens function charge fees ? And if yes does expected amount input should be like this Expected price after fee subtraction?
1
vote
2
answers
59
views
Prices on Dexes
Hi I have code that fetches price from uniswap v2
ratio0ToPrice = (amount0In, amount1Out) => {
if (Number(amount1Out) === 0) {
return "Infinity";
}
return 1 / (Number(amount0In)...
0
votes
0
answers
18
views
I send my Etc from coinbase to my eth address by accident
I accidentally sent my Ethereum classic to Ethereum address a while ago. I tried everything to recover. Nobody was able to help me or try explaining to me if it’s possible I recently seen something ...
0
votes
1
answer
25
views
Swap, usdt to usdc, eth to usdt, eth to usdc etc
Can someone explain how to swap, usdt to usdc, eth to usdt, eth to usdc etc. Without any third-party (uniswap, 1inch etc). In language java/kotlin. For mobile wallet an application
0
votes
0
answers
11
views
Send Value Raw Transaction fails with insufficient funds for gas
const amount = web3.utils.toWei("0.0000001", "ether");
var gasPrice = await web3.eth.getGasPrice();
var gasLimit = 21000;
var nonce = await web3.eth....
0
votes
0
answers
28
views
How to calculate ETH percentage supply in profit?
I'm trying to calculate the ETH percentage supply in profit.
Definition is: The percentage of circulating supply in profit, i.e. the percentage of existing coins whose price at the time they last ...
0
votes
0
answers
50
views
Geth still stucking at synchronizing
I trying to run my eth mainnet node using Geth and prysm but synchronizing process still stucking.
Error:
INFO [12-05|02:29:14.015] Syncing: state download in progress synced=0.36% state=961....
0
votes
0
answers
56
views
What will happened to my WETH TOKEN if the receiver or the network didn't support WETH TOKEN
I send WRAPPED ETH to a wallet/network which is COINS PH WALLET that has supported ETH ADDRESS, i thought WETH and ETH are the same? Now my problem is how can i possible retrieve my TOKEN?
0
votes
1
answer
20
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
89
views
Consolidate multiple Ethereum accounts
I have multiple Ethereum accounts with pretty small amount of Ether, like equivalent of $20…$50
Is it possible to consolidate all wallets and/or transfer the all coins to a single wallet in Ethereum ...
0
votes
0
answers
20
views
What is the importance of `message Hash` generated from signing using private key
when we are signing a message using our private key what's the use case of the message hash ?
Take the example from the eth_accounts module from python.
>>> msg = "I♥SF"
>>>...
0
votes
1
answer
61
views
Decoding Chainlink Function Response in Solidity Contract and Handling Nested JSON Objects
I'm dealing with a problem regarding the decoding of data obtained from a Chainlink function in my Solidity code. Specifically, I'm using a Chainlink custom function that sends an HTTP GET request to ...
0
votes
1
answer
16
views
How to change response from oracle?
I need to test my contract, and to test I need to change data that I recieve from ChainLink Oracle (I get Ethereum price from it). So how can I change price on ETH local for tests using Ganache-Cli or ...
0
votes
0
answers
452
views
Error : Cannot read properties of null (reading 'useContext') in frontend
import contracts from '../RPSLS.sol/RPSLSFinal.json'
import { ChangeEvent, useContext, useEffect, useRef, useState } from 'react';
import { useNavigate, useLocation } from 'react-router-dom';
import { ...
0
votes
1
answer
54
views
Which function to use for swapping eth against token on uniswap?
I use the following code to create the swap_transaction:
swap_transaction = router_contract.functions.swapETHForExactTokens(
0, [weth_address ,token_address], account_address, int(time.time())...
0
votes
1
answer
33
views
What methods are there to send value to a wallet via internal transactions?
I'm familiar with direct transfer via contract and self-destruct method, which can be seen in this screenshot:
Are there any other methods of replenishing the wallet like these, so that it would be ...
0
votes
0
answers
156
views
Is sending USDT to Ethereum main network address Possible?
I copied my Metamask Ethereum main network Ethereum wallet address to someone who said "Supported Wallets: ERC-20 Compatible. E.g. Metamask," for payment. I want to know if the transaction ...
0
votes
2
answers
52
views
Sending fix amount of ETH without manually input value in remix
I tried writing a contract so that we can send eth without inputting value manually in this field in remix.
So, we just need to click the sendEth button below ( no need to input anything)
The ...
0
votes
0
answers
10
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
90
views
I need help from Expert Dev for POS bot [duplicate]
I recently received a code and deployed it. it sent 0.2 eth which is succesful and is visible in the contract transaction. I hoped to generate some passive income with with this POS Bot. The problem ...
1
vote
0
answers
14
views
Running a local eth network
I trying to run a local eth network because the online faucets are too slow for us
But I am struggling to find a good docker-compose example online to do so
There are a few but all of them dont run ...
2
votes
1
answer
231
views
How to assign and send ether value together with deployment of contract using Foundry
This is the simple function, how do I deploy the contract and send ether along with it?
function setUp() public {
test = new testContract(
Owner;
);
}
0
votes
0
answers
230
views
Does the boosted staking feature of Coinbase One apply to Ethereum?
Coinbase sells the Coinbase One service which costs $30 / month. This provides 'boosted' staking which "reduc[es] the commission that Coinbase takes from the relevant protocol payout." The &...
0
votes
1
answer
121
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
36
views
Can someone help me embed this crypto calculator on my website?
I am trying to copy this calculator - https://plasbit.com/widgets - into my website and it does not show on my site. Please help me.
0
votes
0
answers
14
views
Please help me with my project [duplicate]
I have been given the final year project of fake brand detection using blockchain. I am a complete beginner in anything related to blockchain or ethereum. Can anyone help me any way where to start. I ...
0
votes
1
answer
54
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
30
views
My fund was stuck at ParaSpace, multi signer A&B initiated the code on@safe, but C said they were doing sth else, can someone help me?
It was a long story, i mistakenly sent 12eth to Para. https://etherscan.io/tx/0x72ef5f105ec1c40f917d92aa48caafe24448d9d8507c303ee9a66cbad2c0e983
but somehow para side set up this https://app.safe....
0
votes
1
answer
28
views
How to fix invalid BigNumber string error in Solidity?
this is a simple contract. where I want to develop a function, optimizer, upon calling it will transfer an amount of eth to an address. but when I deploy it on the testnet, connect my Metamask and try ...
0
votes
1
answer
60
views
Deterministic address calculation?
proxy contract
contract ERC20ProxyDelegator {
constructor(ERC20Votes _token, address _delegate) {
_token.approve(msg.sender, type(uint256).max);
_token.delegate(_delegate);
}
}
...
0
votes
0
answers
18
views
How can i validate bulk orders on nft marketplace contract?
I have a nft marketplace contract. To list nfts i am getting the order details and a signature base on order details. And list the nft on FE. When some user want to buy it i simple sent signature and ...
0
votes
0
answers
19
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
97
views
Issue creating pair on IUniswapV2Factory (sepolia)
I have the following interfaces in my contract file:
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
interface ...
0
votes
3
answers
274
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
103
views
How can I fix execution reverted: ERC721: approval to current owner?
My contract is returning me this error:
execution reverted: ERC721: approval to current owner
How can I fix this?
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/...
0
votes
0
answers
115
views
Is there any way to change hardhat running environment (hre) provider when running script?
I'm running multiple hardhat nodes in different ports like: 0.0.0.0:8545, ...:8546, ...
My scripts is something like this and I use it in a nestjs project
import * as hre from 'hardhat';
async ...
0
votes
1
answer
325
views
my transaction shows as reverted but i didn't recieved my money yet
So I transfered some Binance-Peg Ethereum Token (ETH) over the bnb network (bsc20) (with my ledger wallet/app), but the status of the transaction shows 'reverted'
There are some articles saying that '...
0
votes
1
answer
26
views
Creating a local variable in an if statement?
I'm looking at a function that creates a local variable in an if statement. If someone called that function and the condition to the if statement was not triggered, that local variable wouldn't exist, ...
1
vote
1
answer
221
views
How do I hide or mask the sending address when sending tokens or eth
I am trying to build a crypto payment gateway. But when users initiate a withdrawal to credit their customers, the transaction can be tracked up to the point that shows the system address where the ...
2
votes
2
answers
1k
views
Why is Transaction Value showing 0 ETH on Etherscan?
I'm not sure why the transaction value on Etherscan is showing as 0 ETH when the transaction was confirmed.
According to the recipient, they haven't received anything in their wallet either and I'm ...
0
votes
0
answers
14
views
Avalanche Consensus and how better it is than Ethereum?
Which consensus mechanism do Avalanche currently uses and is it better than ethereum and other EVM compatible blockchain and apart from consensus what others benefits does avalanche provides us?
1
vote
0
answers
51
views
Transaction involving contract and ETH
I have a problem in Web3. I'm trying to obtain data from an ETH transaction but it involves a contract (Coinbase 10). From what I understand of the transaction, it looks a lot like token transactions (...
0
votes
0
answers
18
views
Connecting to a private Blockchain via a Dapp
How can I choose an a node to randomly connect to on the cluster?
I can already connect my Dapp to the private node. But what happens in case that node is not available or a different node is more ...