New answers tagged

0 votes

Frequent forks dilemma in old ethereum(when it was only POW)

In practice forks were just 2 o 3 blocks long. Longer forks were quite unusual. There were several attempts to fix this. Increasing block size More dynamic gas price https://eips.ethereum.org/EIPS/...
Ismael's user avatar
  • 30.4k
0 votes

How NFT marketplaces detect NFTs metadata updated?

Generally speaking they have background jobs which scrape the whole blockchain from block #1 to the latest and every newly added one. A mutation of an NTF's metadata would be a transaction in a block. ...
CryptoDude's user avatar
2 votes

Eth 2.0 couple of confusions

I'm here to help with your questions but remember; my answers might only cover some of them, so it's good to DYOR too! Although Eth2.0 uses a single PoS chain and the PoW chain is gone, ...
DevCrypto's user avatar
  • 349
1 vote

Cannot download geth

https://gethstore.blob.core.windows.net/builds/geth-windows-amd64-1.13.12-02eb36af.exe this is the link that is working for me. Should work for you. Regards
Bruno's user avatar
  • 21
0 votes

Using `types.DynamicFeeTx` for `EIP-1559` in golang creates an invalid raw transaction hex

I believe I found the issue. For a DynamicFeeTx rlp should not be used, should use signedTx.MarshalBinary()
user131259's user avatar
1 vote

Cross-posted from Stack-Overflow: Using Google Cloud Key Management Service to sign an Ethereum transaction

To calculate v, you can adapt this logic : Before EIP-155 implementation, the value of v could be 27 or 28. However, since the adoption of EIP-155, the value of v is now determined based on the ...
a9911b's user avatar
  • 31
0 votes

Can not deploy a contract in a private clique " Not enough gas left for transaction"

Try adding these flags to your node: --mine --miner.gasprice 0 --miner.gaslimit 9000000000000000
bea314's user avatar
  • 1
2 votes

Which file in go-ethereum contains Account type?

accounts.go that you mention is for the user account management (think wallet software) on the Geth node like opening a wallet, closing a wallet, signing a transaction and so on. For the actual ...
Ake's user avatar
  • 1,099
0 votes

Airdrop reward in smart contract

no, it's not true. It's likely a scam mechanism utilizing tokens theft or wallet draining. If you'd like to participate in a real airdrop, check the official resources. E.g. Kucoin has put together a ...
Mila A's user avatar
  • 713
0 votes

ethers.Wallet.fromEncryptedWallet is not a function

This works for me. const encryptedJson = fs.readFileSync('./.encryptedKey.json', 'utf8'); let wallet = ethers.Wallet.fromEncryptedJsonSync( encryptedJson, process.env.PRIVATE_KEY_PASSWORD ...
Andrew James Okpainmo's user avatar
1 vote

Does contract logic get executed with a SimulatedBackend?

Simulating a backend should be the main goal of SimulatedBackends so that I would say yes. While I'm not an expert with the SimulatedBackends in geth code, I assume errors and failed transactions are ...
Giuseppe Bertone's user avatar
0 votes

How to mining GETH

Ethereum is now a proof of stake blockchain. You cannot mine as it used to be several years ago. If you wan to run your own node with staking you can start from here https://ethereum.org/staking.
Ismael's user avatar
  • 30.4k
0 votes

Get raw transaction from hash

The node I'm consuming doesn't support eth_getTransactionByHash So similarly to Nikolay answer, this is how I did it using ethers.js (and TypeScript) instead of web3.py /** * Serializes a transaction ...
Andre Miras's user avatar
0 votes

Geth transactions not broadcast and stuck in pending state

It is my experience - see [1] - that the node discovery is by default disabled on a private network (if the bootnode runs with the --nodiscover flag). The behavior is not documented but it seems that ...
Darth Thanatus's user avatar
0 votes

How to discover enode addresses on local network (in private test network)

You can use the bootnode tool (comes with geth) to generate the enode address for any particular node on your network. Then you can specify the list of such nodes as, the trusted nodes or static nodes ...
Darth Thanatus's user avatar
0 votes

Questions about calling ApplyTransaction(go-ethereum)

The EVM version is determined by: blocks specified in the genesis.json conditions specified in the code @ params\config.go The latest version of geth has a function func (c *ChainConfig) IsShanghai(...
Darth Thanatus's user avatar
0 votes

invalid decimal value (argument="value", value="", code=INVALID_ARGUMENT, version=bignumber/5.7.0)

use toString function inside ethers.utils.parseEther(price) like this ethers.utils.parseEther(price.toString()) it will work.
Rahul Pithadia's user avatar
2 votes

How to correctly pack Log data in Go

OK I think I've figured it out. The Pack/Unpack methods on the Arguments type are asymmetric: Pack will pack all arguments whereas Unpack will filter out indexed arguments first. So the correct way to ...
Ryan Collingham's user avatar

Top 50 recent answers are included