Questions tagged [ether]

Ether (ETH) is the main internal crypto-fuel of Ethereum and is used to pay transaction fees.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Parameters that can be passed in curly braces for message call and delegate call

When I use "call" in solidity I am able to pass parameters in parenthesis and in curly braces. What is the full list of parameters I can pass in curly braces? What is the main difference ...
user avatar
2 votes
3 answers
18 views

what is the input for this get latest price function call

after deploying this contract on rinkeby it uses a bit of gas to get onto the network, when i use the call function the gas denomination leaves and there is another input that is not clear to me it is ...
user avatar
0 votes
0 answers
16 views

How to cause a .call to revert in hardhat test

I am trying to cover all of my lines in my smart contract unit tests with hardhat, and I am not sure how to test the Raffle__TransferFailed() error. Is there some way to force this transaction to fail?...
user avatar
0 votes
0 answers
8 views

Hello please give me answer in my questi [closed]

How to connect web3 in react native App, How to get balance web3 in react-native
user avatar
0 votes
0 answers
18 views

Eth_Sign keeps giving scary warning eventough its nothing dangerous

I am currently sending a singned transacion that is beeing signed with eth_sign. The transaction is a contract method and our team needs such a transaction but a red message is beeing displayed that ...
user avatar
  • 1
0 votes
2 answers
25 views

Withdraw eth from contract address

I accidentally sent Eth to a contract address. The contract was created by my eth address. Im not sure how but it looks like it is associated with my sending NFTS to my ledger etherscan.io/address/...
user avatar
  • 1
0 votes
1 answer
33 views

Why the transaction fee in blockchains change?

I would like to understand why when making a transaction in the blockchain, the fees change. Being in the polygon network, I execute the same contract 10 times and the transaction price is always ...
user avatar
  • 25
0 votes
0 answers
18 views

Ethereum 0 gas cost Blockchain

Hi guys, I am looking for an Ethereum Blockchain like Quorum to use like a database for JSONs. I am actually using geth PoA with one node un my home and two nodes in AWS EC2. I have been facing some ...
user avatar
0 votes
1 answer
24 views

Uniswap V2 Flashswap. Pool doesn't exist

I'm trying to upgrade a flashloan file from my study and I don't get one moment about checking pool existence. Here is the code. // Get the Factory Pair address for combined tokens address ...
user avatar
-2 votes
2 answers
32 views

Why there are 8 zeros before digit 1 [ 0.000000001 ETH]

Unable to understand why Block chain uses before decimal point uses 8 zeros. As far as ETH its Giga Wei and satoshi for bitcoin. But why we use so many zeros?
user avatar
1 vote
3 answers
104 views

Do we still need centrallize database at all for Dapp development?

This question keeps popping up in my mind, do we need centralize database at all for Dapp development like PostgreSQL, MongoDB and more, what if we want to store user's email and send them email ...
user avatar
1 vote
0 answers
16 views

Does Ethereum 2.0 support 100K TPS per shard or totally?

Hello recently i read that Ethereum 2.0 will handle 100K also i read that it will support 64 shards. Thus i think that the 100k TPS is an estimation for a total of 64 shards not 100k per shard because ...
user avatar
1 vote
1 answer
19 views

Minting ERC20 on ETH and Polygon

I am looking for creating an ERC20 smart contract on ETH and mapping it to Polygon. The idea is to have 100.000 tokens available in total and allow users to mint from both sides. Is this possible? I ...
user avatar
0 votes
0 answers
17 views

Where is a off-chain transactions stored?

I don't fully understand off chain transactions. They do not need to be verified by other validators/nodes. Okay that doesn't seem like a big deal, but then I read this: Off-chain does not necessarily ...
user avatar
0 votes
2 answers
36 views

Pls why am I getting this error when I run a test in hardhat?

Whenever I run the test command, I keep getting this error: 0 passing (3s) 1 failing 1) Crud uint test Initial form must be empty: ReferenceError: createForm is not defined at ...
user avatar
0 votes
2 answers
26 views

Pls how do I create a nested array in solidity

I was trying to create a contract that has multiple rooms, in each room there would be some amount of players. Pls how do I acheive this? This is my approach but it's not working. I am unable to ...
user avatar
0 votes
1 answer
30 views

Why should I create a fix supply/unlimited supply for my token

