Questions tagged [balances]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
546 views

Balance returns zero but shows ether with web3.eth.getBalance on testrpc

Issue: Using an account on testrpc I get 0 as my balance from within a program but I get the correct amount when I query balance at web3 command prompt: //here I'm calling a function (shown below) ...
0
votes
0answers
122 views

can't get transfer to execute

I am trying to run the following solidity function: function test() payable { msg.sender.transfer((balances[msg.sender]/1000)*this.balance); } Where this.balance is 0.1 Ether and balances[msg.sender]...
21
votes
3answers
5k views

How to programmatically detect and accept ETH and ERC20 deposits

I'm looking to replicate the functionality provided by cryptocurrency exchanges such as Kraken and Poloniex when it comes to depositing ETH and tokens. Namely: Users can generate and send funds to ...
1
vote
1answer
256 views

Check ethereum balance using text box

I want to check ethereum balance of accounts by entering address in text box and click on check balance button it must show the balance in the account. Please some one help with related links My ...
1
vote
2answers
779 views

Distribute balance of a contract between owner`s tokens based on percentages?

I have a contract and I have ether in it. How can I distribute balance of contract between owner`s tokens base on percentages?
1
vote
1answer
201 views

Funds sent to a contract does not show up in the contract

I have this simple contract which has a payable method. contract Betting is usingOraclize { function Betting() { //... } function sendEther() payable returns (uint) { return msg.value; ...
3
votes
1answer
777 views

Why is my balance not equal to the sum of inbound, minus the sum of outbound and fees?

I expect to be able to calculate the balance of an account in this way: add up the value on all the incoming transactions, and subtract the value on all the outgoing transactions, then subtract all ...
2
votes
0answers
41 views

Ropsten: Ether is not in my account, but I think it should be [duplicate]

I'm a bit confused... I've created an Ethereum account in Ropsten, and have fed it some Ether (more than 20) via faucet. Yesterday I synched my node with Ropsten and I could see the balance correctly,...
0
votes
1answer
1k views

Error: invalid address during getBalance and send Raw Transaction

Im using web3.js to retrieve the balance for the main account on my geth server I set: let provider = new web3.providers.HttpProvider(ethereumNode) web3.setProvider(provider) if (!web3....
1
vote
2answers
289 views

Does use of geth removedb zero my account balance?

Geth syncing is stuck for several hours. I want to delete my blockchain using geth removedb. Will this affect my account? Will my balance become zero?
2
votes
1answer
4k views

How Ethereum token transfer works

Does an account get actual tokens when you call a transfer function in an Ethereum token contract or is it just a balances mapping that registers how many tokens each account (address) has? I am ...
1
vote
1answer
296 views

How to rescue my Ether [duplicate]

This comes happening being some time with me and i'm getting upset about it. In some terminal, i start geth with: geth -rpc --mine --fast --cache=1024 And in another terminal i start mine with my ...
2
votes
2answers
1k views

How can I get ETH balance with pending transaction?

I use web3.eth.getBalance to get balance of a specific address. I want to get how amount of unconfirmed ETH the address has. var Web3 = require('web3'); var web3 = new Web3(new Web3.providers....
5
votes
3answers
3k views

Automatically update account balance with web3.js without polling

I've made a user interface in JavaScript with web3.js where the user can select an account to use. The accounts are displayed together with their current balance for convenience. I load the account ...
0
votes
1answer
52 views

Dealing with keystore files

I have linux based miner with geth wallet. I've backed up keyfile (starting with UTC ... ..... ) into my second computer based on Windows where I've sucessfully imported it into Geth keystore folder. ...
1
vote
0answers
579 views

Calculate ERC20 token distribution [closed]

I'm tasked with determining the current distribution and live wallet stats of a particular ERC20 token. My experience with Ethereum development is largely with web3js, and have a strong idea on how I ...
2
votes
1answer
140 views

Can't transfer more than 9007000000000000 tokens at once?

I'm using the Zeppelin ERC20 code and I can't seem to transfer more than 9007000000000000 token "cents" at a time. Address a has a balanceOf 1000000000000000000000000 (10 million tokens * ...
18
votes
2answers
4k views

Why is my ether balance 0 in geth, even though the sync is nearly complete?

My geth --fast sync is nearly complete, and the balance shows correctly on Etherscan. I was running geth on linux and haven't synced in a while, so I deleted the chaindata and updated the wallet and ...
1
vote
1answer
1k views

web3.eth.getBalance returns always zero

I have an ether account (whose details I prefer not to disclose here). I can confirm in etherchain.org that it has the correct amount of funds. I can also check that the funds were transferred in ...
2
votes
2answers
936 views

How to calculate the amount to transfer to completely empty an account?

So let's say my wallet is 1 eth, I need to completely empty it and I'm going to do it this way Var value = web3.toWei(1) - gas Is that right?
3
votes
0answers
294 views

Account and/or Balance not found in Geth for Smart Contract Deployment

Error 'Error: Account does not exist or account balance too low' Overview I'm trying to deploy the greeter smart contract in the ethereum.org/greeter tutorial. I downloaded/validated the ...
0
votes
1answer
140 views

If you know someone's ethereum address do you effectively know their balance? [closed]

Let's say someone pays you, can't they figure out your balance since the ledger is exposed to the public?
1
vote
0answers
332 views

Why is my Ethereum Wallet balance wrong, even after sync? Etherscan vs. Wallet mismatch

Why does my Ethereum wallet disagree with Etherscan? It's been 24h. I made the transaction from Kraken myself, so I know the Wallet is wrong. I don't think this is a duplicate question, because I've ...
1
vote
1answer
2k views

How to return balance of smart contract for particular address in solidity?

I want to create a function which will accept address as argument and return balance of smart contract here is what i function get_balance(address _add) { balance = balanceOf[_add]; ...
31
votes
3answers
25k views

How to get a contract's balance in Solidity?

How do I get the balance of a contract with solidity? I know geth has web3.eth.getBalance(), but that's to get the contract balance after it has been deployed. Is there a standard way of doing this, ...
1
vote
1answer
1k views

How to send from multiple accounts to the one account in the contract

For example, I have 3 accounts with balances: 1 account - 5 ether 2 account - 15 ether 3 account - 7 ether I want to send 20 ether, so it will be used 1 and 2 account. I understand, how to make ...
2
votes
0answers
479 views

Geth always returning a 0 balance?

i´m mining now for about 3 days with 3 rigs each with over 50Mh/s, but my balance is still 0. Does anybody know why ?
1
vote
2answers
231 views

Why is my account balance after executing the contract so different?

I'm writing a test for a Lottery contract: var Lottery = artifacts.require("./Lottery.sol"); contract('Lottery', function (accounts) { var ACC_FABIAN = accounts[0]; var ACC_RENE = accounts[1]...
0
votes
2answers
390 views

Lost coins of the Ethereum?

Please help me to understand the situation: I sent coins using an Ethereum transaction 0x0ae4b10100ddd1da0a22e6130903294dad57aa763a0a74580660904edc4512b2 Coins from the balance were written off ...
0
votes
1answer
77 views

Ethereum balance not confirmed by online blockchain explorers

When doing eth.getBalance(eth.coinbase) on my geth machine I get some non-empty balance. When checking the same account in one of many online blockchain explorers, this account is either non-existent ...
1
vote
3answers
161 views

See in geth if a smart contract (ICO) was never executed

If I send ether to a smart contract, how can I see in geth, that it was rejected? I want to see which of my transfers were accepted by an ICO and which were not. I don't see any such field in ...
0
votes
1answer
69 views

Can someone please tell what the code would be to check ether balance at a particular point in time?

I want to understand how to check ether balance at a particular point in time.
1
vote
2answers
205 views

Ethereum Miner validation

I have created a private block chain with three Peers. Peer A is having an account which is having 20 ether. Now I am trying send 21 ether from peer A's account to peer B's Account. It is not throwing ...
3
votes
1answer
8k views

Customize minimum payout on ethermine

On the homepage of eterhmine it says that one of their features is "Customizable minimum payment threshold (Standard: 1 Ether, Minimum: 0.05 Ether, Maximum: 10 Ether)" and yet everything else I'm ...
0
votes
2answers
3k views

What happens to wallets during a hard fork?

What happened to "Ethereum" wallet balances when Ethereum was forked from Ethereum classic? For example if someone had a wallet prior to the fork, would that wallet then be compatible in both ...
1
vote
0answers
344 views

Balance not displaying in wallet

Hi, if anyone can provide some help with this issue: I recently downloaded ETH Mist Wallet and am @ 93% synced. My balance that I transferred to my "Main Account" is not displaying in my wallet. ...
2
votes
1answer
934 views

Why don't these transactions add up to the account's total balance?

I'm looking at the balance of this wallet address: https://etherscan.io/address/0x9a77d0900323b5f2b6cff6138569846406cf7456 There is an IN transaction from Poloniex to this wallet of ~33 ETH, then an ...
3
votes
1answer
2k views

How to get balance of a token in 1 line of code on Ubuntu

To get the balance of ether in an address, I am using the code below. (1 line) sudo geth --exec \ "web3.eth.getBalance('0xf6e5911696a3729a7740cbdcd64c05bc2eec60e7')" attach I get: ...
1
vote
1answer
2k views

Retrieve ETC balance using geth

I'm struggling to retrieve my current ETC balance using geth. For mining I'm running: ethminer -F http://etc-eu1.nanopool.org:18888/<ADDRESS>/<NAME> -G Syncing the blockchain with geth: ...
0
votes
1answer
1k views

How can I refer to my actual ether balance in a smart contract?

Not the tokens created in a contract but the balance which I allocate in the genesis.
1
vote
1answer
189 views

How reliable are Ethereum logs?

Do they have a lifespan? Can they be deleted? Have there been any cases of errors with logging or logs not being written? I'd like to know if I can rely on logs and build application logic on top of ...
3
votes
1answer
150 views

Why did my balance return to Zero after stopping Geth? (newbie)

I am a complete newbie just started trying this out last night. I was able to get geth up and running as well as ethminer. I woke up and when i did the check balance command it said i had 500000000 ...
5
votes
2answers
1k views

How can I add some balance to the address in private blockchain testnet?

Geth Version: 1.6.1-stable Git Commit: 021c3c281629baf2eae967dc2f0a7532ddfdc1fb Architecture: amd64 Protocol Versions: [63 62] Network Id: 1 Go Version: go1.8.1 Operating System: windows GOPATH= ...
2
votes
2answers
1k views

Send Token and Check Balance

I want to better understand how to check how much of a token is in my account and how to send that token to another address. For example, suppose I own some Melon (MLN) and want to check how much I ...
3
votes
1answer
50 views

UTXO Output greater than Input

I reviewed the transactions from a recent ICO. The account below provided the largest investment. If you check the account, there is a far greater Out value than In. I was under the impression ...
6
votes
1answer
2k views

How are Ether balances stored on the Ethereum blockchain

My understanding of Bitcoin is that balances are not stored but are instead calculated by summing all in and out transactions. Are Ether balances calculated in the same way or are they stored ...
2
votes
0answers
31 views

Ethereum balance is 0 on local (geth) despite etherchain.org reporting it has ether [duplicate]

I bought some Ether over 4 hours ago: https://etherchain.org/account/0x3d74c07013285b31049ecc7d9cb078cd1aa8ea96 When I run the following script on my local machine I get: $ geth console > ...
8
votes
3answers
9k views

How to retrieve the Contract account balance in web3 or in geth command line?

I have created a private network with miner node using Ethereum. Then I deployed an Ethereum smart contract in the network. I have got the contract address as "...
3
votes
1answer
1k views

Myether wallet.com balance zero but I had a balance and it shows on the blockchain too

Please help as I have sent an email to my provider myetherwallet.com but so far no response sadly. My knowledge is very basic. I opened an account added funds which showed several months ago but ...
4
votes
3answers
1k views

Ether.li transfer problem

I still can't transfer my Eth's from Ether.li to another account. “Please fund your user account with sufficient ether (~0.01 ETH / tx) for gas (transaction fees)“ That's what the site tells me to ...