New answers tagged

-1 votes

Transfer Balance in wei not i

This is the error I get with new code : Gas Estimation failed : Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? ...
user avatar
0 votes

Get Token Balance of Address at Particular Block Number with Alchemy

We've released a new and updated version on how to get token balances that specifically includes the block number parameter as well. Check it out https://chainstack.com/ultimate-guide-erc20-token-...
user avatar
  • 51
1 vote

How to get ETH contract balance with Ethers.js

You also can use: import { ethers } from "hardhat"; const provider = ethers.getDefaultProvider(); const balance = await provider.getBalance("address");
user avatar
  • 11
1 vote

Web3 Chainstack Guide to Batch Transactions gives Error: This contract object doesn't have address set yet, please set an address first

new versions of web3js have been released with changes in the API so you have to make sure to run the code in the article with the specific versions. On the other hand, we've released an updated ...
user avatar
  • 316
0 votes

Wait for a transaction to be mined ends too soon

That's because you are requesting the balance of your wallet as soon as the transition has been sent, but not mined yet. Once the transaction is sent it needs to be mined before some of the changes ...
user avatar

Top 50 recent answers are included