Questions tagged [balances]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
259 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 ...
Alireza's user avatar
  • 533
1 vote
1 answer
529 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)); } ...
Pm Rivière's user avatar
1 vote
0 answers
854 views

ERC20 Token balance isn't showing up in metamask [closed]

I'm making an ERC20 Token using OpenZeppelin, and I keep running into the same issue. My balance shows up in remix when I call "balanceOf," however, when I add the coin to my metamask wallet, it shows ...
N T's user avatar
  • 13
1 vote
2 answers
229 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 ...
FiNaR's user avatar
  • 121
0 votes
1 answer
2k views

ETH internal transaction means i received money and it became part of my wallet balance?

When someone send a money and it is shown within internal transactions like here, then does it mean this money was added to my wallet balance and available for withdrawal same as "normal" transactions ...
16851556's user avatar
  • 101
1 vote
1 answer
188 views

ERC 20 - very large balance created on a wallet

I deployed an ERC20 at this address: 0x60c56fb23dc18c719491759b6c40cd46e502fcbd One of the addresses I own got a huge balance (more then the token supply) couple of days back. The address is: ...
BlockNick's user avatar
3 votes
1 answer
764 views

Why Etherscan is reporting negative token balances?

I am wondering if its possible a holder to have negative balances as reported by Etherscan. Bellow are the links for the cases that I spotted: KICK token holder ...
Saulo Ricci's user avatar
2 votes
1 answer
917 views

How can I query an API to get my erc20 token balance of an address in JSON format?

Is there an api where I can query if an address contains an erc20 token? I need it returned in JSON format.
Patoshi パトシ's user avatar
1 vote
1 answer
690 views

How to handle an ERC20 token which does not return true/false at the end of transfer/transferFrom

The ERC20 Token Standard dictates that functions transfer and transferFrom should return true for success and false for failure. However, various ERC20 tokens deployed on the network have not ...
goodvibration's user avatar
2 votes
1 answer
3k views

Total metamask balance

I am curious how to get the total current balance of my metamask wallet with as many "accounts" inside it as it bears in the moment? As I can understand metamask is the HD wallet and all my addresses ...
loarrin's user avatar
  • 23
2 votes
1 answer
146 views

ETC - Negative Balance

So playing around with ETC and wondering how in the world this address doesn't have a negative balance? https://gastracker.io/addr/0x6f1f8a70e2257354e81c306f130f7976dead8e8b First transactions are ...
Neppinger's user avatar
2 votes
2 answers
1k views

I want the full list of ethereum smart‑contracts whose balances increased by 1000 Ethers above the past week

