Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ether]

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

2
votes
2answers
38 views

Does a transaction always require a smart contract to be executed?

I had a discussion with someone explaining that every time a transaction occurs (e.g. ICO token or ETH) on Ethereum it would pass via a smart contract or would require one. I would like to know what ...
1
vote
1answer
77 views

account nonce - what if it did not exist? [duplicate]

I can't understand how account nonce actually avoids double spending. Every answer about this on the internet follow the pattern "If you only have 50 Eth and try to send 50 to A and 50 to B with ...
0
votes
1answer
95 views

Smart Contract that can transfer ETH to other ETH Wallet (Owner of the Smart Contract)

I actually my partner created a Smart Contract which is able to create a new smart contract and send the proceeds. I'm quite new to Solidity unable to figure out a way to modify the smart contract to ...
1
vote
2answers
47 views

MEW says not a valid erc20 token but don't see errors

I created a token prior to this one that is fine. I used the same template, followed the same exact steps to create another token but getting the not valid erc20 error. https://ropsten.etherscan.io/...
0
votes
1answer
328 views

Create a faucet for Ethereum Private network to get Ethers

I have came up with a private ethereum network. I was able to do the transactions and contract deployments. The funds for all the nodes were specified in genesis. But I need to get a way to send any ...
0
votes
1answer
118 views

Send accurate ERC 20 custom token

I have one issue, I can't send accurate custom ERC 20 token to an ether address. Here is my custom token detail. Balance: 0.000000000000000324 BucksTec Decimals: 18 I sent 44 tokens to an ...
-1
votes
1answer
221 views

Found a Telegram ETH scammer/theif's main wallet address on Etherscan with $150,000 worth of stolen coin. What can be done?

Someone in my Telegram Telcoin group that I've talked to for months say they were a victim of ETH theft by a known ETH scammer in Telegram. This person sent me proof of pictures they took of ...
1
vote
1answer
72 views

Quick question: can a function send multiple tokens?

And by the question I mean if I can send a couple of few different ERC20's or let's say even 1 ERC20 + some amount of ether in one function?
0
votes
1answer
155 views

How can I withdraw ether balance from contract to a personal account?

How can I withdraw ether balance from a contract to a personal account? İ tried but I couldn't do it on Ropsten. Could anybody tell me step by step how to test this? Thanks.
1
vote
1answer
30 views

sent my eth to unknown eth FREEWALLET address [closed]

How can i recover my eth it was sent to an eth address with a one transaction from FREEWALLET. I am using the trust wallet while sending and im very sure that what i copay and paste is the same ...
0
votes
1answer
709 views

Transaction has been reverted by the EVM

thanks all of guys help me. thanks very much. I created contract in rinkeby test network. the contract address is: https://rinkeby.etherscan.io/address/0x5dedcba9851e5c7ff464d5ee6ef75301a8c43d8b I ...
0
votes
3answers
135 views

Error when trying to add a payable function in erc20

Most of the ERC20 examples on the internet have this function: // ------------------------------------------------------------------------ // Don't accept ETH // --------------------------------------...
0
votes
1answer
146 views

Infura API for mobile(ionic) app

I have one little question. Suppose I have private key of user in ionic app. Is this enough to make transactions using infura API and web3?
2
votes
1answer
372 views

How to get byte code from deployed contract in

I want to get the byte code of a deployed contract. How can I get it? Is there a special function in web3.js? I haven't found any.
1
vote
1answer
156 views

Verifying Signed Data

I am busy trying to get my head around recovery of an address using ecrecover(). The I'm having trouble recovering the correct address when providing signed data to the contract. The contract that I'...
2
votes
1answer
182 views

Getting large amount of ropsten ether

I want to get about 150000 ropsten ether for testing. Is there any way to get it? I've seen some faucet websites but they have limitations.
3
votes
2answers
460 views

difference between gas price and gas limit

What is the exact difference between gas price and gas limit ? And what should be their value? I am reading about smart contracts and these two words are used alot.. need to know what they are and how ...
1
vote
0answers
41 views

Case study : Blockchain as a service [closed]

