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
0answers
2 views

web 3 - why calling smart contract return empty Result object

I am using ReactJs for the frontend. At first, I click the first button, and it shows me connected. After that, I click the send button which call myContract, and it returns the object like below: ...
0
votes
1answer
16 views

Smartcontract that receive tokens and ether(native BNB) and swap it through pancakeSwap router?

i am creating a smartcontract on BSC which receive specific BSC tokens and transfer it to smartcontract. and then using Pancakeswap router to swap that token to MyOwnToken. but i am unable to ...
0
votes
1answer
14 views

Ask user to sign a Eth transfer transaction

I want the user to sign a transaction for Eth transfer but execute it at a later point in a smart contract. Example: I want the user to sign a transfer to Address B of 1 ETH The signed transaction is ...
0
votes
0answers
29 views

Uniswap - Pancakeswap Sdk, Retrive Tokens Route

How can i retrive the Route for two tokens that have not a pair ? The following code uses two tokens that doesn't have a pair on uniswap, and during the execution encouter an error that is reported ...
0
votes
0answers
5 views

transfer token from an account that doesn't have ETH

I have a centralized ERC20-token exchange. I have millions of customers each has some tokens in his account. For privacy reasons, I want to transfer their tokens to my hot wallet. But none of my ...
0
votes
1answer
13 views

Token questions

When a company has a token that appears on ether-scan, and someone decides to buy the token on ether-scan using eth, will that eth they used to buy the token go to the company? Or does it only just ...
0
votes
1answer
28 views

Returned values aren't valid, did it run Out of Gas? using call function with web3js

I'm new to blockchain development, I have done some simple projects before and I had no issue in calling the functions with web3js, but now I'm trying to run a call function on a smart contract using ...
0
votes
0answers
5 views

Google BigQuery Ethereum transactions: transactions_type

In the Google BigQuery transactions table, I was wondering what the values in "transaction_types" stand for - they are either 0, 1 or 2. Many thanks.
0
votes
1answer
16 views

Importing Existing tokens on blockchain!

I'm trying to create a Farming smart-contract. I'm completely new to solidity so i want to know if there's a way i can import an existing token from the blockchain, then call methods on that token's ...
0
votes
1answer
46 views

Please help get my stuck ETH back? Metamask

I'm hoping someone can help. I tried to mint some NFTs and my transaction got stuck in pending. Let's call this "Transaction #1". It was for 0.1332 ETH. After about an hour, it showed as &...
0
votes
0answers
29 views

Error? decode BSC input data using python3

Hash:0xf45f14b3eafa1867deafe6cdcddf0c751da125744ddcef0aa3e9c34221ecca83 When I was trying to decode the BSC input data by python, TokenContract=web3.eth.contract(address=contract, abi=abi) transaction ...
0
votes
0answers
11 views

Track WETH by transaction HASH

Trying to analyze this transaction Etherscan.io My goal is to read the Amount transfered. Over etherscan API I'm getting value 0. I suppose because it's WETH - Wrapped eth. My get request ...
0
votes
1answer
65 views

Can python be used reliably as a ETH miner?

Was wondering if python can be used reliably as a ETH miner? Searching around etherminer and others are made in C/C++
0
votes
0answers
10 views

get total transaction value for block

I have written a simply while loop to return the total transaction value of a block, however, it takes almost 30 seconds. Therefore I am looking to the community for a much faster way of retrieving ...
0
votes
0answers
21 views

ETH mysteriously removed from my account around 12hours after using Binance Bridge

Perhaps someone can shed some light on this for me? Recently joined the crypto world. Created a Metamask account, sent some test eth, all was fine. Had a family member send some BNB, then add some ...
1
vote
1answer
16 views

How to test ether value in truffle test script using Mocha and chai

I'm having a method inside my contract which return a variable having value is 100 ether for example. E.g: uint256 private baseline constructor() { baseline = 100 ether; } function getBaseline() ...
0
votes
1answer
22 views

Meta transactions on ethereum

I've been trying to implement meta transactions in my project, but I couldn't find anything, openzeppelin's documentation wouldn't work I need a tutorial from A to Z because I'm still a beginner. can ...
0
votes
1answer
23 views

What is the best way to accept ether payment without using a third party payment service?

