Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
6 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
0answers
20 views

Create an ERC20 Stablecoin

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
7 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
75 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
20 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
25 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
27 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
21 views

Creating a complex splitter smart contract Solidity [closed]

I'm hoping to create a smart contract that splits the amount of Ether sent to it to an array of addresses, each of which has a percentage 'equity' that represents how much of the total they should ...
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
12 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
20 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
177 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
18 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
26 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
30 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
30 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
13 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
21 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
38 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
82 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
18 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
42 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
37 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
31 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
33 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
42 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
40 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
18 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
22 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
53 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
0answers
14 views

Can I send an ERC-20 token to my users even if though I have 0 ETH?

Let's say I have USDC erc-20 token and I want to send it to my user's ETH address. But I have 0 Eth. Can I send it? If not, what methods are there to bypass that requirement of having to always have ...
0
votes
1answer
33 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
79 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
52 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
40 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
48 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
68 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
45 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
75 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
29 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
44 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
86 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 ...