3

Your theory is correct. MetaMask sends a static (local) call to the contract. The call is the same as a real transaction, except 1) its state changes are not persisted 2) it doesn't cost any gas, since it doesn't send a transaction to the blockchain 3) is executed against your local node's data only. That way is not 100% accurate, but it's basically the best ...


3

Connecting your wallet doesn't really do much: it doesn't send any transactions. About all it does it gives your wallet's public address to the website and the possibility for the website to request actions from the wallet - actions which you, as a user, need to accept manually. In theory, everything would be smoother and more user friendly if your wallet ...


2

As you may have learned, Metamask cancels a transaction that has not been mined by replacing it with a transaction where you send 0 ETH to yourself. This method works for cancelling any transaction, including NFT minting transactions that have not been confirmed in a block. If you want to replace a transaction yourself by manually setting the nonce of your ...


2

Both of your assumptions are correct. Message signing happens off chain, and is in fact required in order to send a transaction on the chain (through signing a transaction). To put a message on chain, you (or 1inch, ...) needs to actively send a transaction on chain including the signed message. A message signature is essentially just some binary data, so ...


1

Long story short is either you wait until the gas prices are realy low or you send some more ETH to make the transactions possible. Here you can check the gas prices - https://etherscan.io/gastracker On the picture above you can see the Low/Average/High price for the to type of transactions you are trying to do. Currently 1 ETH = 3,760.96$ and your 0....


1

"Connecting" your wallet to a website does two things: It allows the website to know that you have a crypto wallet (implicitly) It gives the website your wallet's public address (explicitly) Once the website has your address, they can use it to read whatever information there is publicly available in the blockchain, for that address. One such ...


1

The CEX can only steal your tokens if you have either approved it to use your tokens or directly transferred your tokens to it. And if you have approved/transferred token A, it can't steal token B. Disconnecting your metamask from the site has little effect, since the "connection" doesn't give any special access to your wallet anyway - it basically ...


1

As far as I can see, I don' see anywhere in your code the syntax where you're actually calling the method. You have the instance of the contract which is myCollectionbut you're not calling the function properly. instead of this: function updateCollection() { myCollection.getNumberObjects (function(errGNO, resGNO) { you can try this: let collection = ...


1

maxPriorityFeePerGas should normally be around 1.5 to 3.0 (2.5 is actually the setting that Web3js and Ethersjs use to account for 'MEV Heavy' blocks). This parameter is often incorrectly configured by metamask and will make the value the same as your maxFeePerGas, hence the crazy pricing. You can use this API if you would like: curl -sL api.txprice.com | jq ...


1

I had same errors and I solved it now by raising the gas limit when sending transaction! I recommend you raise your gas limit and try it again.


1

window.web3 is removed by metamask. now everything can be done with window.ethereum - web3 removal link by metamask Below is the new way of getting accounts. import detectEthereumProvider from '@metamask/detect-provider'; initialize ethereum provider async loadWeb3() { const provider = await detectEthereumProvider() if (provider) { console.log('Ethereum ...


Only top voted, non community-wiki answers of a minimum length are eligible