Questions tagged [balances]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

how to use usdt in erc20 full node

I have a full node synced atrium installed with GETH. I want to deposit some more currency and eth and usdt and 1inch in the addresses that this node account gives me, but I do not know how to ...
0
votes
1answer
17 views

When you deploy contract, is it reset balance of your computed etereum address? [duplicate]

Before further situation description, sorry for my poor English skill. I sent my ethereum to estimated(?) contract address before contract is deployed. it will be contract address soon, but it is not ...
0
votes
0answers
26 views

How to get the balance of tokens inside my MetaMask wallet?

I am trying to get the balance of the Alpacas I have in my MetaMask wallet. Googling around I found different ways but many didn't work. So this is the most recent code I found but it is returning ...
0
votes
2answers
25 views

Would an EOA's balance change within the same transaction?

I'm trying to understand various aspects of the micro-process of a transaction such as how msg.sender's balance is changed prior to and after a transaction is mined. Is the balance updated after the ...
0
votes
0answers
24 views

How to get the balance of any Token other than ETH?

I'm using ether.js library and infura as provider, the code works for getting balance of Eth: const provider = ethers.getDefaultProvider(Provider_network, { infura: MY_INFURA_ID }) const balance = ...
2
votes
1answer
335 views

Hardhat, ether.js - fetching balance of signers locally shows no ether

I am trying to fetch the balance of signers in a test locally. I didn't change the default value of eth for accounts in the hardhat configuration. Yet when I query the balance, I see that the accounts ...
0
votes
1answer
140 views

Get balanceOf tokens ERC721 (nethereum)

