Questions tagged [balances]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
935 views

Ether scan api, compute balance on the date

I need calcualete balance on the date to acconut, but web3 balance and etherscan.com api is missmath. How correct to calculate balance from the available data of api. const web3 = new Web3("https://...
0
votes
1answer
657 views

Check this.balance of another contract

Is there a way to check the balance of another contract from a contract without the use of a public variable? (ie. this.balance)
0
votes
2answers
1k views

JSON RPC get address balance

I'm trying to get the ether balance for any ethereum address. I've set up a node with the Ethereum daemon, but as far as I can tell, using eth_getBalance you can only get the balance of your own ...
0
votes
1answer
1k 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 ...
9
votes
3answers
6k 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 ...
1
vote
0answers
54 views

My balance is 0.00 after update. What to do?

I updated my Mist Wallet to 0.9.3 on Mac. When I started it, I saw that my balance is 0.00 which isn't true. Etherchain shows 24 ETH for my wallet. It has nothing to do with syncing. Everything is ...
0
votes
1answer
268 views

Web3 Unconfirmed Balance

Is there a way to get unconfirmed balance from an address? I read this question It uses a method filter, not available on present web3 version. After doing some research I found a method w3.eth....
0
votes
1answer
1k views

How to get balanceOf of a deployed ERC20 contract using web3j?

I'm new to Ethereum and I got stuck on trying to call balanceOf on a deployed ERC20 contract. Here is the code I have so far: Web3j web3j = Web3j.build(new HttpService()); RemoteCall<...
1
vote
1answer
467 views

Internal transactions don't affect balance?

https://ropsten.etherscan.io/address/0x74fafc61782bdaf8abedc526cd18dbf51e0890d1#internaltx There is an internal transaction sending 0.000000000000001 ETH to this address yet balance is still 0. What ...
0
votes
3answers
595 views

How to get address balance after particular block was issued

How to get address balance if you know the block number? In solidity you can call address.balance, but without specifying particular block. Is there a way to do this in solidity or only py/js?
0
votes
1answer
53 views

Tokens not correctly added to msg.sender

This is the result of adding 500 tokens to msg.sender function addTokens() internal{ uint256 _value = 500 ; balances[msg.sender]+=_value; The result 0.000000000000000500
2
votes
2answers
197 views

Why does balanceof() return a constant?

The ERC20 token standard specifies balanceof() to return a constant. function balanceOf(address _owner) constant returns (uint256 balance) But the balance amount might change or am I getting ...
0
votes
1answer
2k views

How can I calculate the real Ethers from the API of etherscan

Having this address: https://etherscan.io/address/0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8 The balance on the web is 21.76252288478066826 Ether But using the API the balance is: https://ropsten....
1
vote
1answer
620 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
125 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]...
22
votes
3answers
6k 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
272 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
808 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
206 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
842 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
310 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
312 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 ...
1
vote
1answer
58 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
604 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
147 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 * ...
19
votes
2answers
5k 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
978 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
314 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
142 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
337 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]; ...
34
votes
4answers
29k 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
482 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
243 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
398 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
81 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
166 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
72 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
215 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
347 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
969 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 ...