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
1 vote
1 answer
13 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
14 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
9 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
15 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
11 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
15 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
5 views

Obtaining my Coins, Tokens, N.F.T.'s!

My question is! why is it so difficult to obtain Ethereum and all other Coins, Tokens and NFt's, when I possess the seed phrase, address, Tx hash: Block Has, secret Key, API, and everything else ...
user avatar
0 votes
0 answers
29 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
17 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
13 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
12 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
20 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
27 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
15 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,344
0 votes
2 answers
164 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
16 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
39 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
19 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
  • 118
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
0 votes
1 answer
36 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
17 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
0 votes
0 answers
7 views

I am trying to run my project on rinkeby test net and trying to use it as a default provider but whenever i try my project id is missing in rpc url

this is the code. project id is missing after the https://rinkeby.infura.io/v3/. i am new to this technology. i hope anyone to help me out. const sdk =new ThirdwebSDK( new ethers.Wallet( process.env....
user avatar
-1 votes
0 answers
10 views

I am trying to build a marketplace and I wanna get all the assets of the suer so I can work with them and make sales etc

As said in the title I wanna build a marketplace. I will need to get all the assets. Yesterday I was visting some marketplaces and they were able to make a signature request that allowed them to get ...
user avatar
  • 1
0 votes
2 answers
46 views

How to list all accounts using ethers.js

web3.js has a function which lists all the accounts but, how can we list all the accounts in ethers.js?
user avatar
0 votes
2 answers
144 views

error occured Error: Transaction has been reverted by the EVM:

Intro I am making my first ever smart contract. So please cut me some slack. Basically, I am trying to make a staking contract in which I want the ability to deposit my USDC which should be done by ...
user avatar
0 votes
0 answers
16 views

How to create smart contract using openzeppelin metatx relayer to receive and withdraw usdt erc20 token using metamask?

Here is what I need to do, Create a smart contract that can use a relayer account from Openzeppelin defender and do the gasless meta transactions. Which I already created and sent some Ethereum too. ...
user avatar
0 votes
1 answer
19 views

How much data can I read from Smart contract, Is there a limit

We are aware that reading data is free from the Ethereum Blockchain. Is there a limit to the amount of data I can read? If someone runs a never-ending loop on the call, WIll block chain still give ...
user avatar
  • 105
0 votes
1 answer
41 views

Why my transaction failed : error -3200

I'm trying to developp my first smart contract to make some arbitrage between DEX. I started by using the code from : https://github.com/pugzly/token_swap/blob/main/token_swap.sol But when I execute ...
user avatar
1 vote
1 answer
58 views

“Personal address detected. Import the collectible contract address” error while importing an NFT from Opensea

Let me share my problem in short here. So I did a course on Buildspace that was on Creating your first smart contract. On completing it, I got a Buildspace NFT from their side but I was not able to ...
user avatar
0 votes
0 answers
19 views

How to differentiate 'normal transaction' values from 'internal transaction' values, avoiding duplicate values

I'm aggregating data from the Etherscan API and I'm trying to add all normal transactions and internal transactions together and then calculating the balance of ETH for a wallet based on the past ...
user avatar
0 votes
0 answers
7 views

React Build With Ethers Gives UglifyJs Error, "Unexpected token: name"

I'm using Ethers Version 5.6.8 Here's What I did: 1). Scaffold a new React app npx create-react-app foo Install ethers npm i ethers Then in my App.js: import { ethers } from 'ethers'; Try to build: ...
user avatar
  • 113
0 votes
0 answers
10 views

Truffle init Problem