How to make this kind of query using my 200kb/s second Internet connection speed ? With such speed, there’s no possibility to run an archival node (except maybe with a service allowing to download ...
user2284570's user avatar
  • 1,008
2 votes
1 answer
121 views

Why Ethereum sets user balance to MaxBig256 whenever a contract query is performed?

There is a strange behaviour on user wallet balances when performing a contract call (that is supposed to have no cost). Balance is right (expected value) until a free call is requested to a contract. ...
Juan Ignacio Pérez Sacristán's user avatar
2 votes
1 answer
313 views

How to get top 5 token holders?

I want to keep a track of top 5 token holders inside the contract in terms of their token balances, is there any efficient way to do that in solidity?
Fariha Abbasi's user avatar
0 votes
1 answer
67 views

Web3 balance is showing OmiseGo balance but not Bitball

You can see on Etherscan that I have 2 types of tokens in my wallet: https://etherscan.io/address/0xb8fd65fc6919c5b97453eaba6b895144597985b2#tokentxns 2.3 OmiseGo and 10,000 Bitball I have a short ...
Barney Chambers's user avatar
2 votes
1 answer
90 views

Return values after verifying an account balance on private network

When i verify the balance of an account after deploing an ERC20 token, i receive this returns: BN { negative: 0, words: [ 50, <1 empty item> ], length: 1, red: null } I know that "50" is the ...
Mongetro Goint's user avatar
5 votes
2 answers
4k views

Etherscan api for Ropsten testnet

I found this endpoint is to obtain the token balance from Ethereum blockchain, however, I noticed that this function doesn't work on Rospten network. Please advise https://api.etherscan.io/api?module=...
David's user avatar
  • 173
0 votes
0 answers
37 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=...
user3587417's user avatar
1 vote
2 answers
6k views

Infura Request Limitations

Are there any official information about request limitations? I know for example that there is a limit for the amount of results in getLogs: https://infura.io/docs/ethereum/json-rpc/eth_getLogs ...
sunwarr10r's user avatar
0 votes
1 answer
257 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....
TomSawyer's user avatar
  • 123
5 votes
2 answers
3k views

How to check balance of a smart contract in Remix IDE Javascript VM?

I'm working on a smart contract that can hold some ETH. Currently, I'm unable to see what is its balance in the Remix IDE. I'm trying to use the console: I have access to web3 but how to check the ...
Mars Robertson's user avatar
1 vote
1 answer
525 views

How does Ethereum calculate balance for a new transaction if there are already unconfirmed transactions in the mempool?

Whenever a new transaction is made, it is added to the mempool and a miner will take these transactions from the pool and try to generate a block which contains this transaction. However, before ...
Royden Rego's user avatar
2 votes
1 answer
276 views

How can an address on Etherscan have a balance of 0 ETH when I don't see any outgoing transactions?

I don't know why balance of the address is 0.
Ru Hi's user avatar
  • 21
1 vote
1 answer
224 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://...
mdlapla's user avatar
  • 89
0 votes
1 answer
56 views

If one gains 51% of network resources can he force drain the biggest wallet? [duplicate]

If one gains 51% of the network compute resources can he force drain the biggest wallet? How could he do it if he can keep that 51% advantage?
Blender's user avatar
  • 73
1 vote
2 answers
947 views

OpenZeppelin Starting Balance

I believe that the openzeppelin project have updated their StandardToken smart contract which is now called ERC20.sol. One issue that I have is that the new smart contract has some missing ...
Iulian's user avatar
  • 640
7 votes
5 answers
16k views

API for ERC20 token balance - EtherScan

Is there any API for ERC20 token balance of an address for a particular contract?
Muhzin's user avatar
  • 194
5 votes
2 answers
3k views

How to check Balance & send ERC721 Tokens

I have SPH ERC721 Tokens. How can I check balance like ERC20 and send ERC721 tokens token to Exchange or in other wallet ?
zulfiqar ali's user avatar
4 votes
1 answer
112 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 ...
Vlad's user avatar
  • 143
18 votes
1 answer
5k 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, ...
goodvibration's user avatar
2 votes
0 answers
150 views

parity json RPC eth_getBalance timeout on light mode

I have timeout problem with eth_getBalance on light mode enable on parity json-rpc. I have no problem with light mode disabled. Here my command on parity parity --chain ropsten --jsonrpc-apis all -...
Billy Adelphia's user avatar
2 votes
1 answer
481 views

How do you calculate a wallet balance in the world of shards?

I have a general question about calculating account balances in the new world of sharding. In the Bitcoin blockchain, in order to accurately calculate someone's wallet balance, you have to analyze ...
Dave's user avatar
  • 195
1 vote
2 answers
515 views

How does 0x0000000000000000000000000000000000000000 have over $1.5 trillion octillion octillion in tokens? [duplicate]

I looked up 0x0000000000000000000000000000000000000000 on Etherscan, and realized that the address holds a lot in ERC tokens. While the ETH balance (about 7,549 ETH or about $841,000) isn't abnormal, ...
Zackary's user avatar
  • 113
1 vote
2 answers
1k views

How to get balances of all the accounts(~1000) in Geth node?

How can I get the balance of all the accounts in my Go Ethereum node? I have about 1000 accounts and it is too slow to use eth_getBalance to get balance for each address. Are there any ways to use ...
user avatar
1 vote
2 answers
74 views

How can I create a contract to manage customer balances? [closed]

I want to implement something like this: Test conditions for making ethers transfers between accounts. 3 accounts I am having difficulty with the transfer functions.
Jarbas Lucena's user avatar
0 votes
2 answers
360 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....
Ryan D's user avatar
  • 125
1 vote
1 answer
34 views

Balance should not be zero on this address I suppose

for address https://ropsten.etherscan.io/address/0x00916c608868c68f4cd8bea6786ab40b24b55392 balance is shoving 0 but from transactions it should be little more than one ether I believe there is ...
Pavel Niedoba's user avatar
1 vote
1 answer
1k views

Calling and funding a payable function from existing contract balance [duplicate]

If smart contract A has a balance of 1 ETH, can I call a payable function on Contract B, from a function in Contract A, with a msg.value that would be effectively withdrawn from the balance of smart ...
Chadd Bennett's user avatar
0 votes
1 answer
2k 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(...
typhon04's user avatar
  • 193
0 votes
2 answers
50 views

From where this Ether came from?

Let's have a look at this address on Etherscan: https://etherscan.io/address/0xfbe0aFcd7658BA86be41922059dD879C192D4c73 First transaction is a Smart Contract creation, that costs about 15 ETH. Can't ...
Felice Pollano's user avatar
0 votes
1 answer
5k views

The difference between msg.sender.balance and owner[msg.sender]

Hello everyone i have a code like: mapping(address => uint)owner; function show() view public returns(uint) { return owner[msg.sender]; //return msg.sender.balance; } in slodity and ...
developeroka's user avatar
1 vote
3 answers
413 views

ERC-20 transferFrom implementation potential flaw...or not?

Let's say transferFrom function is implemented in a next manner: function transferFrom (address _from, address _to, uint256 _value) public returns (bool success) { uint256 spenderAllowance = ...
KwahuNashoba's user avatar
1 vote
1 answer
3k 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 ...
Felice Pollano's user avatar
0 votes
1 answer
79 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 ...
pan1994's user avatar
  • 169
0 votes
1 answer
969 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 ...
Seung Joo Choi Bookstore3's user avatar
0 votes
0 answers
100 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(...
Questioner's user avatar
  • 2,670
1 vote
1 answer
768 views

How to give a non-zero balance to a contract at time of deployment using Remix?

In case we want to deploy a contract by web3.js we can easily determine the balance of the contract at time of deployment as follows: const thisContract = new web3.eth.Contract(abi); thisContract....
Questioner's user avatar
  • 2,670
1 vote
0 answers
216 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 ...
Questioner's user avatar
  • 2,670
1 vote
1 answer
4k views

How to get the balance of a contract using web3.js?

I have deployed a contract as follows and determined its balance to be 5000 wei (value: 5000): const thisContract = new web3.eth.Contract(abi); thisContract.deploy({ data: bytecode, ...
Questioner's user avatar
  • 2,670
0 votes
1 answer
127 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.
Rhiannon Oaks's user avatar