New answers tagged

0 votes

Does hardhat-trace work on localhost?

If you want to trace your transaction on localhost forking, you should point your network into localhost instead of hardhat. Hardhat network is run in process while localhost node is run standalone. ...
CT95's user avatar
  • 343
0 votes

Why is the gas fee shown on Ether scan is different than the transaction I sent?

Technically when you broadcast a transaction like that, your "gas" and "gasPrice" is what you are offering to miners to include this transaction into a the block. Or in other words ...
CryptoDude's user avatar
0 votes
Accepted

How does the real Ether work in ERC20 protocol?

To clear things up there are multiple things to keep in mind: Ethers are just numerical values "baked in" Ethereum, which means that ETH is the fundamental 'money' unit in the protocol. ...
Josif Hamed's user avatar
0 votes
Accepted

Send a transaciton to Sepolia network but it can't be found from `sepolia.etherscan.io`

With w.eth.accounts.signTransaction you are only signing the transaction without broadcasting it. To broadcast you can try: const signedTx = await w.eth.accounts.signTransaction( { from: account....
0xSanson's user avatar
  • 2,994
0 votes

How does the real Ether work in ERC20 protocol?

An ERC20 token contract is just a measure of value, (in some cases) shares or power, and is not transformable to native Ether per se. There're no built-in purchase methods in the ERC20 token standard. ...
Mila A's user avatar
  • 837
0 votes
Accepted

How do I know the gas and gas limit when sending a transaction?

gas: Mean how much your transaction will cost in gas if it executes. You can estimate your transaction before broadcast it to get estimation, and for safety you can increase a% from your estimation ...
CT95's user avatar
  • 343
1 vote

Do I need private key each time when call smart contract?

The answer is No Try this: https://www.quicknode.com/docs/ethereum/eth_call eth_call: Executes a new message call immediately without creating a transaction on the block chain If you don't create a ...
CT95's user avatar
  • 343
0 votes

Send a transaciton to Sepolia network but it can't be found from `sepolia.etherscan.io`

I believe the reason is that the transaction verification was not performed successfully or there was insufficient gas.
CHM's user avatar
  • 21
1 vote
Accepted

Cannot able to deploy contract having parameter

Try this way: const Certification = await ethers.getContractFactory("Certification"); const certification = await Certification.deploy( institution_address, { from: ...
Miroslav Nedelchev's user avatar
0 votes
Accepted

Getting error when trying to get Transaction Events Logs

Considering that you are mocking a Contract with ethers (ethers.js), you'd need to write the addInstitution call differently: const tx = await institution.addInstitute( mockInstitute_acc....
Mila A's user avatar
  • 837
1 vote

What is the metamask algorithm for creating accounts based on one seed phrase?

It's done like this: import hdkey from 'ethereumjs-wallet/src/hdkey'; import * as bip39 from 'bip39' const seedPhrase = process.env.SEED_PHRASE; const walletsCount = 4; const masterKey = hdkey....
Илья Зеленько's user avatar
0 votes

How to decode input data from a transaction?

Great thanks @Achal Singh for your answer - https://ethereum.stackexchange.com/a/82318/93117. Here is a variation: for Hardhat dev environments generalised console.log outputs (rather than looking ...
HankCa's user avatar
  • 165
1 vote
Accepted

TypeError: invalid BytesLike value (argument="value", value=[ ], code=INVALID_ARGUMENT, version=6.10.0) in testing Raffle Contract

The empty array you're passing "" is not a valid BytesLike value. You need to pass a valid hexadecimal string or an array of bytes. Try this: await raffle.performUpkeep("0x");
sukrutnrvd's user avatar

Top 50 recent answers are included