All Questions

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

brownie steps to compile, deploy and interact on ropsten

I have create a smartcontract and deployed it on ropsten with brownie framework. Here are the steps i've done: Run the command: $ brownie init projet1 I have create my contract in contracts/Contrat1....
1
vote
0answers
6 views

GETH + Infura Transaction Propagation Speed

Pointing to my question here: GETH node maxpeers performance and benefit I've been running a few experiments with nodes positioned at different locations globally. Experiment Basically I'm looking for ...
0
votes
0answers
8 views

Error: Function does not return accounts linked to metamask

async function getCurrentAccount() { const accounts = await window.web3.eth.getAccounts(); console.log(accounts); return accounts[0]; } This prints: [ ]. Metamsk is connected to ropsten ...
0
votes
0answers
10 views

Accidentally sent DAI to Compound contract address

I withdrew DAI and accidentally pasted the wrong address as the destination, and ended up sending it to the cUSDT contract address. Is there any way to get these tokens back? the contract code is here
0
votes
0answers
7 views

What happens when I provide liquidity for a small market cap token?

If I go to DeFI exchanges (ex Uniswap) and I provide liquidity for small tokens which might be traded in one direction mostly. I wonder what would happen to my share of fees? Would I be losing money ...
-3
votes
2answers
34 views

Is Ethereum actually something that exists, or is it just a maze of webpages full of nonsense?

I'm trying to be as polite as I can be, as I have nothing against Ethereum specifically. I'm very experienced with Bitcoin, but have never found any other "altcoin" to be worthy the time of ...
0
votes
1answer
17 views

Difference between @constant and @view on a smartcontract function

I am reading some vyper projects on github. I have seen 2 attributes on the line before the function name: @constant and @view According to documentation, this 2 attributes are saying the function may ...
0
votes
1answer
17 views

one transaction with several actions

I am wondering if the following code will produce the transaction with two actions: pragma solidity ^0.7.1 import "https://github.com/bla-bla-bla/contractA.sol"; import "https://github....
0
votes
0answers
8 views

How to call my smart contract method using new metamask

I am able to connect or call the send txn method of ethereum using new metamask script. But i m not able to call the method of any of custom contract. Can someone tell me how can i do in javascript? ...
0
votes
1answer
15 views

How do I create an index of other contracts and their methods?

I want to create a proxy / router contract that stores addresses of other contracts function names of other contracts functionality and accepted parameters in these contracts. ID for each contract ...
0
votes
0answers
9 views

Please help to detect ETHEREUM JSON key file

