Questions tagged [ether]

Ether (ETH) is the main internal crypto-fuel of Ethereum and is used to pay transaction fees.

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

Can we deploy old deployed NFT contract to ethereum 2.0?

I have already deployed contract on ethereum. Now I want to deploy it on ethereum 2.0, is it possible? According to some resources ethereum 2.0 does not support for smart contract deployment. Thank ...
0
votes
0answers
23 views

Require not working properly, always lead to an error

There is a login page and register page in my dapp based on refer and earn concept to authenticate and authorize user respectively..Login part is working fine, but when I try to register a new account ...
0
votes
1answer
22 views

How to get the type of transaction (Send/Receive/Approve/Swap) and the ERC20 tokens involved in that transaction?

I', getting to know the Ethereum technology (so rookie level). By far, with the free APIs (etherscan.io, ethplorer.io, coingecko) I have been able to build a "watch wallet". It looks like ...
0
votes
1answer
17 views

How to handle transferring ERC20 tokens (such as USDT) with delegation to pay the gas fees on behalf of users?

I am working on creating wallets and generating addresses to be provided to a number of users. I am wondering how can I enable them to transfer their ERC20 tokens(such as USDT) without having any Eth ...
0
votes
0answers
18 views

How to check if a user had registered in My DAPP with Metamask?

I want to check if a user had registered in my DAPP with Metamask..Do I need to store User struct in solidity to control that or just depend on metamask for authentication.??
0
votes
0answers
12 views

How to handle refer by register functionality in Dapp with Smart Contract? [duplicate]

I've just started to learn solidity programming..Firstly, I have a register page, in which the metamask opens up an popup and connect the user address to my dapp by registering the user on their ...
0
votes
1answer
15 views

My fallback function can not get msg.value from a sent transaction

There is a mapping in my code as mapping(address => uint) private Payment;. This mapping is used to see who send some ether and how much the sent value is. Its key is an address that stores ...
0
votes
0answers
18 views

Ethereum wallet address

Hi Guys I sent nearly 1000 $ to a contract address the the project didn't take off. To get a refund i was told to send 0 ether to the contract address with some data in the data field. But I used ...
0
votes
1answer
30 views

How to get ETH contract balance with Ethers.js

I am trying to get the ETH balance of a contract: const balance = await contract.getBalance(); but it fails: TypeError: contract.getBalance is not a function What I do wrong and how to fix the error?...
0
votes
1answer
21 views

Is it possible to get the gas fee before sending an ETH?

Is there a way or api endpoint to calculate the gas fee before sending the ETH? My client requirements is to calculate the gas fee before sending an ETH to other user. I can only get the gas price ...
0
votes
0answers
19 views

how to get public key in ethereum

Error Says Method shh_getPublicKey not Supported. How can i solve this and get public key.
0
votes
3answers
28 views

Broadcast transactions to specific miners?

Is it possible to broadcast transactions specific or a small number of miners? I believe there is a concept of private transactions, as used to mitigate front running to rescue vulnerable funds for ...
0
votes
0answers
8 views

Low Peer Count For a light ethereum node

I am running a Light node via Geth in a Debian OS . i am getting 1/2 max peers and for many hours of the day with 0 peers . what is the solution ? how to get atleast one peer everytime ?
2
votes
1answer
37 views

Problem In Getting Rinkeby Test Ethers

I tried to get rinkeby ethers from https://faucet.rinkeby.io/ by creating a tweet but the website shows "insufficient funds for gas * price + value” error. I also tried the website faucets....
2
votes
0answers
37 views

What is the computing power of the Ethereum network in FLOPS?

The aproximate computing power of current Bitcoin network in terms of FLOPS (FP32) has been estimated at about ~80,000 exaFLOPS and being aware of the limits of the analogy because of the widespread ...
0
votes
0answers
20 views

How to represent specific validated transactional data [closed]

I will use an analogy to express my question: Let's assume some kid is willing to do some chores in his neighbourhood against a certain amount of ETH. He found neighbours willing to engage in such a ...
1
vote
1answer
24 views

msg.sender.balance showing incorrect amount

