New answers tagged

0 votes

Can I expose geth's rpc ONLY to Metamask connections?

When you set rpcaddr set to 0.0.0.0, it means everyone can access it if they know your node's IP address. You have these options: If MetaMask and your node are on the same machine, just set the ...
user avatar
0 votes

TypeError: No matching declaration found after argument-dependent lookup

Looks like you may have had some formatting issues when posting your question. Regardless of that the Error you're seeing is because the first argument in your call to require needs to evaluate to a ...
user avatar
  • 101
0 votes

network error trying to deploy js file using ganache on windows 10 wsl (ubuntu)

Activate your Ganache, and navigate to "contract"...scroll-down and click-on "link truffle projects , accept the allow your system to have access to Ganache on the pop-up and afterward ...
user avatar
0 votes

What address(0) stands for?

Typically, address(0) indicates an unknown/anonymous address where you would send to burn the tokens.
user avatar
0 votes

E/Go: fatal error: thread exhaustion

I see three different possibilities here: that the most likely cause is that you are not running a light client and therefore are not able to sync with the main net. Try running a light client ...
user avatar
0 votes

Max addresses that can be cleared from an array before breaking gas

Depending on how the addresses are included within the smart contract, you could call delete on them. If they are included within an array, that could be significantly cheaper.
user avatar
0 votes

Error "Snapshot extension registration failed" when connecting nodes

I meet this error on the first node (bootnode) too. It seems to result from the private network's bootnode trying to connecting to the nodes in its default bootnode list. Nodes can be correctly ...
user avatar
  • 1
0 votes

how to call a rest api into smart caontract

Blockchains can't interact with the outside world, as they are intentionally isolated and deterministic by nature, which means they cannot make API calls generate random numbers, or for any reason ...
user avatar
0 votes

How to attach ethereum mainnet using geth attach?

Thanks! I have tested it successful! The command is : geth --datadir "d:\Project\lightnode" --syncmode "light" --allow-insecure-unlock --http --http.addr 0.0.0.0 console Then I ...
user avatar
  • 435
0 votes

Latest remix version is not detecting metamask

Try to clear cookies of your browser and then start remix. before that backup your all files of remix. Maybe this could help
user avatar
0 votes
Accepted

How to obtain full token address from uniswap/PCS router transactions (*types.Transaction)

Stupidly simple answer actually, the abi unpack method is just looking in the wrong position by 4 bytes to the left, addresses can be obtained by calling the method on txn.Data()[4:] or by manually ...
user avatar
  • 1
0 votes

How to generate Private key, public key and address

Best way to generate 12/24 words of seed phrase or Ethereum private and public address key Use this tool - Seed phrases Generator
user avatar
  • 1
0 votes

Latest remix version is not detecting metamask

this is working on my end right now, but I had similar issues in the past and I was unblocked by using their alpha version : https://remix-alpha.ethereum.org/ . Maybe that can help ;)
user avatar
  • 49
0 votes

Lost my Private key but ı have keystore

I am not completely clear on the initial direction of the question (convert to v3) however I did find this post on what seems to be a very similar issue with geth account import key file issue (from ...
user avatar
  • 1
0 votes

Cannot Compile Golang programs Using the Go-Ethereum package

On closer inspection, the issue is caused by breaking changes to github.com/deckarep/golang-set v2.1.0 module dependency, works fine on previous v1.7.1. To fix, simply download the source code for ...
user avatar
0 votes
Accepted

How gas fee to Mint an NFT are really calculated on Ethereum

This is what appears if your transaction is expected to fail. Metamask simulates each transaction before you can send it in order to estimate the gas it will use. If the transaction would revert (and ...
user avatar
0 votes

What is the number of last ethereum private key?

Ethereum uses de secp256k1 elliptic curve. Defining an elliptic curve requires several parameters one of them is G, a point in the elliptic curve, n the order of G the elliptic curve. They are define ...
user avatar
  • 29.1k
-1 votes

What is the Private Key?

If you compare the private key and public key concept with web2 space, then think of like your Gmail account, your Gmail address is your public key, which you can share with anyone so that anyone can ...
user avatar
2 votes
Accepted

Start node automatically on Windows restart

you could set up the tasks in the Windows Task Scheduler GUI server start Begin the task : At startup (might want to build in a bit of a delay) service goes down Begin the task : On an event, Log: ...
user avatar
  • 194
0 votes

Mınt Gas Fee Problem

There's nothing you can do. It depends how busy the network is and when lots of NFT drops happen at the same time it gas gets expensive. Assuming you're on Ethereum mainnet. Whether your contract ...
user avatar
  • 194
0 votes
Accepted

I can't figure out the reason for this error

On a clique (proof-of-authority) network that error might occur when the sealer nodes are not up. Remember that in a proof-of-authority network the 51% of sealers must be up and running and (of course)...
user avatar
  • 157
0 votes

Get raw transaction from hash

You can do it this way in Python: import web3 from eth_account._utils.legacy_transactions import ( encode_transaction, serializable_unsigned_transaction_from_dict, ) w3 = web3.Web3(web3....
user avatar
1 vote

how to find the creation block_number for a given contract_address using web3.py?

In ethers.js, you just need to be able to get the transaction hash value, you can get the result by the following code const result = await provider.getTransactionReceipt(txHash) The result should be ...
user avatar
0 votes

Get Max Priority Fee (miner tip) from transactions in transaction pool (mempool)

Just a reminder, not every transaction is type-2(EIP 1559) yet. So it might be the reason you do not see any. The EIP 1559 is backward compatible, meaning that old legacy transactions still go through!...
user avatar
  • 915
0 votes

How to decode input field from transaction in Golang?

I share a Parse Transcation Gists. Include decode input data and output data, It may help you.
user avatar
  • 111
2 votes

How to attach ethereum mainnet using geth attach?

You can install GETH ethereum node in your machine and run the geth sync command without specifying testnet. it will automatically sync mainnet data and provide you the RPC URL and you'll connect and ...
user avatar
1 vote

How to attach ethereum mainnet using geth attach?

If your question is if there are any other node providers then yes: Alchemy Quicknode And more
user avatar
2 votes

Is it possible to call contract that has no function?

Yes, you can; send a standard transaction to it. Solidity compiles functions/methods into a custom switch/case pattern applied to the calldata sent to the smart contract with the tx. Following that ...
user avatar
1 vote
Accepted

EVM are stack and memory part of the EVM context

You can find the answer in another question: Does stack persist through external calls? The recipient contract doesn't have access to the caller contract's stack. There are two separate stacks: a ...
user avatar
0 votes

Usage of cloned factory contract pattern for erc721 marketplace contracts

The advantage is that you can be confident that the cloned contracts work to the specifications that you set. Therefore you can delegate to other people to perform the cloning. Or you can automate it. ...
user avatar
0 votes

How to trim a string in solidity?

Here is a function in Solidity that I created to do just this. Typecast your string to bytes, and feed it into this function. function byteSlice(bytes memory _data, uint256 _start, uint256 _end) ...
user avatar
0 votes

“Personal address detected. Import the collectible contract address” error while importing an NFT from Opensea

To resolve the above issue I've searched on internet but didn't able to find anything to resolve this issue. So, I've been to MetaMask support and they helped me out instantly. Here's what the actual ...
user avatar

Top 50 recent answers are included