I am about to create my own ERC20 just to practice what I've learnt in the tutorial I watch, so here in openzeppelin doc https://docs.openzeppelin.com/contracts/4.x/wizard, I can create a contract to ...
user avatar
0 votes
1 answer
21 views

Self Escrow Smart Contract Not Paying Out Money

I have a self escrow contract deployed on the Rinkeby Test Network. The goal of this contract is to store the owner's money for a period of time, and then pay it back when that period is over. Here is ...
user avatar
  • 3
0 votes
2 answers
27 views

Where is the $69M transaction for Beeple's artwork NFT in the Ethereum blockchain?

Sorry this is old news, but Beeple's artwork was apparently bought by Metakovan for 42,329.453 ETH, which was around $69M at the time, in March 2021. This was obviously a very big transaction, but if ...
user avatar
0 votes
1 answer
27 views

Withdrawing ETH from contract

I sent eth to a contract address associated with my wallet by mistake. Is there a way to withdraw the eth? https://etherscan.io/address/0xd7830d8224B65eaF24dE37748f69820F81368f59
user avatar
  • 1
0 votes
0 answers
34 views

Buy nft problem, caller is not token owner nor approved

I am creating my first nft project and in this project I will sell with metamask from my own web page, but there is an error I get every time, only the contract owner can transact, different wallets ...
user avatar
  • 1
0 votes
1 answer
35 views

Cannot get deposit() working in simple wETH contract

I am trying to test the deposit() function of the WETH9 contract in Remix. I compiled and deployed a simplified WETH9 contract: //SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.1; contract ...
user avatar
  • 15
0 votes
1 answer
77 views

Can't read value from '.env' file in my hardhat project

I am trying to read variable values from my .env file here, but all I am getting is values are undefined. require("@nomicfoundation/hardhat-toolbox") require('dotenv').config() const ...
user avatar
-1 votes
0 answers
19 views

i created a contract then the money not display [duplicate]

I created a metamask wallet, then treated a contract and transferred money from the wallet address to the contract address. How I can get the cashback, please. Then the contract was transferred money ...
user avatar
0 votes
0 answers
26 views

i need to intergrate walletconnect modal if user doesn't have wallet in mobile browser, leave your eth address after the answer 👍

