Questions tagged [ether]

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

1
vote
1answer
5 views

Gas cost for contract transaction called form external

If I call my contract and ask it to send x amount of ether to another account y, I know i have to pay a transaction cost. Will the contract also have to pay any amount while sending the ether to the ...
0
votes
0answers
21 views

Auction contract privacy

I have an auction contract, where bidders bid with Ether then me (owner) select which offer is most suitable and thus this bidder is contract winner. Once the winner is selected, I send him data as a ...
0
votes
1answer
15 views

Parser Error - Creating EIP20 Tokens

function transfer(address _to, uint256 _value) public returns (bool success) { require(balances[msg.sender] >= _value); balances[msg.sender] -= _value; balances[_to] += _value; emit ...
0
votes
3answers
43 views

Auction contract question - Ether lock

I have an auction contract, where bidders bid with Ether then me (owner) select which offer is most suitable and thus this bidder is contract winner. Once the winner is selected, I send him data as a ...
2
votes
1answer
38 views

How to pay gas fee for new addresses of ERC20 tokens that initially have 0 Eth balance? [duplicate]

I have a confusion, When we create new address/account for an ERC20 token then it have 0 Eth balance. When we send some tokens to this address and then withdraw token again from this address require a ...
1
vote
1answer
20 views

I've given Gwei less than 0.1 for a transaction, and it's been an hour, and it is not showing up in etherscan!

I know I pretty much messed up with Gwei, I've given it < 0.1. My doubt is if the transaction gets failed will the funds get back to my wallet or lost forever and how much time will it take for the ...
0
votes
1answer
32 views

How to test the fuctionality of a Bittrex-related smart contract?

I've got my hands on a smart contract related to the Bittrex exchange. I would like to deploy this smart contract to test the functionality but I don't know how to call the functions properly. My ...
1
vote
1answer
43 views

Three questions

I have recently become interested in crypto and after much reading on Ethereum I still have three burning questions that perhaps some of you can help with. Apologies in advance as some of these might ...
0
votes
0answers
9 views

Ethereum Boardcast shows error: non-canonical integer (leading zero bytes) for *big.Int, decoding into (types.Transaction)(types.txdata).S"

I meet with a problem, does someone can help me how to deal with leading zero in raw-transaction? My raw transaction is: ...
0
votes
0answers
25 views

Rinkeby ethereum block stuck at 4321234

I'm trying to sync rinkeby using parity with patch to support rinkenby but now it's stuck at block 4321234. Does anyone have solution to pass that block without having to resync from the beginning? ...
1
vote
0answers
33 views

How and Why other should buy and sell my ICO token? [closed]

When I invest or create a token, I am hoping someone in the future will want to buy it at a higher price. Why would anyone buy my tokens to use the platform if the price of the token keeps increasing ...
0
votes
1answer
28 views

Minable crypto contract

How can I create mineable cryptocurrency using ERC20 token? Do I need to code it using smart contact or need to do something else. Also I want my personal node where will be running my Ethereum node ...
0
votes
1answer
12 views

Launch ERC20 token [duplicate]

I have implemented the ERC20 interface and the token is ready. Next step is to list it on an exchange like kraken. What is the process ? What determines the initial value of a custom token ? What will ...
0
votes
0answers
17 views

DeclarationError: Undeclared Identifier. Did you mean “_data”? data = _data ^__^. All i want is to create a cryptocurrency

pragma solidity ^0.5.1; contract owner { address public owner; function owned() public { owner = msg.sender; } function set( string memory _data) public { data = ...
0
votes
1answer
21 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 ...
0
votes
1answer
10 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 ...
0
votes
1answer
15 views

How to view or transfer initial ethereum smart contract balance?

I created a new smart contract token with initial supply and deployed it via MetaMask. Then I added this token into MetaMask but token balance is Zero. Now, My question is when we create a new ...
0
votes
1answer
66 views

Create an ERC20 Stablecoin [duplicate]

How to create a stable coin with an ERC20 token contract ? Does it require contract to be modified ? Are there some good practices or standards ?
0
votes
0answers
9 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
7 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 ...
1
vote
1answer
91 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: " " => ""...
1
vote
0answers
33 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
1answer
32 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
52 views

How to connect Trust Wallet in Javascript?

I want to use TrustWallet for payments in my project for mobile users. I saw the documents related to TrustWallet web3 API but not getting how to use it in javascript. Can anybody help me with the ...
0
votes
1answer
15 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
18 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 ...
0
votes
1answer
14 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 ...
0
votes
1answer
25 views

Calling a function from another contract is not working. But calling the function from deployed contract is working

I have a problem with calling a function from another contract. I don't know why it is not working. Contract DateTime(https://github.com/pipermerriam/ethereum-datetime) is a util for converting ...
1
vote
2answers
186 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
20 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", ...
1
vote
0answers
61 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
33 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.
0
votes
1answer
32 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 ...
2
votes
0answers
23 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
15 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?
1
vote
3answers
39 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
22 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
48 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
104 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 ...
1
vote
3answers
19 views

Is there anyway to seize an account from smart contract?

I creating a smart contract for manage loans and I am searching some way to make me sure when the borrower defaulted pay back the loan, seizing some percentage of ether from the guarantor's account. ...
0
votes
0answers
74 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
55 views

problem calling balanceOf from another contract

I try to learn solidity and i have a problem. I've created a base token and i want to call the balanceof method from this token in another contract. In Solidity Remix i get : call to BaseTokenBet....
0
votes
0answers
37 views

How to import Txhashes to ETH cold wallet?

I would like to import Txhashes to my cold ETH wallet. The tx's are done on a connected device and transferred securely via QR codes. I can do this with BTC in Electrum but have found no way of doing ...
0
votes
0answers
37 views

could n't find ABI constructor in my input data

I have developed the solidity code and need to verify the smart contract but I could not find Constructor Arguments ABI-encoded check the screenshots, i have developed in testnet
1
vote
1answer
44 views

Ether in ERC-20 transactions?

I have one contract that I give tokens from a ERC20 contract implemantation. When I call the balanceOf function from the Token conract. Response me that I have x Tokens. Nice !! But when I try to ...
0
votes
1answer
44 views

Decoding Hex value in solidity

I am trying to view values stored on my ethereum contract using ethereum wallet. Currently the values are being placed onto the contract in hex format. Is there a way to decode them on the contract so ...
0
votes
0answers
20 views

Error - received an error when i sent transaction

Error - received an error when i sent transaction but it seemed to go through no problem. a few mins later it came up insufficient funds. My account has a positive balance. receiving address of my ...
1
vote
1answer
23 views

Ethereum transaction fails in simultaneous calls

I am making two calls simultaneous call with a single wallet. First I am making a contract call then I am making a ether transaction call. The first call succeeds, but the next call fails. I got this ...
0
votes
1answer
70 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; } ...