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
1
vote
2answers
51 views

How to use function arguments of payable function for require statement?

function createCampaign(uint deposit, address ll) public payable{ dpst = deposit; require(msg.value > (40*dpst)/100 wei); address newCampaign = address((new Campaign).value(msg.value)(...
2
votes
2answers
98 views

What is the unit used when using the SetBalance() function of the state package?

Maybe I missed it, but can't seem to find it anywhere. Is the unit used in Gwei or in Eth? For example when writing : stateDb, err := state.New(rootHash, db) if err!=nil{ return err } addressA :...
0
votes
1answer
30 views

creating instance of contract trough a factory contract! Problems with balance!

hopefully someone can help me with my question. I have a factory to create an instance of a dealContract. Everything works except one thing. I cant send wei to the created instance, so lets see the ...
1
vote
1answer
27 views

Saving ethers in local private testnet

I created a private ethereum tesnet using geth and it runs well on the system. However, I lose all the ethers in my account everytime I close the application. Is there a way to permanently save the ...
0
votes
1answer
108 views

Which smart contract should I use to wrap Eth [closed]

I need Weth for my dapp. So I looked at how AirSwap converts ETH to Weth. On the Rinkeby testnet, AirSwap calls this contract and uses the "deposit" function. I see from the code how this would work. ...
0
votes
1answer
29 views

Ethers in a light node

Since a light node makes transactions from a connected full node, does a light node need ethers to make transactions or it uses the ethers from the full node?
2
votes
1answer
374 views

Simple smart contracts to make a bet [closed]

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
317 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
45 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
451 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
32 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
63 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
42 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 ...
1
vote
0answers
48 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
86 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
88 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
31 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 ...
2
votes
1answer
211 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
25 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
31 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
74 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 ...
3
votes
2answers
127 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 ...
1
vote
1answer
482 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(...
2
votes
1answer
218 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
48 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
168 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.
2
votes
1answer
185 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
326 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
143 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
792 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
80 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
112 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
159 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
71 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
34 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
463 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
56 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
82 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
80 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
64 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
50 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
244 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
35 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
80 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 ...
1
vote
1answer
27 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
90 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
484 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
46 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
124 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
316 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 ...