Skip to main content

New answers tagged

0 votes

how to make batch transaction in ethereum?

Yes, it is possible to send Ether to multiple addresses in one transaction on Ethereum, commonly referred to as batch sending. One approach is to use a smart contract where you iterate over a list of ...
ogpadmin's user avatar
0 votes

How to get transaction receipt using transaction hash?

I got this hash receipt from my transactions but I never seen any crypto on my wallets😞any help?
Mysticalgirl007's user avatar
0 votes

Error uploading file: Cannot read properties of undefined (reading 'add')

It should be // Correcting the contract call contract.methods.add(parameters).send({ from: account, gas: 3000000 }) You forgot to include methods. Also this is a state changing call you have to have ...
shadow's user avatar
  • 127
0 votes

Solidity: Reading events with web3.eth.contract

await Contract.methods.Deposit().send({from:account, value: web3.utils.toWei(Amount, "ether")}) .then(receipt =>{ console.log("receipt is:",receipt.events.deposit.event) alert(...
Satnam Singh's user avatar
0 votes

web3.py Increase the amount of gas to make the transaction faster in the blockchain

This code, includes the transaction in the blockchain in 5-7 seconds in eth and polygon. Average block time in ethereum is 12s . Meaning it takes 12s going from block N to block N+1 . You have to ...
shadow's user avatar
  • 127
0 votes

Problems calling functions with web3 from python from polygon testnet

It should be build_transaction instead of buildTransaction. So, replace: # Encode function call tx_data = contract.functions.storeMetadata( metadata['filename'], file_hash_bytes, metadata['...
SYED ASAD KAZMI's user avatar
0 votes

What is the best way to monitor all token balances of wallet address?

I am also trying to make something similar, as i wanted to try out something in the blockchain world so i am trying to make project like assestDash so i guess we are working on the same problem of ...
Johny Rhoades's user avatar
0 votes

Calling function on solidity contract fom JS

The issue looks in this line const endpoint = https://mainnet.infura.io/v3/${infuraProjectId}; The infura URL you have selected is of ethereum mainnet. If you are testing on any testnets like ...
Pankaj Jagtap's user avatar
0 votes

What happens when you connect wallet to website?

According to cra-template-solidity, when MetaMask Extension is installed it monkey-patch window with ethereum object. If window.ethereum is undefined, there is no MetaMask extension installed. import {...
Трипольский Пётр's user avatar
1 vote
Accepted

Unable to transfer ether from contract

I think that campaign.methods.finalizeRequest(0).call( should be campaign.methods.finalizeRequest(0).send( instead. Basically at the end you're making a call instead of a transaction.
0xSanson's user avatar
  • 3,539
0 votes

eth_estimateGas Error when balance of an account < the amount to send in a transaction

This can be done, as state overrides were added to estimateGas. Example (is from python but almost identical in js): >>> w3.eth.get_balance(eoa.address)/10**18 0.00345956080893082 >>>...
Maka's user avatar
  • 1,240
0 votes
Accepted

Error: invalid solidity type!: tuple

You seem to be using quite older version of web3.js library as shown by your devDependencies in the package.json file: "devDependencies": { // other dev dependencies "web3":...
SYED ASAD KAZMI's user avatar
0 votes

What happens when you connect wallet to website?

I connected my wallet to a scam sight and they collected my money, pls how can I secure that wallet? Or it has been corrupted. Do I need any strong security for the wallet or what could I do to secure ...
Ogochukwu's user avatar
0 votes

Converting checksummed address to non-checksummed address

This package should do the trick https://www.npmjs.com/package/ethereum-checksum-address
Quantum One DAO's user avatar

Top 50 recent answers are included