New answers tagged

0 votes

TX.wait() never resolves even though transaction has already been completed

I have the same problem. Have you found a solution for this yet?
Cengiz Dincoglu's user avatar
0 votes

How to Verify smart Contracts Using Web3.js and Solc?

If you have found the solution, I'll be glad to hear you solution! I'm in the same situation. My contract is compiled with solc and deploy with web3js.
wiowa tech's user avatar
2 votes

API to gather list of top token holders

Try Bitquery's Token holder API Open their Graphql IDE And run the following API query MyQuery { EVM(dataset: combined, network: eth) { BalanceUpdates( orderBy: {descendingByField: "...
Gaurav Agrawal's user avatar
0 votes
Accepted

my transaction shows as reverted but i didn't recieved my money yet

For a transaction to send value or make any state changes, it must succeed. If part of a transaction fails, then the entire transaction reverts and all of the value sent is returned to the sender, ...
Rohan Nero's user avatar
  • 1,094
1 vote

ZoKrates witness computation

I'm not familiar with Zokrates, so let provide a partially generic answer. I assume this is related to proof generation. When generating proofs, depending on the used ZK proving system, your program (...
Lauri Peltonen's user avatar
0 votes

Creating a local variable in an if statement?

Yes. It's like other languages it won't exist in out of the scope. solc compiler give you Undeclared identifier error. for example if (everything) { uint testVariable = 1; } require(testVariable == ...
Mahdi Karami's user avatar
0 votes

Why is Transaction Value showing 0 ETH on Etherscan?

This is not a transfer transaction. Rather, the transaction is the execution of a function of the smart contract. After executing this function of the smart contract, a number of internal transfer ...
Benyamin Karimi's user avatar
1 vote
Accepted

How do I hide or mask the sending address when sending tokens or eth

In order to prevent funds from being easily tracked on the blockchain, you could use a Mixer. Mixers allow users to deposit an amount of tokens, and then withdraw the tokens from another address that ...
Rohan Nero's user avatar
  • 1,094
0 votes

Why is Transaction Value showing 0 ETH on Etherscan?

Since you are using Coinbase, the initial transaction you made didn't really contain the ETH, but instead, it made a contract call that triggered the actual transaction to send the ETH from Coinbase's ...
Rohan Nero's user avatar
  • 1,094
3 votes

Where in the code of this unstake function is ETH actually transferred?

The BridgeRouterFacet contract's unstakeETH() function: function unstakeEth(address bridge, uint88 zethAmount) external nonReentrant onlyValidBridge(bridge) { if (...
Rohan Nero's user avatar
  • 1,094
0 votes

ERROR: Stack too deep when compiling inline assembly: Variable headStart is 1 slot(s) too deep inside the stack

this article may help. https://medium.com/@sandnc.eth/uniswap-v3-stack-too-deep-error-message-d268dc8b57db NonfungiblePositionManager needs an other external function position1, which returns less ...
laps's user avatar
  • 1
0 votes

Uniswap V3 Pool_Init_Hash calculations

To compute the address of a UniswapV3Pool you only need 5 values namely the UniswapV3Factory address, token0, token1, fee and the UniswapV3Pool InitCode Hash. You can use the computePoolAddress ...
MShakeG's user avatar
  • 1,099
0 votes

Can a function call itself?

This concept is called method overriding polymorphism in OOP programming, it is achieved by making more than one function with the same name but with different parameters. It's used to change the ...
Al-Qa'qa''s user avatar
  • 226
0 votes

What is 'value' in this Uniswap transaction log on Etherscan?

It is the value (in terms of ether) of the amount of tokens or ether that was transferred from the wallet during the transaction. The gas is separately stated below. Also I think that banana gun ...
auditor_chick's user avatar
0 votes

Can a function call itself?

You can create a function that calls itself, the issue is ensuring that you don't get stuck in an endless loop that drains all your gas. Take these contracts as an example: Assume we will always pass ...
Rohan Nero's user avatar
  • 1,094
1 vote

Get Balance History of address

Easier way would be to use Ethereum Balance History API (Bitquery). You can just run the prebuilt query on the IDE with the free plan. Check this example from the docs.
Divyasshree's user avatar
1 vote

Can frontrunners modify transaction parameters

Searchers don't change your transactions values, they take advantage of your transactions values. The function is onlyOwner, so a front runner not being owner wouldn't be able to front run with a ...
Maka's user avatar
  • 603
0 votes

Can frontrunners modify transaction parameters

No, Frontrunner can only mine the transaction faster. To modify the parameters, a 51% attack is required.
ashish250990's user avatar
1 vote
Accepted

Get multiple ETH transactions

So to use eth_getBlockReceipts with web3.js, you need to use the extend method that allows you to basically 'extend' the class and use any RPC method. Note that it only works in web3.js V1. It was ...
Dave Dev Advocate Chainstack's user avatar
0 votes

ParseEther is getting undefined

you should add below import statement this should work const { parseEther } = require("ethers/lib/utils"); const sendValue = parseEther("1")
abubakr jimoh's user avatar
0 votes

Get multiple ETH transactions

For free API's there's a limit of 1000 blocks . You can use alchemy's API if you think getblock isnt working. If your scope of work is only limited to finding out whether the to address belongs to you ...
Jaskaran Singh's user avatar

Top 50 recent answers are included