Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

1 vote

Is it possible to recover non-reserve tokens accidentally sent to a Uniswap V2 Pair contract?

My first question is, could these non-reserve tokens possibly be retrieved with an external contract? No. Uniswap V2 pair contracts do not have ownership or recovery mechanism for random tokens.
Mikko Ohtamaa's user avatar
0 votes

How to explore all transactions for a given account?

I know this post is very old, but I'd like to complement that you can use binary search and look for the address transaction count to find all the transactions with complexity m log2(n), where m is ...
Alexandre Coelho's user avatar
0 votes

Am i scammed? Bought this token named CLASK

When the ERC20 transfer amount exceeds the balance, the transfer operation cannot be completed, and subsequent exchanges cannot be carried out. When receiving a failure message through Pancake swap ...
Taylor Julia's user avatar
1 vote
Accepted

web3.js Keccak256 giving different answer

If you would like to generate the same hash as the one that you're getting from the online tool, then here's the code for that: const { Web3 } = require('web3'); const hash1 = "...
SYED ASAD KAZMI's user avatar
1 vote

web3.js Keccak256 giving different answer

A few things: >>> w3.solidity_keccak(['bytes'],[bytes.fromhex(hash1+hash2)]) HexBytes('0x87d7fd470f849d4476228290ca1bf8e089e7e1635c5c57872eb1e3c65746be71') Encode bytes, from hex. To get the ...
Maka's user avatar
  • 1,130
0 votes

How to wait until transaction is confirmed web3.js?

You can also do it like this, by specifying number of block confirmations you'd like to wait for before proceeding. Note: You'll have to first instantiate account and target contract with web3. (https:...
Fićo's user avatar
  • 11
2 votes
Accepted

Is there a way to make the user pay "aggressive" gas fees automatically instead of them choosing that in MetaMask?

You can provide a button to add/switch network in your dApp and utilise the wallet_addEthereumChain and wallet_switchEthereumChain RPC methods to prompt the user to add a specific, pre-configured ...
SYED ASAD KAZMI's user avatar
0 votes

How transaction fee is calculated in case of L2?

https://l2fees.info/ Programmatically I haven't a clue as I've never used an L2, however you can determine what your tx would cost on ETH and then and multiply it by the ratio of L2 average gas to ETH ...
Ashraile's user avatar
  • 125
0 votes

Is there Uniswap V2/V3 function to get initial token supply amount in pool?

Because the data is public, everything is possible. Is there a function? No. You can create a custom per-transaction indexer that walks through all transactions within a block and maintains a state ...
Mikko Ohtamaa's user avatar
0 votes

Does Etherscan store all the events and transaction history?

On the monetisation of etherscan: Annual subscription fees for Etherscan's EaaS service has reportedly grown to $2 million per year. "EtherScan is a very good product, but smart contract ...
Pavel Fedotov's user avatar
0 votes

I cant find my address

It isn't possible to directly know what wallet service or centralize exchange your addresse comes from. Your best bet is to: use etherscan to check your addresses transactions and piece the puzzle ...
Torof's user avatar
  • 780
1 vote

I cant find my address

There is no way to get it from the address, two things you can do: go through all the platforms that you can think of have used and check. or, if you have your mnemonics/private key backup, you can ...
kaushal's user avatar
  • 11

Top 50 recent answers are included