I've written a smart contract that should return the balance of the current user using it and for some reason when I call the function it's returning the incorrect amount. I've used Remix and the ...
0
votes
1answer
20 views

How to see the miner account that earned gas? Or how to know the account where gas goes?

I made a transaction to another account on rinkeby and then saw the record on Etherscan. There is Txn fee as gas. But how can I know where the gas went. I mean the account that gas was paid to. I ...
0
votes
1answer
27 views

Ethereum is not transferred on Ropsten network

Here's my code for signing nd sending a transaction on Ropsten testnet which is working properly. However, the value that is set to '1' eth is not transferred to the target address. var Tx = require('...
0
votes
1answer
29 views

Receiving 'undefined' when using getBalance from web3

I am trying to fetch the balance of an address by web3 and node from Ropsten network with the commands below: var Test = require('web3') var url = 'https://ropsten.infura.io/v3/...' var web3 = new ...
2
votes
0answers
27 views

ETH same transaction different amount of gas used

The two transactions: a) https://etherscan.io/tx/0x9227f7b00bf2c98a7e16eb5ab90c04df5b49698297ee7f52c765d5218af395ad b) https://etherscan.io/tx/...
2
votes
2answers
37 views

medalla testnet launchpad requires metamask or similar

Following the official Medalla launchpad at https://medalla.launchpad.ethereum.org, at some point you need to connect to a wallet and the only options are MetaMask, Portis and Fortmatic. Why is this ...
0
votes
1answer
18 views

Blockchain without cryptocurrency

I am new to blockchain and am having certain doubts. Can we substitute cryptocurrency to carry out blockchain operations in any way ? Actually what i feel is that the volatility in cryptocurrencies ...
0
votes
1answer
49 views

How to transfer eth to specific address in smart contract?

