Questions tagged [balances]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
0
votes
1answer
397 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 ...
1
vote
1answer
118 views

Balance Of and the amount raised does not increase sender an account

Can someone give me a hint or correct what is wrong with the code. Maybe it is obvious where the error is but I do not see it and I'm stuck. What to do next ?. The code is here: https://ropsten....
0
votes
1answer
20 views

Get ERC20 balance of token holder as of block number with C# Nethereum and Infura

When this code runs, it throws an error "RpcResponseException: header not found", and I don't understand why or how to fix it. Any advice? Notes: I am using Nethereum in C#.net and using ...
9
votes
4answers
7k 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 ...
0
votes
1answer
21 views

Find an ethereum address with a given balance of an ERC-20 token

I know it is easy to lookup the token balance of a particular Ethereum address (e.g. etherscan or via code such as this stackexchange question). If I want to find a wallet with a particular ERC-20 ...
0
votes
1answer
31 views

How to get ETH contract balance with Ethers.js

I am trying to get the ETH balance of a contract: const balance = await contract.getBalance(); but it fails: TypeError: contract.getBalance is not a function What I do wrong and how to fix the error?...
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
2answers
654 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 ...
1
vote
6answers
4k views

API for ERC20 token balance - EtherScan

Is there any API for ERC20 token balance of an address for a particular contract?
0
votes
2answers
2k 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 ...
9
votes
1answer
1k 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, ...
1
vote
2answers
274 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 ...
3
votes
2answers
4k views

Getting Metamask account's balance using fromWei

Using web3 javascript code to get selected account's balance in Metamask and show it in html, web3.eth.getCoinbase(function(err, account) { if (err === null) { App.account = account; $("#...
0
votes
1answer
47 views

Best practice for fetching ERC20 token balances for a given address

Are there any best practices to fetching all ERC20 token balances for a given address? I am open to using external APIs.
5
votes
4answers
13k 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 = '...
0
votes
1answer
51 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
1answer
73 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
1answer
16 views

How much Ether does a Smart Contract Address hold before a Payable Instantiation?

The following code always reverts to "Contract must be empty". But shouldn't address(this).balance == 0 if the contract hasn't even been instantiated yet? Maybe since the contract doesn't ...
1
vote
1answer
60 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. ...
0
votes
1answer
122 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 ...
3
votes
2answers
763 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 ?
1
vote
0answers
23 views

BlockNumber stuck on 0 while a private network node is looking for peers

I'm extremely new to Blockchain and mining, and I've followed this tutorial to create my first private blockchain. I am stuck when it comes to mining and I'm afraid I'm quite lost. Afte I've started ...
0
votes
1answer
65 views

Problem loading token balances [solved]

I have a contract with the decimals hardcoded to 8 // Hardcoded to be a constant uint8 public constant decimals = 8; I think this is the reason Im having problems with wallets and explorer ...
0
votes
1answer
149 views

While testing wrap & unwrap of ETH to WETH on Kovan ,however the wrap function is fine but unwrap func fails,is anything wrong in my approach?

trx fails at & debug at tenderly pragma solidity 0.5.12; contract WETH9_ { mapping (address => uint) public balanceOf; mapping (address => mapping (address => ...
0
votes
0answers
60 views

Ethereum noob. Internal TX not reflecting in balance on metamask. “bad jump destination” error. Going crazy

New to the Ethereum environment. Using metamask, I initiated three transfers of STA for ETH. The STA was deduced from my wallet, however the ETH I was to get in return is not showing. The only new ...
0
votes
0answers
17 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
37 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
52 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
33 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 ...
2
votes
1answer
2k views

Truffle test: How to test Ether transfer? Balance of specific account?

How is it possible to test if my contract actually transfers money to a specific account? function _transfer(address receiver_, uint256 payout) internal{ receiver_.transfer(payout); } Testing in ...
2
votes
2answers
150 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 ...
1
vote
0answers
135 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 ...
0
votes
1answer
113 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 ...
1
vote
1answer
57 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: ...
3
votes
1answer
85 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 ...
2
votes
1answer
70 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.
1
vote
1answer
2k 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, ...
35
votes
4answers
31k 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, ...
0
votes
1answer
63 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 ...
2
votes
1answer
284 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 ...
2
votes
1answer
33 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 ...
0
votes
2answers
1k 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 ...
2
votes
1answer
61 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. ...
1
vote
1answer
81 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?
0
votes
1answer
45 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 ...
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 ...
6
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 ...
2
votes
1answer
36 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 ...
2
votes
1answer
350 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=...

1
2 3 4 5