The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [balances]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
40
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?
31
votes
3answers
24k 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, ...
19
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 "...
8
votes
1answer
820 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, ...
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 ...
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 ...
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 ...
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 ...
6
votes
1answer
6k views

How do I know that I am mining?

Is that everything is ok with this result? When will I receive my first coin? And why can't I see my balance, it shows (it started about 8 hours from first) When I type eth.getBalance(eth.coinbase) ...
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 ...
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
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= ...
5
votes
1answer
479 views

Is it possible to deplete all funds in an Ethereum account?

I have an Ethereum account loaded with Ethers and I need to spend all of them, leaving account final balance at exactly zero Weis. Is that possible? I know using method eth_estimateGas() and ...
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 ...
4
votes
3answers
1k views

What is the most efficient way to read ERC20 balances without knowing the tokens that the address might hold?

There are plenty of examples of reading the balance of an ERC20 token from an address via a balanceOf.call when knowing the token contract address beforehand. However, how would one go about reading ...
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?
4
votes
1answer
1k 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 "...
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. ...
4
votes
1answer
149 views

Is The DAO voting right proportional to the account tokens balance?

Will I have more power on decisions if my token balance is high, or do I always have one vote whatever my balance is?
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 ...
4
votes
1answer
2k views

How to get the token-balance of an external token in my contract

I'm building a token contract with a sell and buy function. User should be able to buy my token not only for eth but also for another token, that I define. Therefore I need the balance mapping of the ...
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 ...
4
votes
2answers
707 views

What's the default value for the second parameter of eth_getBalance() if not supplied

It's not clear in the documentation, but this function works if the 2nd parameter is not passed. What's the default if not passed?
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 ...
4
votes
2answers
382 views

How to pre-allocate ether to new account created in ethereum private network?

Not by genesis file to be clear when we create new account through geth console it should create new account with some pre-defined balance
4
votes
1answer
725 views

Why does my account balance show zero?

I downloaded the new ethereum wallet yesterday. I deleted everything in the folder: chain data, I resynced the whole blockchain aswell. But now when I open the wallet, my balance shows zero... when I ...
4
votes
0answers
302 views

How to add additional parameters to Ethereum Wallet?

I wish to add a few more fields to the wallet file & save it in the keystore so that I can manage them better. For instance, consider the following: { "address": "...
3
votes
3answers
9k views

Cant get address balance using web3js

I am trying to write a function to get the ethereum balance of a wallet address via web3js. Problem is I am unable to make it work for some reason. Here is my code running in VSCode: const testnet = '...
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?
3
votes
1answer
756 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 ...
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 ...
3
votes
1answer
93 views

Is it possible to to send out more ether than account has while compensating for it by another transaction in the same block

Is it possible to have the following scenario? Account A has 20 ether, account B has 20 ether In transaction 1. Account A sends 25 ether to account B In transaction 2. Account B sends 10 ether to ...
3
votes
3answers
376 views

See total ETH received by an adress

I would like to find a tool similar to https://bitref.com/ or https://blockchain.info/, that show how much ETH has been received by an address, in total. I've checked most of the Ethereum blockchain ...
3
votes
2answers
631 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: "...
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: ...
3
votes
1answer
149 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 ...
3
votes
2answers
213 views

Transaction not performed, morden.ether.camp has different transactions than me (Morden)

I'm on morden network. I received Ether and waited roughly one hour, but I have > web3.eth.getBalance("0x3061c735f4e9172a3c66d07fcde6ea560bb3369c") 0 However, the transaction is confirmed: https:...
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 ...
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 ...
3
votes
1answer
78 views

How does The DAO transfers balances to another contract?

Imagine The DAO wants to change it's source code. There is a proposal for DAO to call contract creation with new code for the DAO. After such proposal all ether are transferred to new contract. ...
3
votes
1answer
140 views

What is pendingtotal and nicependingtotal in cpp-ethereum?

If I enter > web3.admin.eth.allAccounts() in my eth client I get the following answer after it lists my accounts: }, nicependingtotal: '21.173 ether', nicetotal: '16.168 ether', ...
3
votes
0answers
293 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 ...
3
votes
0answers
119 views

How are patricia trees used to prove the balance of an account?

I understand how merkle trees are used to prove the balance of an address with a small subset of the blockchain. On the Ethereum case, though, the result of a transaction could depend on the final ...
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 ...