New answers tagged ether
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 ...
0
votes
Conversion from Wei to Ether gives different results
It seems there was a calculation error. The number that appears in the event logs is 121ada717a2ea7cd that correspond to 1304595222993217480.
And the value in the question is 13045952229932174800. It ...
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 ...
0
votes
How to deposit ETH in AAVE v3 testnet WETHgateway.depositETH()
if it useful, I was able to deposit eth using wethgateway. It is in Js, but can be implemented using brownie. https://github.com/cito-lito/thesis_dapp/blob/ba7b146e4b7a8ab85521c514345e334fd01f7970/...
0
votes
Help Please hardhat.config.js * Invalid account: #0 for network: Rinkeby - private key too short, expected 32 bytes
You're not doing string extrapolation correctly, you should be using `, the tilde button. Read more here.
0
votes
How a cryptocurrency like MATIC works?
Polygon and several other project created a blockchain that runs independently of Ethereum. It just happen that their native currency also is a token in Ethereum. They provide a bridge to move tokens ...
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....
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 ...
0
votes
How to write ether/Ether (start with capital case)?
In the yellow paper it is used by capital e, like Ether. I think this is the right one. Because yellow paper is a very technical paper.
And the second answer is, yes. Ether is a currency, and Ethereum ...
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/...
0
votes
error occured Error: Transaction has been reverted by the EVM:
const tx_dict={
nonce: web3.eth.getTransactionCount(wallet_addr),
gasPrice: web3.utils.toHex('35000000000'),
gasLimit: web3.utils.toHex('3000000'),
value: web3.utils.toHex(0),
...
0
votes
How to list all accounts using ethers.js
The ProvidersAPI will help you there. See: https://docs.ethers.io/v3/api-providers.html#web3provider
listAccounts() under Web3Provider is probably what you're looking for.
0
votes
Accepted
error occured Error: Transaction has been reverted by the EVM:
The error says: ERC20: transfer amount exceeds allowance. It is thrown from transferFrom function.
You are trying to give approval from the stake function. Which is wrong. Because the msg.sender will ...
0
votes
How to list all accounts using ethers.js
You can use the listAccounts method:
const provider = new ethers.providers.Web3Provider(window.ethereum);
const accounts = await provider.listAccounts();
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 ...
0
votes
How to trim a string in solidity?
Here is a function in Solidity that I created to do just this. Typecast your string to bytes, and feed it into this function.
function byteSlice(bytes memory _data, uint256 _start, uint256 _end) ...
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
...
0
votes
“Personal address detected. Import the collectible contract address” error while importing an NFT from Opensea
To resolve the above issue I've searched on internet but didn't able to find anything to resolve this issue.
So, I've been to MetaMask support and they helped me out instantly. Here's what the actual ...
Top 50 recent answers are included
Related Tags
ether × 2030solidity × 424
go-ethereum × 230
tokens × 196
transactions × 181
web3js × 179
blockchain × 170
wallets × 141
contract-development × 133
erc-20 × 130
etherscan × 120
gas × 108
remix × 103
metamask × 100
ethereum-wallet-dapp × 92
mining × 91
myetherwallet × 90
contract-design × 53
dapps × 49
testnets × 46
exchanges × 44
bitcoin × 43
mist × 41
truffle × 40
smart-contract-wallets × 40