Questions tagged [ether]

Ether is the currency used in Ethereum blockchain technology. Refer: https://ethereum.org/ether Questions about Ether which aren't about programming should be asked on the dedicated Ethereum site: https://ethereum.stackexchange.com. Questions which are about programming can be asked on either site.

Ether is a necessary element — a fuel — for operating the distributed application platform . It is a form of payment made by the clients of the platform to the machines executing the requested operations. To put it another way, Ether is the incentive ensuring that developers write quality applications (wasteful code costs more), and that the network remains healthy (people are compensated for their contributed resources).

The official website of is Ethereum.org.

There's also a Ethereum StackExchange site that's dedicated to Bitcoin.

162 questions
0
votes
1 answer

How to set the Eth price with a transaction with web3js

I am trying to set the price of a Transaction According to the documentation : value (in wei): the amount of Wei to transfer from the sender to the recipient. But when I put this value : ( for 0.04eth) -> I get 73 eth in metamask :) ( I am on…
0
votes
0 answers

What would be the reason for the error: "Error: getaddrinfo EAI_AGAIN [rpc url]"?

On calling the smart contract (which have been deployed to rpc server) I am getting the error : getaddrinfo EAI_AGAIN ... The smart contract is working fine when I use test blockchain(gnache) but shows above error when I deploy it to my private…
Abhishek
  • 3
  • 2
0
votes
1 answer

How I can get test account to deploy smart contract with truffle?

With help of https://ethdrop.dev, I can get a test account with 0.001 ETH ( kovan test network ), and, I can deploy smart contract with remix ide. I used truffle to make a solidity project, and I am trying to deploy to test network (kovan) instead…
Wang Liang
  • 4,244
  • 6
  • 22
  • 45
0
votes
0 answers

React, Hardhat frontend smart contract method calling, how to do so?

I'm using hardhat locally and have a react frontend up and running but I can't call the methods without errors. I've tried both ethers.js and web3. Here's my code and attempts. Please let me know if you see what I'm doing wrong. I'm trying to…
Bob Linux
  • 101
  • 2
0
votes
1 answer

Transaction From Ethereum Smart contract

When we have a contract, we transfer currency How is the signature done ??? For example, I send 10 ethers to the contract and the contract is divided between 5 people What is this transaction like? Where does my private key come from to sign all 5…
Androidian
  • 13
  • 3
0
votes
2 answers

how to connect metamask with ethers.js and fetch balance?

i have been trying to connect metamask and ethers.js to fetch my current wallet balance const provider = new ethers.providers.Web3Provider(window.ethereum) const signer = provider.getSigner() balance = …
mohan A
  • 65
  • 2
  • 10
0
votes
1 answer

Transaction event function name does not appear

I write a simple contract to test the event like the following code: pragma solidity ^0.6.12; contract EventTest { address public router; event RouterUpdated(address indexed newAddress); function setRouter(address newAddress)…
0
votes
1 answer

How to interact with a solidity function and make transactions from a different address?

So I have a solidity contract which I have defined and then compiled via: voting_contract_compiled = compile_contract('Voting') voting_deployment_tx_receipt, Voting = deploy_contract(w3, voting_contract_compiled, 10) When I do…
logankilpatrick
  • 13,148
  • 7
  • 44
  • 125
0
votes
1 answer

Transaction to Uniswap failing on Ropsten TestNet

I am trying to create a transaction on Uniswap programatically, the flow nd code seems to be there, but for whatever reason the transaction fails on Ropsten for "Warning! Error encountered during contract execution [Reverted]". I am using javascript…
Pespi coke
  • 1
  • 1
  • 1
0
votes
1 answer

Solidity: Is it possible to combine event emit and require?

If a user doesn't send enough enough Eth, I'd like the UI to know and respond with a message. This function validates msg.value, but I'd like to trigger and event (which the UI can respond to) in this case. function doSomething() external payable { …
GN.
  • 8,672
  • 10
  • 61
  • 126
0
votes
1 answer

How to rectify this error "TypeError: EthereumTransaction is not a constructor"?

How do I rectify this type error? This is the code for making a transaction and the error received at the terminal is also added. var transaction = new EthereumTransaction(rawTransaction) ^TypeError: EthereumTransaction is not a constructor Here…
0
votes
0 answers

How to fix " ParserError: Expected primary expression. "

This is the code that gives that error. I'm trying to learn how to create a token and this is where I'm stuck. if(!_spender.call(bytes4(bytes32(sha3(“receiveApproval(address,uint256,address,bytes)”))), msg.sender, _value, this, _extraData)) { throw;…
Kgabeci
  • 15
  • 7
0
votes
1 answer

Why are all my Remix test accounts showing 0 ETH?

I'm trying to write a TicTacToe game on remix.ethereum.org but all of a sudden all my test accounts show 0 ETH balance, so I can't use them to deploy my contracts anymore. Here is the solidity code that I was deploying when it happened: pragma…
0
votes
0 answers

RawTransaction stuck at the pending status endlessly

I've successfully pushed a rawTransaction to Ropsten network via infura. But, when I checked on EtherScan the corresponding transaction it kept showing the "pending" status endlessly, I noticed that the token transfer it looked strange. Please see…
David
  • 607
  • 1
  • 6
  • 19
0
votes
1 answer

scapy code: srp(Ether()/ARP(pdst="192.168.0.100"), timeout=1, inter=0.2) sometimes can receive the answers, normally can't

These are all I wanna send out and get the answers. However, only sometimes can get the correct receive packets, usually can't. srp(Ether()/ARP(pdst="192.168.0.100", hwsrc="xxxxxx"), timeout=2) this problem is driving me crazy, anybody can help to…
7072129
  • 29
  • 8