Questions tagged [balances]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
39
votes
3answers
12k views

What are the pros and cons of Ethereum balances vs. UTXOs?

Ethereum has a simpler model by not having UTXOs (Unspent Transaction Outputs) like Bitcoin. What does Ethereum "give up" by not having UTXOs, and what does it gain?
18
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 ...
16
votes
3answers
5k views

How does the Ethereum ETH accounting system work and prevent double-spends?

In Bitcoin, the BTC accounting system is based on UTXOs (Unspent Transaction Outputs), which prevents the same BTC from being spent multiple times. I heard that Ethereum has a simpler account balance ...
4
votes
2answers
3k views

How do I print my account balances and TheDAO tokens from geth

Is there a convenient script to print out my account balances and TheDAO tokens from the go-ethereum client geth?
12
votes
4answers
6k views

How to transfer the whole balance of an account?

If I have an account with 5 ETH, can I send the full account balance of 5ETH to another account and have exactly 5ETH received on the second account ? I understood that it will fail because I have no ...
4
votes
1answer
2k views

What is the address and balance of The DAO's extraBalance account

From The DAO - Creation: In the first 14 days, The DAO tokens are created at a rate of 1 ether = 100 tokens In the subsequent days before the end of the creation period, the number of ethers for each ...
3
votes
3answers
2k views

How does etherscan fetch the number of token holders from a smart contract?

I was wondering How does etherscan fetch the number of token holders from a smart contract?
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 ...
5
votes
3answers
12k views

How to transfer Ether between accounts in Solidity?

I'd like get ether balance of account in solidity. I tried the following, but it didn't work. Could you tell me how to do it? contract MultiplyContract{ address public buyer; address public ...
9
votes
3answers
4k views

Etherscan API - Get all token balances

Is there a way with the Etherscan API so that you can get all the erc20 token balances for a specific address? As explained here, you can see them with their web UI (the token tracker dropdown). Does ...
4
votes
1answer
3k views

Why “Insufficient funds” error?

I'm trying to send a transaction into testnet from an account having a balance of 516,561,000 Babbages. According to my calculations, this is exactly the cost of the transaction to perform. ...
7
votes
1answer
533 views

How can I list The DAO proposals and vote from the command line?

Are there any command line tools to vote on The DAO proposals? I would like to: List the open proposals Check whether I have already voted on these proposals Check my voting history Vote on the ...
5
votes
1answer
818 views

Why Are Balances Not Displaying On An Imported Wallet in Mist? (It Does Appear on Etherscan) [duplicate]

I just got a new computer, installed Mist 0.8.8, synced the entire blockchain, then copy-pasted a UTC wallet file from my old computer into my new computer's %appdata%>keystore directory. The wallet ...
3
votes
0answers
176 views

Ethereum wallet shows “no accounts yet” and 0.00 balance [duplicate]

I last used Ethereum wallet in June or July this year. Yesterday I upgraded on macOS to 0.8.7. It is syncing very slowly; at this rate it will take a week to finish the remaining 189,000 blocks. In ...
3
votes
1answer
737 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
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....
1
vote
0answers
80 views

What is missing to make a successful payment between payer and recipient?

I tested both signing payment and signature verification that is implemented by JavaScript and EthereumJS here: And both of them (signing and verification) properly work, meaning that I am sure the ...
0
votes
1answer
958 views

Private Variables [duplicate]

I am wondering if it is possible to have some "private" variables in a contract, by private I mean that I can read the value only if I am the owner of a specific wallet. A simple example is today's ...
7
votes
1answer
2k views

MIST - How to send all coins in account

Mist shows that I have 1 ETH in my account. When I check etherscan see exactly 0.99895 ether in my account.... I would like to send all 0.99895 ether to another address. When I try to send exactly ...
8
votes
2answers
3k views

How can I get notification from geth when I receive ether?

I'd like to get notification from geth when my account receives ether. I'm thinking to type api command eth_getBalance in every minute, in order to check if my account receive ether or not. However, I ...
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
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 ...
9
votes
1answer
2k views

What are the balances of The DAO and it's child DAOs on the Ethereum Classic chain?

At the hard-fork block #1,920,000, the ETH balance from The DAO and it's child DAOs (which includes the balance from the extraBalance account) were transferred into the Withdrawal contract. What are ...
4
votes
1answer
984 views

How do I know how “confirmed” the result of calling getBalance API is?

Documentation for getBalance doesn't seem very clear to me. I would like to know the balance but want to know how many confirmations does the balance returned have. I was assuming that passing the "...
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: ...
2
votes
1answer
596 views

When will the Baddies have access to the hacked funds on the Ethereum Classic chain?

The Baddies drained 3641694.241898506992612606 ETH via The DAO's child DAO #59. When will the Baddies have access to the hacked funds on the Ethereum Classic chain? See also: Which split proposal ...
4
votes
1answer
5k views

Account Balance 0 after 1 full day of GPU mining - GTX 770 - go-ethereum and ethminer [duplicate]

I am a little bit new in Ethereum Mining but I took a couple of days to read, study and understand the concept. I make my system (a clean one) Linux Ubuntu 14.04 ONLY for Ethereum Mining. I installed ...
2
votes
2answers
603 views

“missing trie node” when requesting balance

I've been getting the "missing trie node" error in the majority of my eth_getBalance requests if I use anything other than the "latest" block or very recent blocks. For example, the request: "...
2
votes
1answer
523 views

What's happening within child DAO #59 on the ETC chain?

From What are the balances of The DAO and it's child DAOs on the Ethereum Classic chain? we know that the baddies have drained 3641694.241898506992612606 ETH from child DAO #59. What is happening ...
1
vote
1answer
291 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 ...
1
vote
1answer
298 views

Get a balance of an address at a certain block

We are facing a problem with the web3.eth.getBalance(address [, defaultBlock] [, callback]) ( here the doc ). The function works well for last block, or for a small number of blocks in the past, but ...
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 ...
1
vote
2answers
614 views

Get Token Balance without using nodejs

I am trying to get Token Balance using plain javascript, no nodejs or web3. With web3 and nodejs I can do: exports.getTokenConfirmedBalance = function(node, query, abi) { return new Promise((...
0
votes
0answers
47 views

Why incorrect number of tokens are sent according to the current rate to the contributor.?

Token Contract https://ropsten.etherscan.io/address/0x6f5c43f62b4b18aa8ed37b42f2804f7049cbe0e9#code CrowdSale Contract https://ropsten.etherscan.io/address/0x9b94e1894abe2051e6e96bf1b57fe5d3adbbc5aa#...