I am getting the following error while doing truffle init. C:\Users\ok\AppData\Roaming\nvm\v8.9.0\node_modules\truffle\build\231.bundled.js:54129 } catch { ^ SyntaxError: Unexpected token {...
user avatar
0 votes
1 answer
46 views

MATIC to ETH comparison w.r.t Wei

I just started to understand Polygon network. As 1 MATIC = 10^18 Wei and 1 ETH = 10^18 Wei and Wei is the smallest denomination on both networks, but then Why is 1 MATIC not equal to 1 ETH (We have 1 ...
user avatar
  • 15
0 votes
0 answers
4 views

transact to Kryptorya.RandomNft errored

Error encoding arguments: SyntaxError: Unexpected token ' in JSON at position 4 function RandomNft(string[] memory Uris) public { for (uint256 i = 0; i < Uris.length; i++) { ...
user avatar
  • 1
3 votes
1 answer
72 views

Hardhat local transactions don't process

I'm new to hardhat. I am playing around with the local hardhat accounts, which are all funded for 10k ETH. All I want to do is send some ETH from 1 account to another, and check the second account's ...
user avatar
  • 31
0 votes
0 answers
29 views

How to give approval to all addresses to transfer my tokens?

I am trying to develop an erc 1155 marketplace? I am using the function : ERC1155.setApprovalForAll(to, true); To provide approval to all tokens that the owner owns to a particular address. Now, I ...
user avatar
0 votes
2 answers
46 views

Is it possible to send testnet eth from one testnet network to another?

Is it possible to send testnet eth from one testnet network to another? Curious because ain't getting much testnet eth these days.
user avatar
0 votes
1 answer
19 views

How a cryptocurrency like MATIC works?

I’m a beginner to the cryptocurrency and I’m struggling to understand the fundamentals of this field. I was reading about how cryptos work and what they are used for. I took as an example the MATIC ...
user avatar
  • 101
0 votes
0 answers
17 views

ETH: Failing to Swap Tokens in same txid when transfering from DEX

I am having troubles with the following scenario: I have written a simple token which takes buy & sell tax fees of 3%. (All Good) I want the fee to be immediately swapped for ETH in the same ...
user avatar
0 votes
0 answers
13 views

Does the fall in Ether's value risk the stability of the Ethereum network in general?

If the value of Ether falls substantially or possibly falls completely, what risk does that pose to the Ethereum network in general ? If nodes on the network are paid in Ether and Ether no longer has ...
user avatar
  • 101
0 votes
0 answers
31 views

Standard way for creating token ID in ERC 721

Is there a standard way for geneting token Id in ERC 721. Most of the tutorials which i went through, they are generating a number sequence starting from 1 and incrementing it. Example: tokenID is ...
user avatar
  • 105
0 votes
0 answers
32 views

TypeError: ethers.Contract is not a constructor

I am using ethers.js library. I used the following line to create a contract. I used the same line previously without any issue. contract = new ethers.Contract(address, ERC20_ABI, provider); however,...
user avatar
0 votes
1 answer
9 views

How to reduce amount in Contract and not from Account

I have a fallback function like this. So I am able to send and increase the amount in "contract address". Assume I sent 2 transactions like 10 and 20, the sum is 30 is successfully shown. I ...
user avatar
  • 105
0 votes
1 answer
19 views

Get an NFT's last sale price

How can I fetch the last sale price for an NFT? Basically need to do this for all the NFTs in a collection. Finding out the real cost price of all owners in the collection at this moment. What's the ...
user avatar
0 votes
1 answer
26 views

Can I store ether and ERC-20 tokens in one contract?

I am trying to create a contract to store ether and two ERC-20 tokens. People will transfer ether and the other two ERC-20 tokens to this contract and when the time comes, the owner of this contract ...
user avatar
  • 121
0 votes
2 answers
24 views

Where does the yield for staked eth before the merge come from?

After the merge it is clear where the yield comes from, but right now I do not understand where the approx. 4.4% come from? Is the supply of eth simply inflated by the beacon chain in order to pay out ...
user avatar
0 votes
0 answers
36 views

Getting An Invalid BigNumber error code when attemping to return a uint256

function requestVotes(uint256 _id) public onlyOwner { proposalIdURL = proposalContract.Proposals(_id); string memory voteURL = string(abi.encodePacked("https://hub.snapshot.org/...
user avatar
0 votes
0 answers
82 views

How to write the Mint function in an ERC1155 Smart Contract and Ethers js library

Can anyone help me implement the mintPass(mintAmount) method in my next js application using ether.js library how can I write the mintPass so people can mint till 4 passes I am using ethers.js library ...
user avatar
  • 1

1
2 3 4 5
41