Just trying get count of uniswap NFT-s on 0x5794d36de0c21211a7906688981371132bd7c6f0 wallet Step one: Get contract from adress 0xc36442b4a4522e871399cd717abdd847ab11fe88 (Contract address for uniswap ...
0
votes
0answers
21 views

Token no IN transaction only OUT

I was digging into ERC20 contracts and found weird thing, for example take a look at this address https://etherscan.io/token/0xf786c34106762ab4eeb45a51b42a62470e9d5332?a=...
0
votes
0answers
20 views

Ethereum balance is not showing in my Ethereum node

I have set my ethereum node in Amazon Ec2. I start syncing through this command sudo geth --datadir /home/ubuntu/data/ --cache=512 --allow-insecure-unlock --rpcapi "web3,eth,personal" --rpc ...
1
vote
0answers
19 views

How to withdraw from contract exact amount of ether?

Suppose I have a contract: contract mycontract { constructor() payable {} function withdraw(uint256 amount) public { // either //payable(address(msg.sender)).transfer(...
2
votes
0answers
31 views

Why is my rebasing token balance changing over time?

I bought some tokens for my wallet and noticed the quantity changes very slightly over time. I’ve seen this happen with several tokens, Im not sure why. Is this related to the way the getbalance ...
0
votes
1answer
34 views

Update Account Balances ERC20

Are there are any design patterns or gas efficient methods of mass updating user balances (for ERC20 tokens)? For instance, say I wanted to run a casino where, after Block number X, all of the ...
0
votes
0answers
10 views

geth console not displaying rinkeby eth balance [duplicate]

I'm running geth 1.10.3 locally by running 'geth --rinkeby'. I then run geth console with: 'geth --rinkeby attach ipc:\.\pipe\geth.ipc' eth.coinbase is set to the account I am looking at. When I run: ...
0
votes
1answer
193 views

Is the ETH in this Address Mine to Claim? Etherscan Shows Balance Left [closed]

I was wondering if someone could help me understand some confusing situation with a Binance ETH address I have. I was going through my records and noticed that one of the addresses I have used in the ...
0
votes
0answers
24 views

Multiply ray with wad to get wad

What's the correct way to multiply a number in ray (1e27) with a number in wad (1e18) to get the result in wad? E.g., I have an interest rate [ray] and a balance [wad] that I am multiplying to get a ...
0
votes
1answer
97 views

Getting current user balance of an aToken for a specific asset in AAVE v2 protocol

As AAVE protocol V2 documentation says: aTokens are interest-bearing tokens that are minted and burned upon deposit and withdraw. The aTokens' value is pegged to the value of the corresponding ...
1
vote
0answers
37 views

Able to Produce Blocks but Still Balance is Zero

Kindly find the following results below from my Mac Terminal: miner.start(1) --> null miner.stop() --> null eth.getBalance(eth.accounts[0]) --> 350000000000000000000 eth.syncing --> ...
1
vote
0answers
87 views

Able to Import my Account from Geth to MetaMask but No Balance Shown

I'm able to mined to my Accounts in Geth and have successfully imported to MetaMask. Problem, is in my Geth Console, I have the balance of the Mined Accounts but after imported to MetaMask, the ...
0
votes
1answer
79 views

How to store the balance in a variable when running on client-side?

Context I am learning web3 after having written some smart contracts on the Ropsten and Kovan test networks. I'm trying to simply read the balance of an address and store it in a variable, in order to ...
1
vote
1answer
181 views

How to have the contract check if the msg.sender currently owns a specific token. (erc721)

Assuming I have a contract to mint my own NFTs: (I'm thinking ERC-721, but not necessarily). I want to create another smart contract that before doing anything, verifies that the address interacting ...
2
votes
1answer
55 views

how to fetch net worth of a given address?

Take this whale wallet for example: https://etherscan.io/tokenholdings?a=0xa929022c9107643515f5c777ce9a910f0d1e490c If you look at the top right, it says Value in USD. Is there any any API that can ...
1
vote
1answer
21 views

How can I ensure a player matches another player's bet?

First, I want someone to send a bet (money) to the contract. Then I want someone to match the original bet. (There are many more safety checks in the contract. I just removed them to keep this as ...
0
votes
0answers
44 views

Get balance in fast node by Geth

Is it possible to get account Balance in fast node with Geth ? and what is the size of fast node currently?
0
votes
1answer
192 views

Swap error balancer.exchange

I am using balancer.exchange to swap Dai for xHDX. It says the swap was successful but did not swap. I still have my Dai and did not get the xHDX. https://etherscan.io/tx/...
1
vote
1answer
32 views

How to properly close web3 after execution? - Java

Here is what I am trying to do: String amt = Web3j.build(new HttpService("https://ropsten.infura.io/v3/123blahblah")) .ethGetBalance("0xblahblah", DefaultBlockParameterName.LATEST) ...
0
votes
0answers
43 views

Ganache does not update account balance after contract deploying

I work with Ganache and nodeJS. Whenever i effort to deploy my contract with JavaScript the related block is mined, that demonstrate the given contract is deployed, but the balance of the sender ...
0
votes
2answers
416 views

Etherscan API Get Balance - Decimals Not Showing In Response

Expected Use the Etherscan API to make a GET request for an ETH address' balance in order to receive a response providing the Ether token quantity representing all decimal places. Observed The ...
1
vote
2answers
284 views

Best way to check balance? msg.sender.balance vs balances[msg.sender]

If I want to check if the payer has enough funds, should I use... msg.sender.balance or balances[msg.sender] ? I also see that people usually check balance in the following way: require((balances[...
0
votes
1answer
27 views

Discrepancy between Etherscan.io and Google Big Query information

I noticed that there are large discrepancies between the balances of addresses in Etherscan vs Google Big Query. Also some addresses that are listed in Etherscan are not existing in the balances table ...
0
votes
1answer
33 views

Query token balance before transferFrom

I am trying, but without luck, to query the token balance of the approver address before transferFrom event. function transferFrom(IERC20Token _token, address _sender, address _receiver) external ...
0
votes
0answers
23 views

Why is my ether balance 0 in geth after complete sync

I setup geth on clouding server 2 weeks ago and it was synchronized already. And I deposit some eth to my account. By Etherscan, I can see my balance but web3.eth.getBalance always return 0. I create ...
1
vote
1answer
77 views

pre_sending Ether

I recently read an article about pre-sending Ether to a not deployed smart contract from hashing the knowned EOA address plus the nonce of it. Could somebody please tell me how is this possible? ...
0
votes
1answer
633 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 ...
1
vote
1answer
535 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 ...
5
votes
1answer
6k 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?...
0
votes
1answer
229 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.
0
votes
1answer
23 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
0answers
82 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
3k 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
1k 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
299 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
1answer
79 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
2answers
63 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 ...
1
vote
1answer
209 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)); } ...
1
vote
0answers
764 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 ...
1
vote
2answers
98 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
530 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
109 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
310 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
351 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
2 3 4 5