Questions tagged [wei]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
10 views

Why does Ethereum project use custom denominations (e.g. "wei") instead of SI prefix standard (e.g. "microETH", "nanoETH")

What was the reasoning behind reinventing denominations instead of using the standard metric prefixes for ETH? 10^(-18) ETH = 1 aETH ("attoETH", not "wei") 10^(-9) ETH = 1 nETH (&...
0
votes
1answer
48 views

transaction parameter value with Wei is different from Metamask

For example, I set a tParam as value: web3.utils.toWei('0.01','ether'), ... const txHash = await window.ethereum.request({ method: "eth_sendTransaction", params: [tParam], })...
0
votes
1answer
123 views

Web3.eth.abi.encodeFunctionCall Is not working

I'm creating a dapp that charges users a specific amount of eth depending on their input. Whenever I attempt to create the transaction, I specify the amount of Eth in Wei. It throws an Error with no ...
1
vote
1answer
175 views

Truffle Console: Sending 3 or '3000000000000000' through Solidity function but receiver gets '0.000000000000000003' Ether

I am trying to send Ether in Ether units i.e. 3 ethers by two different techniques using truffle console: 1)truffle(development)> C1.sendTo(C2.address, 3) and 2)truffle(development)> C1.sendTo(...