The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
1answer
30 views

3 level ether transfer

contract foster{ vulnerable v = new vulnerable(); attacker a = new attacker(address(v)); constructor() public payable{ // a.deposit(address(v)); // transferring 3 ethers to ...
12
votes
5answers
16k views

send ethers from one contract to another

I am wondering how can I have ethers in my contract. I have 2 contracts associated with different accounts. I want to send ethers from one contract to another but how do I have ethers in my contract ...
0
votes
1answer
16 views

Why did cryptokitties congest ethereum network when it has resizable block size?

So I am wondering how come eth network got congested when block size is resizable and it can take more trx if needed? I am reading some info that it can do that but miners don't want to do it as it ...
2
votes
1answer
762 views

How to set Value per token?

how the Smart contract decide how much token need to be send on every 1 Ethereum ? didn't found any which define such function, anyone ?
1
vote
0answers
85 views

Who knows a payment slab for ethereum similar to bitpay?

It is necessary that the contract would accept payments in different currencies (usd eur etc.) and then pull out tokens. Can this be done as a payment gateway? How is this best done?
1
vote
1answer
116 views

How to trim a string in solidity?

I have a function where one of its arguments is a string. How would I check the string for leading and trailing whitespaces and remove those characters? If i get something like this: " " => ""...
0
votes
0answers
10 views

Transfer function not working properly with calculations

function payWorker1(address schoolId) public payable returns(bool){ require(Schools[schoolId].moneySent == false); require(Schools[schoolId].verified == true); Schools[schoolId]...
0
votes
0answers
8 views

Mist showed my wallet one day but after I restarted it, it disappeared

trying to see if there's any hope in restoring my wallet. I opened my Mist application for the first time since 2017 and was able to see my wallet. When I restarted it the next day, it was gone. I ...
0
votes
3answers
338 views

How To Sync Ethereum Node?

I want to run full ethereum mainnet node on ubuntu, what dependencies are required to install and run geth on ubuntu?
1
vote
0answers
77 views

ERC20 Token support for metamask website payment

I have the following code working in my site to accept ethereum payments in my website via metamask.... <!DOCTYPE html> <html> <head> <script src="https://cdnjs.cloudflare.com/...
0
votes
2answers
480 views

How to create raw transactions for erc20tokens using python? Is there any api to send and receive transactions?

I want to create raw transactions for erc20tokens. I want to know how to create addresses for erc20tokens and also to send and receive coins using python. Any help would be appreciated. Thanks
0
votes
1answer
65 views

How could I get public array from JavaScript?

I have an array in smart contract: contract SuperContract { uint[] public SuperArrayForExample; function addItemToArray(uint item) payable { SuperArrayForExample.push(item); } } ...
0
votes
1answer
22 views

Staking of coins

I have a question on staking of coins. Suppose there are 10000 tokens in a user wallet, and he wants to put 5000 tokens on staking for a certain time period (i.e That 5000 tokens should go to an ...
1
vote
1answer
267 views

Why BNB (from Binance) is based on ETH?

I understand the vision for Binance is to create a decentralized crypto exchange. Wouldn't it be more flexible to build their own block-chain rather than rely on an existing one (ETH)? From my ...
0
votes
1answer
22 views

Gas price sending ether

Do I have to pay a gas price if I send ether from account a to account b in Ethereum MainNet?? Or the transaction is free of cost?' And if I buy ether from Changelly the destination address have to ...
0
votes
1answer
38 views

How to redirect to Etherscan website when transaction completes?

In my project, I am doing a transaction by using ethereum.send({ }) method from web3 in javascript using metamask. After the transaction completes I want to display the link to the user in label ...
1
vote
2answers
257 views

Reason for check of msg.value > 0

I came across published smart contracts (like this one from ConsensSys) that check whether msg.value is strictly larger than zero in their payable functions. After wondering whether msg.value can be ...
0
votes
0answers
21 views

miner.start doesn't work in private network

i have created a private network with this genesis file { "coinbase" : "0x0000000000000000000000000000000000000001", "difficulty" : "0x400", "extraData" : "", "gasLimit" : "0x2fefd8", ...
0
votes
1answer
633 views

How to transfer ethereum from one account to another using address and password.?

I want to transfer ether from one account to another using Web3j. I have account address and password. How to submit transaction? EDIT 1: I'm using this way to send the transaction: HttpService ...
1
vote
0answers
107 views

Geth SWARM no peers found!

Synced via Geth lightnode to latest block --cache=2048. (7200RPM HDD with 8GB RAM) Then created new geth account and did swarm --bzzaccount $BZZ I'm am able to only browse localhost, upload to local ...
1
vote
0answers
48 views

rinkeby faucet unsupported service error

I pasted the url of the facebook post and when I selected the amount of ether then this message is shown.
8
votes
3answers
7k views

What are digital tokens? How are various tokens generated on Ethereum?

I've heard in various talks, Ethereum can generate any token (besides ether), representing anything from bitcoin (through btc-relay), litecoin, dogecoin, digital assets, shares, ownership ...
73
votes
6answers
272k views

How do I buy Ethereum with USD?

I am a complete noob at investing. I have never bought stock or invested in anything before but I have $300 I would like to turn into Ethereum. Could someone please tell me step by step how to ...
2
votes
3answers
403 views

Is there a way to test already deployed solidity contracts with truffle?

Lets say I have many contracts that are already deployed and I don't want to re-deploy them (using testrpc), can I still test them with truffle?
0
votes
1answer
36 views

Why Ether balance is 0 after 5 airdrops?

I created an ether wallet to join some airdrops and 5 of this airdrops sent me tokens but in my ether wallet the balance is 0 (zero). I don't understand why. I was searching tutorials but I could not ...
0
votes
2answers
93 views

Stellar operator types compatibility issue

I have an issue creating a calculation based smart contract which performs some calculation based on some formula. Here is the function as bellows: function financialReputation( ufixed xb , ufixed ...
1
vote
2answers
46 views

Sending hundreds of signed transactions with web3js which succeed but can only find a couple on Etherscan

I am using web3js to send hundreds of transactions to Ropsten (will eventually change to mainnet) and I am getting a tx hash for all of them, which means that supposedly, all the transactions have ...
1
vote
1answer
128 views

Minimum system requirements for mining ropsten ethers

I want to create my own faucet that will mine Ropsten ethers. What is the minimum system configuration which is required? Is it a good idea to use my own server such as AWS? What will be the ...
2
votes
0answers
29 views

Ethereum - Exporting Accounts/Balances from full node

I have a Ethereum full node that I will be using to take a snapshot for an airdrop for a project I am working on. The node is running and syncing. The issue currently is that there doesn't seem to ...
1
vote
1answer
18 views

Can I get the timestamp for a transaction added to mempool?

Can I get the time stamp on when a transaction was added to the mempool and when it was successfully added to a block? Is there an API to do this?
0
votes
1answer
122 views

ParserError: Expected primary expression

Following is my code: pragma solidity >=0.4.17; contract Lottery { address public manager; address[] public players; constructor () public { manager = msg.sender; } ...
0
votes
1answer
37 views

Is the following scenario doable by a smart contract?

I have 2 persons ( say A or B). They want to have the following agreement. Person ‘A’ specify a deposit (x coins ) for user ‘B’ under a certain condition with a future time lock ‘t’. If user ‘B’ ...
1
vote
3answers
41 views

Ether for learning ethereum

Crypto concurrency is not legal in India. If a developer who is citizen of India can learn and develop ethereum applications without buying Ether? If yes how ? I just learn that there is something ...
0
votes
1answer
33 views

How to send tokens to a address with a specific contract? [closed]

I want to send tokens from my wallet to a crypto-currency exchange website wallet with a specific contract used by the crypto currency exchange website. For example- I want to send token to this ...
0
votes
1answer
39 views

Can anyone tell me how I can improve gas requirement?

Below is my smart contract. Remix gives warnings on each of the following functions: Gas requirement of function MedicalRecord.addNote(bytes32,bytes32) high: infinite. Gas requirement of function ...
0
votes
1answer
67 views

Account address in ethereum wallet already existed

My etherum got stolen today I have hosted my own ethereum fast node. The node wallet has multiple account. I have created a mini app with api to create new account(without passwords) for users, also ...
6
votes
1answer
1k views

My friend sent me a screenshot of a transaction hash, but when I search for it I find divergent data. What happened?

This is the transaction hash: 0x90e923ee01d9dfeb95ee176819eeec67d247fc6cb009c8cdc4d8ae1939e5ecc6 And this is the screenshot my friend sent me: If you check the hash in Etherscan, some informations ...
3
votes
2answers
260 views

how to setup a ethereum private blockchain?

Does anyone know how to set up a private blockchain in ethereum network? is that possible to run a private ethereum node? I have seen forking of public blockchain like EOS into a private blockchain.i ...
0
votes
1answer
39 views

Given no performance penalty for maximum tokens creation. Why most tokens are not created max?

Given the answer to this question here: Is there a performance penalty towards creating the maximum number of tokens with ERC-20 etc? Why are most tokens in circulation / used not created to their ...
0
votes
1answer
62 views

Pending Transaction from locked token

I tried to send locked EOS to Etherdelta, and the transaction been pending for almost 4 days now. MEW can't find the transaction so I'm unable to cancel it nor do anything else even with higher gas ...
2
votes
1answer
61 views

Trustless Inter-chain transaction with Bitcoin- are there any flaws?

Let's say that Alice wants to send Bob 1 BTC, and in return Bob will send Alice 1 ETH. Alice's Bitcoin address is BTC_A, and Alice's Ethereum address is ETH_A. Likewise, Bob owns addresses BTC_B and ...
2
votes
1answer
58 views

How do smart contracts deal with data that fluctuates?

In my limited understanding of smart contracts, I've read that every node on the Ethereum network must execute a smart contract to come to consensus. I'm guessing that not all these nodes execute the ...
1
vote
2answers
527 views

What is the “right” way to send Ether to multiple addresses?

I have seen this discussed here but didn't get a satisfactory answer. What is the recommended way to send ether to multiple recipients? One way that I have thought of is follows: Deploy a smart ...
1
vote
2answers
49 views

Get exchange volume or even price in a private network

I am creating a local private network for some testing purpose, just tested with sendTransaction and some others API. Now, i would like to trace the private network exchange volume, and also price ...
11
votes
3answers
4k views

are there “public” ethereum nodes? or any recommendations on hosting solutions?

I've always ran apps on Heroku. Just developed a smart contract and I need to check the blockchain from the app. Are there public nodes I can connect to to get the info I need to show on my app? If ...
1
vote
2answers
2k views

Bittrex using smart contract address to get funds [ ERC-20] deposit

This question is not Just specific to bittrex, but i wanna know it in general that can any exchange ask its user to deposit tokens to a smart contract? I have been using ETH since a long time, i have ...
2
votes
4answers
3k views

Getting notified after receiving tokens

Is there any way to get a notification(PN, Email etc.) when one receives ETH or tokens issued on ethereum?
0
votes
1answer
191 views

Connecting 2 ethereum swarm nodes

I have two geth nodes and I want to run 1 swarm node on each node. I made a boot node for the two swarm nodes to communicate with each other. I run the first swarm node with the following command ...
0
votes
0answers
160 views

Genearte error 'invalid sender' when doing send transaction using infura or roopsten

I am using following code to perform transaction web3 = Web3(HTTPProvider('https://ropsten.infura.io/{}'.format('XXXXXXXXXXXXXXXXX'))) print('https://ropsten.infura.io/{}'.format('XXXXXXXXXXXXXXXXXXX'...
0
votes
1answer
66 views

Is there any way to fix my mistake when setting up a Multisig wallet?

So I am an idiot... I know. But feel free to tell me I am. When I set up my Multisig wallet with gnosis I made a fatal error. I created a Rinkeby Test wallet. I did a test transaction and it all ...