Time: 2014 year. I have next key: {"public_key":"02f6197ef15d989898b11c6c0axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "data":"...
1
vote
0answers
16 views

GETH node maxpeers performance and benefit

I'm trying to optimize my node for transaction propagation speed. Expanding on this question: Can we improve the performance of Geth server by setting maxpeers to 0? Are there any data available ...
0
votes
0answers
10 views

how do i fix such an error; uncaught TypeError

The error that I am facing is as said 'Uncaught TypeError: Cannot read property 'abi' of undefined These are the codes FilmRegistrationApp.prototype.init = function(cb) { this.web3 = new Web3( ...
1
vote
1answer
14 views

29 Word Seed Phrase Recovery

around 2018-04-14 I opened an eth wallet, which I am positive was with MetaMask. I have found a file on my computer that contains a 29 word seed phrase. I saved this file and labeled it "Do not ...
0
votes
1answer
13 views

Function does not execute sequentially

I'm trying to check in a JavaScript function if checkVehicleExists returns a true or false before proceeding with my if else statement which will depend on whether checkVehicleExists is true or false. ...
1
vote
1answer
17 views

BatchRequest() is a single transaction or many?

web3.BatchRequest(); does it produce a single transaction with several functions of the (possibly different) contracts or not? var batch = new web3.BatchRequest(); batch.add(web3.eth....
0
votes
0answers
16 views

How can I return array of all struct in solidity

I'm working on a staking dapp and I after a user stake a token , I want to be able to list all this user staking history. string public name = "Staking Contract"; IERC20 public mftToken; ...
0
votes
0answers
10 views

Function calls in React to deployed contracts return nothing

I have a simple lottery contract. When I call functions to it from Remix IDE I get the expected result. However, when I make calls to it from React, I get nothing back (such as from manager() or ...
0
votes
0answers
17 views

Mapping of addresses and balances and gas limit

I need to create mapping of addresses and balances to withdraw tokens. Should i care about deleting users from mapping . Does mapping creates duplicates of addresses entries or only should i care to ...
0
votes
0answers
16 views

ipfs.add TypeError: AbortController constructor: 'new' is required

I am using latest version "ipfs-http-client": "^48.2.2" <form onSubmit={ async (event) => { event.preventDefault() try{ ...
0
votes
1answer
16 views

Trying to check if mapping exists, TypeError: Type uint256 is not implicitly convertible to expected type bool

I am checking if a struct exists in vehicleList and returning true if it exists and false if it does not. However, the function produces an error and I can't understand why it does not work. TypeError:...
0
votes
0answers
16 views

ETH sent to wrong address

First time setup of my Ledger X nano: I wanted to send some ETH for gas to allow sending my CHAIN from Coinbase to my new ETH 1 account. Unfortunately I sent $30 worth of ETH for gas to the ETH 1 ...
0
votes
0answers
22 views

What sniper bots works on Uniswap? [closed]

What are good sniper bots available for Uniswap? I need one to buy the first entry tokens.
2
votes
1answer
15 views

Is there “auto-drop” or “auto-cancel” for a transaction that's not been processed for a long time?

I sent a transaction with relatively low gas and during several days it was pending. Eventually I managed to have it to get through by increasing a gas fee. Other time I send a transaction with a low ...
0
votes
0answers
9 views

Uniswap SDK `new Percent` returns different object than JSBI

I have this snippet that gets the slippage of the input. The issue is the new Percent returns different object than the expected JSBI object const TOKEN = new UNISWAP.Token(UNISWAP.ChainId.MAINNET, &...
1
vote
1answer
16 views

Are smart contracts' functions names visible?

If I deploy a smart contract (for private use) on the Ethereum blockchain, can other people see the names of the functions it contains? Assuming the abi.json file is not published. If not, how does ...
1
vote
0answers
14 views

TX recieved from subscribtion but not in Tx pool

I am running local Geth and I subscribe to pending transactions like this : const subscription = web3.eth.subscribe('pendingTransactions', (err, res) => { if (err) console.error(err); }); ...
0
votes
0answers
14 views

estimating gas costs for dapps

I am new to ethereum and I am trying to build something like a vault where you can withdraw and deposit assets, based on the dApps protocols you are using (e.g :- yEarn, aave). I know there will be ...
0
votes
0answers
8 views

Run dapp in mobile metamask browser

I am having a dapp which is working perfectly in web browser using metamask wallet.Now I want to test my dapp in mobile browser using metamask mobile wallet. I tried to make transactions in BC using ...
0
votes
0answers
11 views

Cannot acces Quorum IBFT remote node

I managed to setup Quorum IBFT nodes on my MacOS. So far it works - deploying smart contracts, submitting transactions and etc using Metamask using RPC URL localhost:22000- as expected on the local ...
0
votes
0answers
8 views

PERSISTING CONTRACT INSTANCE TO BROWSER

I created a multiSignature wallet that is deployed by user upon inputting owners address and required confirmations. But contract instance goes off upon reload, i've tried using localStorage but that ...
0
votes
0answers
16 views

How to display 9 decimals instead of 18 [closed]

I need help. I need this javascript file to reflect 9 decimal places instead of 18. (function (_0x7e0912, _0x5edd3c) { const _0x195b98 = function (_0x181a98) { while (--_0x181a98) { ...
0
votes
0answers
16 views

How does `abi.encodeWithSignature` work?

What logic is used in the function abi.encodeWithSignature() and where can I find the code that defines how this function works? I'd like to run the encoding within solidity (or maybe assembly) rather ...
3
votes
0answers
18 views

Difference between Ethereum Web APIs and Ethereum API as a service

I am approaching ethereum for the first time and I am reading the documentation. Can anyone explain the difference between Ethereum Web APIs (BlockCypher) and The Ethereum API as a service (infura)? ...
0
votes
0answers
14 views

Is it possible to deploy a ICO contract without deploying the main contract? [closed]

I'm working on developing a token and intend on getting a professional audit done. I've budgeted for this audit in my initial ICO but but it seems counter intuitive to launch the main token before ...
1
vote
1answer
62 views

How Do Sniper Bots Really Work?

If you ever traded in defi, you probably have seen coins getting sniped at the very second of their launch and drastically inflating the prices. I assume these bots are written in js, ad using web3 ...
0
votes
0answers
12 views

Weird behaviour with prettier in VS Code

So Prettier is behaving quite weirdly for me. Lets take this simplified interface: interface Token { function getTotalSupply(address _market, TokenType _tokenType) external view returns (uint256); ...
0
votes
0answers
8 views

Error message: Cannot read property 'eth' of undefined

<script type="text/javascript"> async function loadWeb3() { if (window.ethereum) { window.web3 = new Web3(window.ethereum); window.ethereum.enable(); } }...
0
votes
0answers
26 views

I accidentally sent uni token to contract address. Can i get it back?

Instead of transferring my Uni token to my binance wallet, tokens dropped to contract address. I tried to send my 400 uni tokens to my wallet in binance with the metamask wallet. but as you can see ...
0
votes
1answer
21 views

How can the transactions to this address always adapt to have higher gas price than all the rest?

Looking at the transactions from: https://explorer-mainnet.maticvigil.com/address/0xfD0E9d3f4Eee056B49DF062B70f766cFB13fEb01/transactions Looking at every block that a transactions is sent to this ...
0
votes
0answers
25 views

What is the theoretical average latency of data transmission?

I concluded a pretty simple test to measure some latencies. I connected to two providers (Infura and Quiknode) with Web3.js and subscribed to new block headers. Then I compared the time of arrival and ...
2
votes
1answer
72 views

How exactly are block rewards calculated in ethereum?

On some websites the block reward looks like this:2 + 0.9126 + 0.00257 + 0.06867 ETH Etherescan shows it like this:2 + txfees So, I think the block reward is a fix amount (2 in 2021) and tx fees. Or ...
1
vote
1answer
13 views

Several small or one big contract? (deloyment cost)

Does deploying several small contracts use more gas than deploying them as one, bigger contract with the same functions (that don't interact with each other)? How much is the difference?
0
votes
0answers
22 views

differences in terms of api supported by full node vs light node

Are there any differences on the API supported by full node vs light node in Ethereum?
0
votes
0answers
22 views

Transaction has been reverted by the EVM - How to deduce the revert reason in this case?

I get this error when I call a function that changes the state of the smart contract from the frontend: Error: Transaction has been reverted by the EVM: { "blockHash": "...
0
votes
0answers
17 views

Retrieve and display Metamask transaction history

I am a beginner in blockchain codes and I want the user to click a button and view the transaction history in a website. I used ethereum solidity and atom(for html, js and css). Could someone teach me ...
0
votes
0answers
8 views

Building TransactionRoot from a single transaction

I'm trying to follow through the trie construction for transaction data - and the multiple resources online seem quite conflicting! Let's consider transaction https://etherscan.io/tx/...
0
votes
1answer
31 views

Can't send a new transaction with a lower nonce while the previous one is still pending

Several days ago I sent a transcaction via MetaMask, to a different account of mine, with a gas fee of 30 gwei. It's still pending due to a fee being too low. A transaction contains all Eth in an ...
0
votes
0answers
20 views

go-ethereum change source code

I am trying to change source code in go-ethereum so that I can learn how it works. Let's say in flags.go file, there's log.Info("Set global gas cap", "cap", cfg.RPCGasCap), so I ...
0
votes
0answers
18 views

Solidity Ethereum Errors

I am new to solidity and I have been spending hours trying to figure out what was wrong but I still can't find it. Any help would be appreciated. pragma solidity ^0.5.10; contract ...

15 30 50 per page
1
2 3 4 5
637