i need to add wallet connect intergration if user opens this page in mobile browser and press connect wallet and without redirecting user to else if (web3) { initPayButton(); } else { window....
user avatar
1 vote
0 answers
13 views

Can't full sync node

My node can't catch up actual block, it stays around 70-100 block to latest block. I installing node on Windows10. In logs what i see in geth.exe it show me what i am importing a latest block headers, ...
user avatar
  • 11
1 vote
1 answer
25 views

Scammer stolel my crypto [duplicate]

Unfortunately when I was sleeping and left my computer turned on, someone got into my pc and emptyed all my coins from all my soft wallets. I'm 100% sure the did not have my seeds and passwords as im ...
user avatar
0 votes
0 answers
12 views

Signing throws out scary warning

I am currently building a gambling website based on web3. Before the user can play slots etc... I need access to the funds so I created a signing message with which i can transfer funds. If he clicks ...
user avatar
  • 1
2 votes
2 answers
30 views

Claiming rewards in P2E game

I am currently working on P2E game. The game development is being underway in Unreal Engine 4. The users will play the game. And will achieve few tokens on behalf of their winnings. Let’s say I have a ...
user avatar
0 votes
1 answer
27 views

How to calculate gas cost of an ETH transaction in USD?

I am trying to calculate the dollar cost of ETH transactions using the following code: response = requests.get('https://api.etherscan.io/api',params={'module':'account','action':'txlist','address':...
user avatar
0 votes
0 answers
10 views

Transfer all eth from a wallet to another wallet [duplicate]

Can I transfer the entire amount of eth of a wallet to another wallet?
user avatar
0 votes
1 answer
21 views

Testing a SmatContract on Ropsten - The transaction is "Success" but I didn't get token in my wallet

I'm trying to take my first steps in the blockchain, and sometimes I stuck with some very weird issue (for me), this is one of them. I've deployed a very simple SmallContract that inherit from @...
user avatar
0 votes
0 answers
36 views

Error getting balanceOf of token with ethers.js

I'm using VoidSigner with zero address to request balanceOf token. I'm calling this from nodejs application which doesn't have a real wallet attached. This seems like a very straight forward code and ...
user avatar
0 votes
0 answers
16 views

Is my ether on owned smart contract was locked forever?

This is my first contract i deployed. Please say no. https://etherscan.io/address/0xa048481aea8e2582f2eb7745f6e6c04a5599863c#code
user avatar
0 votes
0 answers
31 views

transfering rewards from website to crypto wallet

I want to transfer rewards that user had earn to his crypto wallet but problem is in our smart contract there is function with parameter value(amount) and address of reciever I need a secure way of ...
user avatar
0 votes
0 answers
20 views

Releasing ETH from Escrow Smart Contract Back to Original Party

What is the best way to refund ETH from Escrow Smart Contract to the original party on an Ethereum blockchain? I created a smart contract which allows one party to submit a specified amount of ETH, to ...
user avatar
0 votes
1 answer
14 views

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

Need to generate error cases for ether transfer to see how blockchain deals with these cases. But ethereum clients like metamask didn't allow sending ether higher than the balance. Tried the same with ...
user avatar
0 votes
0 answers
14 views

Why sender is allowed to set gas price?

On Ethereum transactions, I read that for every transaction, a sender sets a gas limit and gas price. The product of gas price and gas limit represents the maximum amount of Wei that the sender is ...
user avatar
  • 103
0 votes
1 answer
26 views

Conversion from Wei to Ether gives different results [duplicate]

I'm trying to analyze the transaction of this contract, but sometimes when I try to convert from wei to ether value of tokens I got comma in different position than expected. This is how I proceed: 1)...
user avatar
0 votes
1 answer
44 views

Conversion from Wei to Ether gives different results

I'm trying to analyze the transaction of this contract, but sometimes when I try to convert from wei to ether value of tokens I got comma in different position than expected. This is how I proceed: 1)...
user avatar
0 votes
0 answers
16 views

How can I send the internal transactions balance of eth of a wallet to another wallet? [duplicate]

How can I send the internal transactions balance of eth of a wallet to another wallet? I want transfer my wallet's eth to another wallet including internal transaction's balance.
user avatar
0 votes
0 answers
11 views

How to watch for gas token transfers?

How to watch for gas token transfers in Ethereum (more specifically, in Polygon)? ERC-20 and ERC-1155 transfers produce events, but gas token transfers don't. How to watch over them? Is polling the ...
user avatar
  • 1,364
0 votes
3 answers
623 views

Help Please hardhat.config.js * Invalid account: #0 for network: Rinkeby - private key too short, expected 32 bytes

Hi Please i get this error while compiling hardhat.config.js : * Invalid account: #0 for network: Rinkeby - private key too short, expected 32 bytes i have my private key in dot env copied from ...
user avatar
0 votes
1 answer
18 views

How to rectify Parse error in Remix IDE

// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.13; contract Carshop{ constructor() {address[] carAssets; function createChildContract(string brand , string model) public payable{ ...
user avatar
0 votes
0 answers
123 views

Typechain: how to generate factory, d.ts files of contract abi

I have a command called typechain --target=ethers-v5 --out-dir src 'src/constants/abis/BoxContract.json' which created a BoxContract.ts file and a BoxContract__factory.ts, but it doesnt create a ...
user avatar
0 votes
0 answers
20 views

how to get data from contract A, and use it in contract B

I have gotten the data correctly from contract A...I cannot figure out how to use it in Contrtact B. One search led me to believe it may not be possible.. However what would be the point of Contract B ...
user avatar
0 votes
1 answer
17 views

How to write ether/Ether (start with capital case)?

I am writing a paper and I know this has something to do with the English but I have decided to ask here because when you think deeply enough you realize this question requires some knowledge about ...
user avatar
  • 138
0 votes
0 answers
12 views

Process 2 Ethereum Transactions with single Transaction [duplicate]

I'm using third party SDK method and completing the transaction successfully. I'm trying to do the same function twice within a single ETH transaction. It's impossible with SDK method. I tried to ...
user avatar
1 vote
1 answer
84 views

Getting WETH from ETH on Hardhat Local Network

I have a localhost Hardhat Network running but I need to convert Fake ETH on it into WETH. How can I do this?
user avatar
0 votes
0 answers
19 views

Why is the eth/usd contract not marked as a valid ETH address ? I get a Value error constructor when I try to run deploy script on mainnet-fork

I am following Patrick Alpha's brownie tutorial using python visual studio: https://www.youtube.com/watch?v=M576WGiDBdQ (at around the 5:57 mark). I am using brownie and am trying to run my python ...
user avatar

1
2 3 4 5
41