Questions tagged [balances]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
72 views

Accounts not getting the balance right

I'm trying to get the balance of a set of accounts using Parity RPC and web3.eth.getBalance. The problem is that, some accounts are returning 0 even though they have balance. For instance: https://...
0
votes
2answers
303 views

Trouble connecting to web3 1.0 through web browser using Infura.io

I am trying to connect to web3 1.0 through a web browser, I dont see much documentation for 1.0 though. This script says im connected but I think its the previous version as anytime I try and run a 1....
0
votes
1answer
326 views

Testing balance of a contract

I'm trying to test the balance of the contract with truffle, but I'm obviously doing something wrong as the test passes. it("should check balance", function() { Lottery.deployed().then(function(...
0
votes
1answer
177 views

Unable to call ERC20's balanceOf() from another (ERC20)contract

I was managed to use transfer() function of the token from my contract, however, the balanceOf() function will only return 0. (or it seems on MyEtherWallet) I was testing a case where the smart ...
0
votes
1answer
28 views

If a malicious party attempts to close a Raiden payment channel with incorrect balances, can they steal the deposit?

If a malicious party attempts to close a Raiden payment channel with incorrect balances, can they steal the deposit if the other party doesn't respond? If they close the channel and transmit that ...
0
votes
1answer
132 views

Viewing account balance of an address

Is there a way to get the account balance of any given address (address which is not belongs to me) using geth or by using a script which reading leveldb? Similar to how etherscan (https://rinkeby....
0
votes
1answer
737 views

read token balance whit solidity

I search it a lot but answers is Confusing i using remix.ethereum. solidity can return balance of ethereum account white code like this pragma solidity ^0.4.9; contract showBalance{ address owner = ...
0
votes
1answer
177 views

Mapping an address to two balances

I want to map an address to two balances, because in contract, we have two types of token i.e. energy and power. Is following code is correct in solidity program ? mapping(address => uint256) ...
0
votes
2answers
91 views

Missing ETH in EOSCrowdsale address

EOS is a ERC20 token which is currently sold for ETH. 2 million EOS are sold every 23 hours for about 20K ETH as seen on https://eos.io/distribution/ However, what puzzle me is that when I do a ...
0
votes
1answer
601 views

How to convert BigInteger balance from WEI to ETH in Objective-C?

I am using etherscan api to get balance using the address. But I am getting a response in wei. After some research, I got some WEI to eth converter methods. WEI to eth But I don't know which method ...
0
votes
1answer
310 views

Use full ethereum balance for token transaction

I want to use whatever ethereum is available in my account as transaction fee to send a token transaction. I know the gas I need, so in theory I thought the following formula would work: gasPrice = ...
0
votes
2answers
352 views

Metamask Rinkeby Ether Balance missing

I got some Rinkeby ethers from the Rinkeby faucet, after a minute or so, it showed up in my MetaMask Rinkeby network. But then after a while, my MetaMask shows 0 balance for the Rinkeby network. How ...
0
votes
1answer
989 views

etherscan.io showing wrong balance for my Ethereum wallet

https://etherscan.io/address/0xdfd43138e27b98a73007618997c66ed6e9adb52f So I almost have zero balance in this wallet (which is on an exchange if that matters), but it shows the balance as 0.43 ether. ...
0
votes
2answers
34 views

Possible to replace entire balance map in single transaction?

I know about gas limits per block, but I can't wrap my head around this problem right now. If I have a token contract that needs to update the balance of every address, is it possible to have a ...
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<...
0
votes
1answer
50 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
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....
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?
0
votes
2answers
394 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
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.
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 ...
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.
0
votes
1answer
702 views

How can I check an address to see what custom tokens has been generated at it?

How can I check an address to see what custom tokens has been generated at it? This is a testnet (Ropsten) address for example: 0xc8f836f4236e3e58f5417589b2d677abd7558cd5 I know that on Ropsten it ...
0
votes
0answers
12 views

How to make my contract balance as private in Ethereum?

Suppose there are two contracts, A and B. Obviously, balance of A is public and B can read it with address_of_A.balance. Is there a way to make balance of A as a private data and B can't read it with ...
0
votes
1answer
27 views

Problem: Payment between smart contracts without reducing the balance of the sender contract

I work on Truffle. I have two smart contracts A and B. Codes of them are same. A should transfer some ether to B and store some information about this payment. I funded A with METAMASK. But, whenever ...
0
votes
1answer
18 views

Withdraw balance from external contract in Solidity 0.6

Getting two errors with the following code. abstract contract ReceiveBalanceContract is Ownable { receive() external payable { require(msg.sender == address(SendBalanceContract)); } ...
0
votes
0answers
21 views

ERC20 balance Storage Address key - how to tell which key belongs to which wallet address

I am trying to derive changes of account storage by mapping accounts (here, the accounts represent the key address in the ERC20 balances mapping mapping(address => uint256)) to their corresponding ...
0
votes
1answer
34 views

Accessing Ethereum network via JSON RPC from wallet balance/transactions

sorry if the question is silly.... I am tying to build a simple app that checks ETH wallet addresses balances and transactions (for both ETH and Tokens). As far as my knowledge goes, I think that I ...
0
votes
0answers
20 views

Ethereum, eth_getBalance always give 0 for the latest transaction on fast syncnode [duplicate]

I started syncing ethereum core on --syncmode fast on July 5th, 2019. As far as i know and read, fast mode will sync the latest blocks and transactions. Then yesterday, I did one transaction of X ...
0
votes
0answers
30 views

Geth returning balance 0 [duplicate]

I started my geth using fast sync first and then normal sync once it was almost synced. 'currentBlock' is not increasing since hour and 'highestBlock' keep on increasing. geth --testnet --rpc --cache=...
0
votes
1answer
67 views

How to get notification right after account has received eth by geth?

My server stores many accounts. How do i know when and what account has received eth or i have to check them manually one by one by looping many address to check the balance? account := common....
0
votes
1answer
55 views

How do I control users balances from an external contract?

I'm developing a blockchain project where I have two separate contracts, the ERC20 token contract and the Main one that contains the application logic. I need to be able to move users' tokens as I ...
0
votes
0answers
34 views

What happens if the “balance” of the address which sends “address.transfer(amount) is ” zero "?

Consider the balance of the address that sends address.transfer(amount); to receive the amount is zero. For example we have following address with balance of zero: web3.eth.getBalance('0x123').then(...
0
votes
1answer
67 views

Ethereum classic wallet is zero

I logged onto my ethereum classic wallet and the balance is zero. This is absolutely wrong. What do I need to do.
0
votes
0answers
157 views

Is it possible to get account balances in --syncmode “fast”?

I want to get transaction details and account balance from Ethereum blockchain. The range of date is from genesis block to last mined. Is it possible to get these information from web3.js? Is it ...
0
votes
1answer
304 views

How does Ethereum account state change? [duplicate]

Ethereum uses Accounts instead of UTXO (Bitcoin). I would like to know how does the ledger keep the account state (technical details if possible)? Does it modify the ledger (accounts) by incrementing ...
0
votes
0answers
51 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#...
0
votes
0answers
247 views

Gets the balance Of the specified address

Retrying the question, OBTAINED ANSWER DOES NOT RESOLVE THE PROBLEM. I sent some eth to crowdsale contract but balance Of does not change. (to call the function I'm using Remix Ropsten test net). The ...
0
votes
1answer
2k views

solidity web3 token balance

I use code like this to get my Ethereum balance with web3 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script type="text/javascript" src="./web3.min.js">...
0
votes
0answers
34 views

Is it possible an address would have two types of balance?

I have developed a smart contract such that there are two types of tokens i.e. energy and power. I need to transfer each of them separately to an account address and as a result each address needs to ...
0
votes
1answer
351 views

Error: invalid address upon calling balanceof() function of token inspite of setting default account and unlocking

Can someone please shed light on what i might be doing wrong here , im trying to query the token balance of an account using geth (v1.7.2) and im doing the following but i get invalid address even ...
0
votes
2answers
202 views

solidity - forever can't return the msg.sender balance

this is my contract code pragma solidity ^0.4.4; contract IamHongKongTokenBack_00{ // 現在我錢包的地址+Eth量 function SeeMyAddAndETHVar() public constant returns (address, uint) { address _myadd = msg....
0
votes
1answer
92 views

Error with wrong calculation of gas price and value after lots of iterations

I am trying to code something that empties an address and sends that amount to my main-wallet. In order to get familiar with sending raw transactions and manually setting the eth-amount, I've tried ...
0
votes
1answer
2k views

Python script - get balance and send transaction

I'm a developer who is new to ETH and I would like to write python CLI that can check balance of ETH address and can create -> sign -> publish transaction to network via locally running Geth node (I ...
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
260 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
0answers
124 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]...
0
votes
1answer
79 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 2 3
4