I have a web application which has DynamoDB as the database. I want to store some SCORE in a DynamoDB table. How can I restrict this SCORE to only some set of people in my web application can modify ...
2
votes
1answer
386 views

Error while refreshing pending block on main: Post http://127.0.0.1:8545: dial tcp 127.0.0.1:8545: getsockopt: connection refused

i have this problem : Error while refreshing block template on main: no mining work available yet https://github.com/sammy007/open-ethereum-pool/issues/387 this dident help https://github.com/...
1
vote
0answers
38 views

Why Ropsten Testnet has Total Ether Supply < the biggest ether holder balance?

Let's see two below image that I cropped them from ropsten.etherscan.io. Can someone tell me why Total Ether Supply < the first address balance?
2
votes
1answer
298 views

How to fix “Fatal: Error starting protocol stack: listen udp :30303: bind: address already in use”?

I am referring this tutorial and miner.start(1) works fine and mining is started as expected like below. INFO [09-05|15:41:26.486] Commit new mining work number=221 sealhash=1892af…...
1
vote
1answer
51 views

How to detect multiple ETH payments and link to order

First, I read this article, but it's not my case. I'm creating crypto payments solution inside Telegram Bot for multivendor. Here is my problem: Customer have unique wallet for payments. When he ...
2
votes
1answer
229 views

What is pyethereum?

I have seen a definition here saying: "This is the Python core library of the Ethereum project" So what is it's use? To develop dapps using python on the ethereum network?
1
vote
1answer
81 views

how can ethereum addresses are same between different networks (testnet & Main)?

I found, Wallet address are remain interchangeable if i switched between the different networks(Main Network , Ropsen Network & Rinkeby Network) is it assigned to particular machine IP, if not ...
1
vote
0answers
15 views

What happens to the missing coins in this transaction? Copy paste this code into remix to reproduce my original bug. Thank you

