Hot answers tagged

1 vote

how to fail a ether transaction on blockchain (with insufficient balance)

Not sure if it is similar to what you want to do but you can either write a script to transfer ether without Metamask OR write a smart contract that does not accept ether and then try to send ether to ...
user avatar
  • 2,416
1 vote
Accepted

How to rectify Parse error in Remix IDE

I adjusted your smart contract code, adding some notes, in this way: // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.13; contract Carshop{ // NOTE: I moved outsite the constructor ...
user avatar
  • 1,443
1 vote
Accepted

Getting WETH from ETH on Hardhat Local Network

I think the easiest way to do this is to create an ERC20 called WETH. Something like: // SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.4; import "@openzeppelin/contracts/token/ERC20/...
user avatar
  • 26
1 vote
Accepted

How much data can I read from Smart contract, Is there a limit

When reading data, you are only reading it locally from the node you are connected to. The rest of the blockchain is not bothered at all. Therefore you can only flood your own node - or that of your ...
user avatar
1 vote
Accepted

Why my transaction failed : error -3200

I believe your gas settings are incorrect. In the Remix IDE you can fix it easily. Please find the below image. I think something like 300000 for gaslimit and 5 gwei for value should be fine. UPDATE ...
user avatar
  • 186
1 vote

Where does the yield for staked eth before the merge come from?

Currently on the beacon chain, each validator is rewarded to conduct actions helping the protocol to reach consensus. Duing an epoch (32 slots or 6min24sec) each validator can receive a reward up to 0....
user avatar
  • 436
1 vote
Accepted

How does Proof Of Stake deal with transactions that are transfering more money than had been staked

This is a really good question and the answer is the following: You can not forge a transaction. This is impossible thanks to cryptography. The whole reason why we call cryptocurrency crypto-currency ...
user avatar
  • 436

Only top scored, non community-wiki answers of a minimum length are eligible