Questions tagged [ether]

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

0
votes
1answer
38 views

solidity code warning in remix IDE

I am trying to create a smart contract using the but it is showing warning message in a string "Warning: Unused function parameter. Remove or comment out the variable name to silence this warning. ...
0
votes
1answer
24 views

Is it possible to have ERC20 token (A) own other ERC20 tokens (X, Y, Z)

I'm building a DAPP, where a user has one 'parent' ERC20 token and several other 'child' ERC20 tokens. So what I want is .... To have a parent token A, and that token owns the tokens X, Y and Z. In ...
0
votes
1answer
102 views

Etherscan “Write Contract” Tab - what is it for?

What is the purpose of the Write Contract Tab in Etherscan? For example, if you look up the QTUM Token Contract on Etherscan (https://bit.ly/2IsddkT) and then tap on the Write Contract TAB, you have ...
0
votes
2answers
63 views

Error converting wei using promises in NodeJS

I am running this code on NodeJS application: let destinationBalanceWei = web3.eth.getBalance(process.env.DESTINATION_WALLET_ADDRESS).then(result => result.toString()) let destinationBalance = ...
0
votes
1answer
63 views

ParsedContract.sol:1:17: ParserError: Token incompatible with Solidity parser as part of pragma directive

Code : git clone https://github.com/dappuniversity/election https://github.com/dappuniversity/election/tree/2019_update Errors faced : Commands: Compile: truffle compile Migrate: ...
0
votes
1answer
58 views

how to find if a Tx hash is in pending state in ethereum mainnet after web3j fastTxMgr timeout

I am using QueuingTransactionReceiptProcessor() with callback accept(). DEFAULT_POLLING_ATTEMPTS_PER_TX_HASH is 10 and POLLING_FREQUENCY is 15000. That gives nearly 3 min wait for network to ...
0
votes
1answer
77 views

How to create trueUSD token to my eth address [closed]

I am newbee about smart contract and eth tokens. I have created an eth account by: let account = web3Client.eth.accounts.create() I have my account details. I need to add some true usd token to eth ...
0
votes
2answers
50 views

Blochchain Smart Contract App

Actually Im working on a blockchain application based on smart contracts that allows to buy/sell properties and paying in cryptocurrency using Ethereum and Bitcoin. I wonder I develop smart contract ...
-2
votes
2answers
95 views

How to check ETH contract deposit? [closed]

I want to check ETH contract deposit. ETH contract deposit : (https://etherscan.io/tx/0xc4ae4e2444e91b02633cc771468585c954cc444e300ddceb659776287a4bdd39) { "blockHash": "...
0
votes
1answer
33 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
1answer
33 views

How to use own custom token instead of gas price in ether? [duplicate]

I want to make my token and want that the token should be used as gas price. Is that possible,if yes please guide me for the same.
0
votes
0answers
47 views

Dose not sync Ethereum main net

I have wont start go-ethereum full node on my server. when i have start with ./geth --rinkeby --rpc --ws console started sync process Ok. But when i wont start with mannet ./geth --rpc --ws ...
0
votes
1answer
30 views

Can we pass some verification values from web to solidity contract?

Is there a way we can pass some value checks from web to solidity contract Just for example if we want to make sure, the person who is calling contract function is present on our website and not suing ...
0
votes
1answer
94 views

User ether.js mnemonic for bitcoin

I'm using Ether.js for my react native app to create mnemonic. i want use Wallet.fromMnemonic(code, path) to get key pairs but when i send bitcoin Derivation Path i get and ethereum private key which ...
0
votes
1answer
32 views

Store different numbers in Blockchain

pragma solidity ^0.4.24; contract Count { uint256 storeddata; function set(uint256 x) public { storeddata = x; } function get() public view returns(uint256) { return ...
1
vote
0answers
98 views

Ethereum Qr-code with amount?

How should a qr-code be formated with an amount in it? The npm package ethereum-qr-code uses the following format according to EIP-67: ethereum:0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8?gas=42000&...
1
vote
0answers
27 views

method personal_signTransaction not supported

Good Time I'm trying to test a smart contract in local ethereum wallet with connecting to the ganache-cli but when I try to create a wallet contract it gives me an error: method ...
1
vote
1answer
70 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 ...
1
vote
2answers
40 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
88 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
28 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
24 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
65 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
25 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
248 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
271 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
36 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
238 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
27 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
47 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
35 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
41 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
65 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
57 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
25 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
164 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
71 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
86 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
331 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
181 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
44 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
128 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
130 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
282 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
103 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
715 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
57 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
84 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 ...