pragma solidity ^0.4.24; contract TheCaseOfTHeMissingCoins{ string public name; string public symbol; uint8 public decimals = 18; address public owner; mapping (address => ...
1
vote
1answer
64 views

How to charge all gas fee to a General Master Wallet

We are currently developing a blockchain platform that deals with sending of tokens from users to users, and as you know, ETH is required as a gas fee to be paid for any ERC20 token transfer from a ...
1
vote
1answer
24 views

How to add multi sign master wallet to a smart contract [closed]

How can I add a Multi Sign Master wallet features to a Smart Contract
0
votes
1answer
112 views

Transaction reverting when it hits Require statement in function

I have below contract. I deploy my contract in remix and put 1 ether in value but when I execute enter() function I get an error. This is the contract: pragma solidity ^0.4.17; contract Lottery{ ...
1
vote
2answers
239 views

HI, can i get live Ether to USD price in my smart Contract ? I want to keep a hardcap in USD. is it possible to do so?

I want to make a function for my ICO to calculate ethers collected so far and convert them into USDollars. I wanted to hard cap my ICO in USDollars. Is it possible to do so ? I am using Solidity to ...
1
vote
2answers
103 views

Can the same keypair be used for holding ETH and different ERC20 tokens?

I have an ETH keypair. Can I hold ERC20 tokens with this ETH keypair also? Can I hold several ERC20 tokens with one key pair?
1
vote
0answers
157 views

What does total number of blocks per day mean in Etherscan?

I tried to figure out what does total number of blocks per day means here and on the Internet, but i failed. For example, the number of blocks on 26 Aug is 5947 [here https://etherscan.io/chart/blocks]...
1
vote
1answer
431 views

WEI to ETHER conversion issue with Web3 and Javascript

So i have a form where the user enters a price for an item in ETHER. I understand the blockchain does not handle floatin point numbers currently, so i am attempting to convert to WEI and store it on ...
1
vote
2answers
110 views

Querying the Smart Contract?

If I have a network made of IoT devices (contain 1000000 device). I need to manage them using a smart contract. And that contract contains a constant function (to avoid paying gas). How can this ...
1
vote
1answer
169 views

Returned error: insufficient funds for gas * price + value in Private network

I created private network and mined some ether, when I was try to send some ether to another account in my private network I am getting "Error: Returned error: insufficient funds for gas * price + ...
2
votes
2answers
52 views

Cost of interacting with smart contact [duplicate]

I read that there is a cost that should be paid when deploying a smart contact to the etherum. Is there is a cost for an end user to interact with a certain smart contact ?? For example : if I build a ...
2
votes
0answers
124 views

Send ERC20 Tokens from Fixed Supply Token Contract to TokenCrowdSale Contract

For ICO Crowd Sale I have created 2 contracts one is MyToken.sol & other is MyTokenCrowdSale.sol. MyToken.sol creates fixed supply ERC20 tokens. contract MyToken is DetailedERC20, StandardToken { ...
1
vote
3answers
183 views

Test array values if key/value exists - Does not work

I have a problem with the following contract. When I deploy it, normally on calling the function addBalance() it should go into the false. But instead, it completely does not work and I get the ...
2
votes
1answer
199 views

how are conditional JUMPI opcodes valid?

I've been reading this example from https://github.com/comaeio/porosity/wiki/Ethereum-Internals And I am wondering how some of these JUMPI operations are valid: loc_00000000: 0x00000000 60 60 ...
1
vote
1answer
636 views

how connect to main net with geth?

how connect to mainnet with geth? I used this command before for rinkeby test network geth --rinkeby --rpc --rpcapi="personal,eth,network,web3,net" --ipcpath "/home/mahdi/.ethereum/geth.ipc"
1
vote
1answer
99 views

How to burn ether securely? [duplicate]

If I want to burn ether, is it safe to send it to 0x0000000000000000000000000000000000000000 - safe in the sense that there is provably no way (other than cracking encryption or bruteforce) that this ...
2
votes
2answers
140 views

First Time Ethereum Wallet User Setup Questions

I will try to make this a fast post with just a few questions I cannot figure out the answers to: I am trying to accept/send ETH payments and have downloaded, installed, and created a wallet using ...
1
vote
0answers
25 views

How to know the price of the day of ETH in USD by Oracles?

Consider in a contract the payer intends to pay recipient ETH based on USD (ex. the salary is 1 USD but paid by ETH). So, if today contract needs to know equivalent value of 1 ETH in USD exactly at ...
1
vote
1answer
24 views

Best ways to get only “active” in arrays - get group members

let's say I have an group contract where users can join and leave groups. When a user joins a group, his address will be added to members[groupId]. When he lefts, the members[groupId] will be set to ...
1
vote
1answer
96 views

My transaction is pending and it seems like doesnt execute the transaction at all?

I wanted to transfer ERC20 tokens from MEW to another ERC20 token wallet. It seems like not moving. Now my transaction is pending and it doesn't showing up in myetherwallet as a pending status. Can ...
1
vote
1answer
57 views

Not able to send Ether to contract

I am trying to send Ethers to a contract deployed on Ganache but I am getting VM Exception while processing transaction: revert, the same logic is able to transfer Ethers to other account. Following ...
0
votes
1answer
29 views

Progamming contracts in Ethereum, is it safe?

I am completely new to Ethereum. I read a lot of articles and have a question. As far as I understood, one can develop smart contracts in Ethereum that are like executable programs. In these ...
1
vote
3answers
200 views

Retrieve stuck ether on smart contract

Is there any way to recover ether that is stuck in a smart contract? refundMoney() method was supposed to call only after everything is finalized but because someone has transferred some ether amount ...
0
votes
2answers
56 views

Can code send ETH to user accounts?

I was watching a talk by Vitalik in DEVCON1 in which he says code can do three things one of them being code can send ETH to other contracts. But can it send ETH to users account as well? Attached is ...
0
votes
2answers
24 views

set transaction limit for each token

Is it possible to set a limit for the number of transaction each token can have in solidity? for example, a token can only transfer 10 times.
4
votes
2answers
731 views

RangeError: private key length is invalid (In New ETH Transaction pragmatically)

Followed this Ans Ans1 and Ans2 but no solution got. const web3 = new Web3('https://ropsten.infura.io/v3/3c52917848e945229c0d33d632b10490'); const account1 = '...