I want to send eth to specific amount by calling smart contract. This is my contract. pragma solidity ^0.6.7; contract MyContract {      address payable receiver; constructor(address ...
0
votes
0answers
28 views

Rock, paper, scissors and Secrether.io

I have thought of a RPS game using secrether.io: playerA hashes keccak256(move+11charsRandomData) as hash and sends it to RPS smart contract. RPS creates a transaction to Secrether Smart Contract - ...
0
votes
1answer
52 views

Attempting to transfer erc20 token, but keep encountering insufficient funds for gas * price + value

I'm attempting to transfer an erc20 token, but keep running into insufficiant funds for gas * price + value, regardles of how much eth I have, I also have an estimate function which returns a value ...
2
votes
1answer
32 views

Is there any contract to get USD value of Ether

I am looking for a contract address from where I can fetch current USD value of ether on fly, not looking for any api, so is there any contract for this ?
1
vote
3answers
47 views

How can I get wrapped Ether on Rinkeby?

The rinkeby faucet only seems to have an option for ether. I'd like some weth so I can test Uniswap v2. Anyone know where I can get some? Thanks!
0
votes
1answer
17 views

How does Ethereum gas get calculated

From what I understand, the gas required for a ethereum contract is based on the computation it requires. So given two very similar transactions, the gas required should be very similar right? However,...
0
votes
0answers
7 views

How to generate_executionScript and forward it to the Aragon for voting

I'm developing a custom dashboard with Angular which must be connected and sync with Aragon dashboard but I face problems with _executionScript. I can't find how Aragon generate these scripts: ...
0
votes
1answer
68 views

Token swap amount difference between the amount from uniswap app and contract read

When I tried to swap 1BAT from DAI by using Uniswap App (https://app.uniswap.org/#/swap), I needed 0.325372DAI as this picture show. However, when I tried to calculate how much DAI I need to get 1BAT ...
0
votes
1answer
40 views

Chainlink wrong address [duplicate]

So I recently withdrew funds from binance to my wallet, unfortunately I input a digit wrong in the address and it’s gone elsewhere. Is it possible to recover these funds or the funds are completely ...
0
votes
1answer
13 views

Eth address created from an outdated version of MEW off line

Hello I have MEW off line client 3.7 (2018 version) on an airgapped computer Since the new client doesn't let me create new ethereum wallets offline (it blocks itself (idle) while creating it) can I ...
0
votes
0answers
26 views

How to understand supplies from smart contracts

I would like to understand how is total supply calculated and how could I know how much is circulating for particular token. I will just use random token for example https://etherscan.io/address/...
0
votes
1answer
39 views

Saving migration to chain.insufficient funds for gas * price + value

It looks like the contract was deployed well on mainnet However, eventually this error occurs Saving migration to chain.insufficient funds for gas * price + value Does it mean that the migration was ...
6
votes
0answers
38 views

Can we avoid the protocol overhead of JSON-RPC and directly connect to GETH through some interface?

I want to build a middleware that adds additional data to JSON RPC responses. This middleware would sit on the same hardware or machine as the GETH node. The traditional approach would be to simply ...
1
vote
1answer
45 views

Building a recursive smart contract — is it possible?

I would like to create a sort of tree type hierarchy of contracts. Think of it like a multi-level-marketing scheme -- the person at the top will receive X. For each of the k people he recruits he ...
0
votes
1answer
37 views

problem with sending ethers on ropsten network

I am trying to send ethers from one address to another address on the ropsten network but I get the message "undefined". Here is my code: web3.eth.getTransactionCount(account1, (error, ...
0
votes
0answers
22 views

Please look over my contract for re-entrancy

I know the random number generator isn't secure and is susceptible to manipulation from miners and any advice on the method to generate random numbers will be appreciated. However, the reason I'm ...
0
votes
1answer
14 views

How can the contract move funds from a user wallet to a contract address

We are creating a system where every month some ethers shall be transferred from user wallet to a contract wallet. We are focusing on creating a dapp too, so a user will initiate this request and once ...
0
votes
1answer
46 views

Error: Returned error: VM Exception while processing transaction: revert when using methods.MyMethods.Send

I am writing a simple betting application that will return double the ether deposited by the player, provided they guess correctly the random number generated by the virtual slot machine. it works ...
0
votes
1answer
47 views

How do I get a list of tokens held by an Etehereum address?

TL;DR: wanted: a method that receives an address as a parameter and returns an array of token names/contracts/balances held by address. I'm aware of the fact that Etherscan API has a method allowing ...
0
votes
1answer
41 views

I have a Transaction Hash, how to get the readable Input Data?

i have a Transaction Hash: 0x9f46760404dd3075533e8360fe4beb0ba7210423af1f4a95a5c80defffe824b5, for how do i decode the "input data" easily? for example: https://www.blockchain.com/eth/tx/...
0
votes
0answers
39 views

My Crowdsale contract wont transfer ERC20 tokens and all transactions fail

I have a crowdsale contract that recieves tokens directly from a mint function in my token contract.the function mints the tokens and sends its to the Crowdsale account address. when I run let token = ...
2
votes
0answers
22 views

generate large amount of ethereum address with hardware wallet

How to generate large amount of Ethereum address with hardware wallet. Currently Ledger Live only allow to generate one address at a time. If generating thousands of address will take many times to ...
0
votes
0answers
9 views

DAO tokens from ether wallet [duplicate]

I just got access to a old ether wallet with all my DAO tokens. Is it too late, no way to convert them back to Ether? any way at all?
0
votes
1answer
77 views

Token addresses for DAI , USDC and WBTC for IUniswapV2Router02

I have searched a lot but maybe I am looking in the wrong places. Please how can I get the token addresses for USDC , WBTC and DAI that work with Uniswap Router02 on mainnet and kovan. Thanks
0
votes
1answer
42 views

How can we lock ETH in user wallet without escrow contract?

I know the logic of using an escrow contract in which 2 or more users send their wagered ETH to a smart contract acting as escrow proxy, and then after some decision contract executes we release the ...
1
vote
0answers
34 views

How do I find the amount of Ether the deployed contract on Remix IDE holds?

Assuming I have successfully deployed a contract on the online Remix IDE and sent Ether to the address the contract is deployed to; how do I find the amount of Ether that the contract/address now ...
0
votes
0answers
20 views

How do I store or use private keys in node js that I deploy in live server?

I have a live server running a full GETH NODE in which I need to sign a transaction with a private key. The problem is I dont know how I can use the private key without explicitly providing the ...

1
2 3 4 5
28