Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
0answers
12 views

Transfering funds from a contract address to a list of winners [on hold]

I'm building a competition dapp where user has to pay to the contract to participate and I want to send the collected funds to 3 winners. How can I do so in a smart contract.Help
1
vote
1answer
39 views

Simple smart contracts to make a bet

I would like to create a simple smart contract between me and a couple of friends (basically, I'm putting money on the line and betting them that I will do something that they don't think I'll do.) ...
0
votes
1answer
22 views

Truffle will not compile contract written in VS code. Pragma error

I'm trying to run example from https://truffleframework.com/tutorials/pet-shop, but when I run truffle compile I get error saying Error parsing C:/WINDOWS/system32/TruffleTest/pet-shop-tutorial/...
0
votes
1answer
16 views

How to add actual Ether to custom token

I built a token by creating a smart contract for it, and have successfully connected to it, which is on a Ethereum test-net. Using web3.js I have been able to send token from one account to another ...
2
votes
3answers
45 views

accepting ether in a smart contract

I want to create a simple smart contract for registration of users to a competition where when users can pay to contract and 2 ethers will deduct from his account. But when I'm trying to do so on my ...
0
votes
0answers
16 views

Ethereum blockchain monitoring and contracts input data parsing

I am monitoring a particular addresses, that may be used as transactions' destination addresses in contracts' internal transactions. I should support monitoring of the sendMultiSig method (contract - ...
0
votes
0answers
23 views

Sending message on a transaction?

I want send a data on a transaction. _data is storing my message.. Here's my code: const Tx = require('ethereumjs-tx') const Web3 = require('web3') const web3 = new Web3('https://rinkeby.infura.io/v3/...
0
votes
0answers
8 views

Issue in understanding Crowsale in the ICO contract

I want to create a token and run an ICO but all this without the function of crowdsale and minting. It want it to be a token which has a strict initial suplly (exmpl 1M) and without the funtion of ...
0
votes
0answers
20 views

When will the ETH amount return to my wallet? [closed]

I recently tried to transfer ETH from my external wallet to Wirex. It failed due to gas price limit reached. When will the ETH return to the external wallet? TxHash: ...
0
votes
1answer
18 views

Why does the Warning about Solidity come up?

# Why does the Warning come up? struct Owner { address owner; string ownerName; string petName; uint ownerprice; string petInfo; string petselltext; ...
1
vote
0answers
28 views

Ethereum transactions full history

How do I retrieve the transaction history of ethereum? I want to get all transactions that include this crypto currency for specific time periods. I looked at the ethereum API, but it needs some ...
0
votes
1answer
28 views

What does ERC20Interface do in smart contracts?

I found this fantastic code used to generate a smart contract which allows you to send your ERC20 tokens to another address. A simple overview / explanation of how that works is as following: We ...
0
votes
0answers
15 views

ERC721 Metadata Creation

I've recently deployed a smart-contract. It can be easily viewed here: https://rinkeby.etherscan.io/addres/0x768adab11d7accbbed0f6947ef7a677b4fea8392 Moreover, I do own a metadata in structured in ...
1
vote
1answer
13 views

ExecutionFailure in MultiSigWallet contract

I wanted to test a simple use case of MultiSig wallet. To do that I've deployed gnois MultiSigWallet.sol to Rinkeby network. Before testing the multisig functionality I wanted to deposit 0.1 ether to ...
1
vote
1answer
41 views

Solidity 'out of gas' exception when trying to transfer Ether

I try to transfer Ether from the contract to an address but it gives the error that the transaction is out of gas. I think it's a small problem but I can't find it. I have to specifically use solidity ...
0
votes
1answer
20 views

How to make transaction of some ether in Buyer Seller type of contract?

In this I have set modifier (msg.sender == sellerAddress) which is not valid. But in this scenario, I want to allow only and only sellerAddress to take ether from my contract. How can I allow only ...
0
votes
1answer
26 views

Is it possible to store same USD-equivalent value of ether in a Contract?

Let's say my DApp requires a seamless way to transfer USD between users, given that some contract requirements are fulfilled first. Person A transfers USD to person B, the latter only gets a deposit ...
1
vote
0answers
40 views

My code compiles on remix.ethereum.org but not on etherscan.io please help! [closed]

I get this error " ParserError: Function, variable, struct or modifier declaration expected. function transferFrom(address _from, address _to, uint _value) public returns (bool) ^ " everytime I ...
3
votes
2answers
33 views

ERC-20 Token Transfer Error : Bad jump destination

I'am trying to send ERC20 from 1 address to another but i'am getting that error : Blockquote Contract 0x557e4cca38277b9bf9f1f1bf333dfe4b0ac5541a Warning! Error encountered during contract ...
0
votes
1answer
44 views

I need to know how to send ether from one address to another address for my Dapp

I have coded the below code it executes well but the ether cannot be send only the gas fees are sent? pragma solidity ^0.5.2; contract sendEther{ address payable rec= address(...
-1
votes
0answers
26 views

Require msg.sender.balance not work correct in payable function

I create payable method in my contract. All works good, but when I add condition about balance of sender I catch error: "VM Exception while processing transaction: revert": Method buy is below: ...
2
votes
1answer
36 views

Is there an Ethereum Testnet Android Wallet?

I am looking for a testnet-specific Android wallet app to load with a few Ropsten test Ether, for a web app I'm building. But for the life of me, I cannot find such an app for Ethereum. For Bitcoin I'...
0
votes
3answers
23 views

Transfer ETH using third party

I want to transfer ETH from an individual address to another address. So is there any API provider who can send ETH from single Address to another address. Also If I setup Web3 in windows machine ...
1
vote
0answers
16 views

Any php script to sign transaction?

Can you recommend some php script to sign transaction.Thanks.I want to find some php script to sign transaction and without using web3.
1
vote
1answer
33 views

Transfer from multiple inputs

Is there a way to send ether from several input addresses in one transaction WITHOUT the use of smart contracts? I wish that different transactions could not be linked to each other. A similar ...
1
vote
1answer
230 views

How to hide my eth balance [duplicate]

i want to hide my eth balance from myetherwallet, etherscan , ethplorer .how to hide my eth balance in my ether wallet , etherscan , ethplorer. any methods available, please reply thanks
2
votes
1answer
31 views

Issues sending Ether with web3j

Hello guys I have search around but no reasonable explanation as to why i would get these exceptions, I have already requested and have 3 ethers with associated with my address. Here is my code for ...
8
votes
1answer
478 views

Can a contract with no payable function have ether?

The question in the title says it all. To the best of my understanding, the only way to deposit ether into a contract is by calling a payable function, and set msg.value larger than 0 (and of course, ...
1
vote
1answer
20 views

Event not visible on Etherscan transaction list

I have a BuyToken event when user send ether to smart contract they will receive tokens based on ether amount. For ex: 1 ETH = 1000 Token. /// This notifies clients about the Buy Token event BuyToken(...
1
vote
1answer
30 views

Programmatically send ERC20 tokens to user wallet. How does transfer work?

I have been researching how to securely send and transfer ERC20 tokens from the contract address to a new user wallet. Tokens will be earned through participation on my platform. Based on results I ...
0
votes
2answers
43 views

How Does Exchanges Implement Gas Fees for ERC20 Tokens

Any crypto exchange like binance, bitfinex and so on let you deposit and withdraw various ERC20 tokens. Technically I don't understand how they implement gas fees when I withdraw? I deposited 100 ...
1
vote
1answer
33 views

How to update value on ethereum blockchain without metamask?

pragma solidity 0.4.24; contract UniToken{ string value="Hello"; function set(string x) public { value = x; } function get() public view returns (string) { return ...
1
vote
1answer
25 views

Multiple Array[] along with mapping handling

This code is running but when the same user make a bid then the bid is being replaced from the first bid and event is printing twice the same record. i want that one address make a bid and for his ...
1
vote
3answers
79 views

infura vs Eth Node [duplicate]

I want to connect web3 services with public Ethereum (main net/test net) to execute my smart contract method. Which is better Infura or to create my on Node? Please suggest.
1
vote
1answer
31 views

In proof of stake, is there a difference between being offline and deciding to leave entirely?

I'm struggling to understand the proof of stake concept. As I understand it, in order to participate in validation and its rewards, you must ante up some ether (I was told a minimum of 32). You are ...
1
vote
1answer
29 views

Solidity keyword require (false) will run out of my gas, why?

I meet a strange problem when I test my contract in Remix-ide + geth 1、I run a private chain in geth 2、I connect to the node with web3provider in Remix-ide 3、I deploy the contract like this : ...
1
vote
2answers
40 views

What is wrong with the 'sell' and 'buy' token functions in my contract? [closed]

There is my solidity function buyTokens(uint256 _numberOfTokens) public payable { // Require that value is equal require(msg.value == multiply(_numberOfTokens, tokenPrice)); // Require ...
1
vote
1answer
30 views

What are all possible values of txreceipt_status?

I was wondering what are all the txreceipt_status possible statuses. I was investigating some blocks and noticed that some statuses are empty like: ' ' or have '1'. For both of those, transactions ...
0
votes
1answer
27 views

What is the purpose of Private Blockchain?

What is the real purpose of private blockchain for example in Ethereum ? I mean found a lot of tutorials online about creating a private blockchain, creating an accounts there, setting coinbase accout,...
0
votes
1answer
63 views

The use of ERC20 tokens in a private ethereum network

I am being told to use a private blockchain instead of the public one in attempt to cut gas cost. But I was hit with the problem of the value of ether and tokens in this private blockchain. I am ...
1
vote
1answer
27 views

ICO and Token both together

I know we can create a token contract and also we can create a ico contract. Is it possible to create a contract include ICO and Token itself? any idea or example?
1
vote
2answers
68 views

DappHub Multiply Function

Could someone explain the use of performing a multiplication such as this? I mean the logic is fine, but what is the importance from a security point of view? function mul(uint x, uint y) internal ...
0
votes
1answer
20 views

What is a suitable pattern for mobile/web apps that leverage ether?

Looking to understand how to build an app that leverages Ethereum - what suitable patterns are out there (ideally to go via some tutorials). I'd like to build a Hello World simple app (mobile and/or ...
0
votes
1answer
36 views

Any option to get larger amount (i.e. 2000) of Rinkeby Ether?

We are planning to open our product to the public for live testing. We want to support both Ropsten and Rinkeby networks, just in case. When registering, each user should get around 10 ether on ...
1
vote
1answer
209 views

Remix is compiling the smart contract but not solc command

I am able to successfully compile a smart contract in remix IDE. However when I try to do the same with solc npm command, it shows a JSON error when compiling. Voting.sol pragma solidity ^0.4.25; ...
1
vote
2answers
26 views

What is meant by locking of ether in proof of stake?

In PoS, forgers stake their ether on a block. These ether are locked and can't be used. What does it mean by locking of ether and how does it work?
1
vote
1answer
46 views

the balance in genesis file is it in ether or wei?

In genesis.json file I have this balance : "bd7a14e103ffa97ec5fd96d9975adb1b52756ef3": { "balance": "0x200000000000000000000000000000000000000000000000000000000000000" } the hex number ...
1
vote
2answers
49 views

What are the use cases of tokens? How they are different than ethers?

I am searching for the ERC20. From what I found is that , tokens allow us to have our coins based on smart contracts. But I am little bit confused about the use cases of tokens? When I should use them ...
1
vote
0answers
22 views

Ethereum js wallet for php

https://github.com/ethereumjs/ethereumjs-wallet I need this library with the same functions in PHP Would u give me the link
1
vote
1answer
37 views

How to make fair gas consumption of smart contract users

i have made a contract that 2 users participate in the smart contract, both users do the same steps however i notice it that user1 pay more gas ( transaction gas and execution gas ) than user 2 any ...