I am new in Ethereum blockchain technology. I wanted to make a payment gateway for accepting Ethereum. I ran ethereum rinkeby testnet on my local machine and tested Ether transfer to another wallet. I ...
0
votes
0answers
10 views

Remix Transaction Execution Failed

I tried to upload this on the matic mainnet but it keeps failing // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable....
0
votes
0answers
18 views

About IPFS client add() function

I am digging into ipfs field in order to start a NFT project so that I am working with frontend with ipfs-http-client npm package (npm i ipfs-http-client). My simple test code is like below: const { ...
0
votes
0answers
12 views

Does Cancelling Transaction on Eth cost?

I was trying to mint something on Rarible today (first time doing any sort of transaction on Ethereum network) and it got stuck pending (because I didn't give it enough gas). Now I want to cancel it, ...
1
vote
0answers
21 views

How can exchanges afford to offer free deposits for ETH and ERC-20 tokens?

The question has been asked previously but the accepted answer does not hold a candle to reality: In both cases, the exchange pays the gas fee to send the tokens to the hot wallet. That's why the ...
1
vote
1answer
15 views

Can the same ETH be used to pay for gas for multiple ERC-20 token transfers?

Suppose I deposit two ERC-20 tokens (let's say USDC and USDT) into a single ETH address with $10 worth of Ether and I now want to transfer both of these tokens to another address. Suppose the current ...
1
vote
0answers
12 views

Paying for ERC-20 Transfer using Automatic Gas Station Fillers?

I'm building a cryptocurrency service which allows users to deposit and transfer ETH and ECR-20 based tokens (such as USDC and USDT). When a user deposits an ERC-20 token, the user must have ...
0
votes
0answers
21 views

How to create a USDT TRC20 wallet with multi deposit address?

How can I create a USDT TRC20 wallet with multi-deposit address? One user in our system will have unique deposit address
1
vote
0answers
20 views

Expose aditional APIs via Go Geth Ethereum Client

I am asking more experienced Go Geth developers what is the module that is in charge of exposing variables on the Geth Console / RPC. What I need is to expose the variable containing the addresses in ...
0
votes
2answers
31 views

Physical location of Ethereum World State Trie

First of all, allow me to admit to a mistake I made on the other sites like this one, when I asked almost the same question. I feel it is ethical to explain this. I mistakenly asked this question on ...
0
votes
0answers
12 views

How can I input data from frontend to smart contract?

Hello I am new to smart contracts. I am trying to set data from a frontend into a smart contract and retrieve it after. When I am sending the data from the frontend into the smart contract and return ...
0
votes
1answer
17 views

How to get gas fee to send erc20 token at mass volume?

Pardon me for my poor english. What I am trying to achieve is: I am learning node JS developing a crypto currency exchanger as a homework project where user can deposit ERC-20 token and Ethereum. I am ...
1
vote
0answers
10 views

Eth 2.0. block rewards

I have found a few models presenting the issuance rate of ether and it becoming potentially deflationary. Yet, I can't seem to find any written explanations about how these are calculated. I am ...
0
votes
1answer
30 views

How Do I Minimize ETH Transfer Fees?

I sent some ETH yesterday from a coin exchange to my ETH wallet. The gas limit was 21000, gas used was 21000 and the gas price was 111.608. The fee charged was approx. 0.00234 ETH, which was approx. 8%...
0
votes
0answers
64 views

How to cancel Automatic withdrawal on Trustwallet

Please i need the best help i can get, my trustwallet was compromised and i have some token staked on it. When I deposit eth or any other token, it’s automatically sent to a different address almost ...
0
votes
0answers
24 views

Smart contract realization flash loan

I am trying to create a smart contract that will take a flash loan and make transactions. https://etherscan.io/tx/0xf65b384ebe2b7bf1e7bd06adf0daac0413defeed42fd2cc72a75385a200e1544?...
0
votes
1answer
16 views

How can you restrict access to a website based on the contents of a Matamask wallet?

How can you restrict access to a wordpress website based on the contents of a Matamask wallet? Similar to the BAYC bathroom (https://boredapeyachtclub.com/#/login-bathroom), where you can only log in ...
1
vote
1answer
106 views

Error occurring while trying to swap tokens in Uniswap v3

I'm trying to execute a swap using web3 through following code snap: const fromTokenAddress = `0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`; // WETH9 const toTokenAddress = `...
0
votes
1answer
37 views

while converting number 0.001 to BN.js instance, error: Value must be an integer, hex string, BN or BigNumber instance

I want to transfer 0.001 token and I cannot use web3.utils.toWei(0.001) as the smart contract has 12 decimal instead of 18 decimal. How can I correct it ? var decimals = 12; var amount = web3....
0
votes
1answer
30 views

Can a contract create a transaction that may trigger a change of state on ethereum network?

I am looking at the slides of this link. As I see there the author differentiates between a message and a transaction. As can be depicted in this slide Furthermore, looking at the four cases of ...
0
votes
1answer
10 views

Possible to lower transaction fees when adding liquidity via Uniswap V2 router?

When I add liquidity to my contract via a Uniswap V2 router, the router creates an LP token with the full set of functionalities. Is it possible to create a subset of Uniswap V2 functionalities with ...
0
votes
1answer
607 views

Are Ethereum Addresses the same as Polygon?

On OpenSea, I can sell my NFTs on Polygon (MATIC) to lower gas fees. Whenever the NFT is resold, I can specify a royalty to be received by certain wallets. When I create a collection, it prompts me ...
0
votes
1answer
564 views

Why is there a problem of insufficient funds in Opensea?

I am trying to pay the registration fees for setting up my Opensea account. I have currently 0.02959 Eth in my account but when I try to pay the gas fee, there is always insufficient funds problem. ...
0
votes
0answers
36 views

Insufficient funds for intrinsic transaction "response" "jsonrpc 2.0 method=sendTransaction

I have a problem, when i try to buy a token with my sniper bot have this error. I have > funds of gas require. this is my script (i use BNB) const ethers = require('ethers'); const prompt = ...
0
votes
0answers
22 views

Get Ether price by Unix Timestamp?

Is there any API I can use to get the price of Ether by providing a unix timestamp? The reason I ask is because I am using the Etherscan API to download internal transaction data but for some reason ...
0
votes
1answer
17 views

How to obtain blocks information easily?

I am interested in collecting blocks' information in Ethereum. For example, for each block i want to get the followings: Gas Limit, Used Gas, Gas Price, Tx fee, Number of tx, number of uncles. I am ...
0
votes
1answer
24 views

Payable Function Solidity - What is the error: The transaction has been reverted to the initial state

'm trying to make a simple transaction between two parts (Supplier and Producer). First I make the contract deploy, then I defined the amount (that will be 1) and I make the transaction ->Amount ...
0
votes
0answers
24 views

How can there be multiple FROM addresses in one contract?

As I understood, there cannot be several senders for eth. How to make such a contract? For example, here is a transaction with several addresses, this is a swap, but it's still not clear how: https://...
0
votes
2answers
39 views

Migration to test net works, but not to main net

I am trying to deploy my contract to the ETH mainnet / livenet. Everything works fine for the testnet, and also the dry-run for the mainnet works, but not the actual migration. Here is the output: ...
1
vote
1answer
62 views

Send transaction with all ether (fees) - EIP 1559

I'm not sure I right understand structure of fees (EIP 1559). Because I cannot guess what will be base fee for my transaction, 'cause I will not know how much transactions will be in block (base fee ...
0
votes
1answer
33 views

Two buy orders at the same exact time, no miner tips included, but lower GWEI order wins. How is this possible?

question for the group: if two buyers submit a Buy at the exact same time, one chooses 300 gwei and the other chooses 400gwei, no Miner tips on either one, is there some scenario where the 300gwei one ...
0
votes
0answers
22 views

Error occurred during Contract execution on Etherscan (Transactions don't sum to wallet balance)

I have been selling NFTs on OpenSea, and I receive exactly 0.01 Ether for each sale. The sales show up in Etherscan as "Internal Transactions." Some of the internal transactions show up as &...
0
votes
0answers
17 views

How to get logs of all `transfer` methods in blocks?

I want to get logs of all transfer methods in the block. I am using web3.js or ether.js. I have to set fromBlock and toBlock. This is my sample code. But I can't set fromBlock and toBlock. Now, I get ...

1
2 3 4 5
35