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
1
vote
1 answer

creating a private Ethereum Token ( Coin )

I am new to ethereum, Is it possible to create a coin / token on it that is just a private token? or at least I don;t want to publicly announce its creation but send back and forth coins between 2-3 wallets only?
1
vote
1 answer

Events handler in Ethers.js

I'm using https://github.com/ethers-io/ethers.js/ I have The following smart contract, contract WhiteList { event logAddressChange(address indexed purchaser, uint256 value, uint256 amount); function changeContractAddress(address _purchaser,…
Gamal Tawaf
  • 125
  • 1
  • 13
1
vote
1 answer

Does Ethereum Remix ignore certain function parameters when deploying a contract?

I have a contract developed using remix. After copying the contract over and writing mocha tests, I received the following error when running the deploy test: Error: Invalid number of parameters for "undefined" 1) "before each" hook for "deploys a…
Don
  • 3,876
  • 10
  • 47
  • 76
0
votes
0 answers

How to fix "invalid transaction key: 0" error when attempting to execute gasless transactions with OpenZeppelin and ether.js?

I am trying to execute a gasless transaction using openzeppelin relayers and ether.js but have not able to succeed in it. Currently i am getting this issue with the transaction object.Error pic. I am not using any smart contract here. I just want to…
0
votes
0 answers

ethers.utils.formatEther(10000000000, "ether") not working using ether.js

**CODE : ** const balanceEther = await ethers.utils.formatEther(10000000000, "ether"); ISSUE I write this line of code nd it shows the error written below .. ERROR : TypeError: Cannot read properties of undefined (reading 'formatEther') According…
0
votes
0 answers

Message:: invalid fragment object (argument="value", value={}, code=INVALID_ARGUMENT, version=abi/5.7.0)

abi: [ { inputs: [ [Object], [Object] ], stateMutability: 'payable', type: 'constructor' }, { inputs: [ [Object], [Object], [Object] ], name: 'InvalidSelector', type: 'error' }, { anonymous: false, inputs:…
Wiswa
  • 11
  • 2
0
votes
0 answers

After registry of both the consumer and prosumer properly, when I try to do the transaction, the transaction is reverted

``` //SPDX-License-Identifier:GPL-3.0 pragma solidity 0.8.13; contract trade{ constructor() { owner = msg. sender; } address owner; modifier onlyOwner { require(msg.sender == owner); …
0
votes
0 answers

TypeError: Cannot read properties of undefined (reading 'inputs')

I'm encountering an error while trying to decode logs using the web3.eth.abi.decodeLog function in my JavaScript code. The error message I'm receiving is "TypeError: Cannot read properties of undefined (reading 'inputs')". I'm seeking assistance in…
0
votes
0 answers

Calculating number of validators on dune

to find total validators on eth , i am using below logics : SELECT sum(amount_staked) FROM staking_ethereum.deposits as a, SELECT sum(amount)/1e9 FROM ethereum.withdrawals as b and my output is (a-b)/32 , am i making a mistake ? I saw some query…
0
votes
1 answer

How to get signer for a contract?

I have a contract A that deploys another contract (B). const A = await deployer.loadArtifact("A"); const a = await deployer.deploy(A) as A; I can get address of contract B via function and create a reference to contract b: let bAddress =…
0
votes
1 answer

"jsonrpc":"2.0","error":"execution reverted" in getPrice function

make 1NFT free -> after nft per .0022 sale function so I made this get price function, function getPrice(address _sender,uint256 _quantity) public view returns (uint256){ uint256 _userFreeAmount = maxFree.sub(_numberMinted(_sender)); //can free…
ZO eth
  • 1
  • 1
0
votes
1 answer

TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider') when running testcase for FundMe Constructor

I am trying to run test cases, following the tutorial. I also remove the async function from the describe. But still getting the error, when running the test case. Also, I have deployed the contract in the local network and testnet. There wasn't any…
0
votes
0 answers

My hardhat contract suddenly started throwing a 'can't estimate gas error' after changing nothing from a previous contract that already worked

I have been editing this one contract inside of the same environment for about 2 months now. Yesterday, I was messing with some event emissions when all of a sudden my contract started throwing this ' error: Error: failed to meet quorum…
0
votes
1 answer

Truffle migrate Error: You must specify a network_id in your 'rinkeby'

Truffle migrate Error: You must specify a network_id in your 'rinkeby' configuration in order to use this network. this is my truffle-config.js const HDWalletProvider = require("@truffle/hdwallet-provider") const config = { alchemy:…
kkpzj
  • 1
0
votes
0 answers

Why Uniswap V2's function getPair() is returning a null address

I'm trying to get the pair address if the USDC / USDT pair on uniswap using the v2 core. The pair address exists on uniswap but when i run the code it returns me a null address (0x0000000000000000000000000000000000000000). Im using the goerli…
Shadq
  • 25
  • 5