3 votes
Accepted

New contract deployment pattern (0x60c06040)?

I've been monitoring new contract deployments simply by looking for leading 0x60806040 (truncated keccak signature) in a transaction's data field (example). This is not a signature, but the memory ...
user avatar
  • 5,399
2 votes

Can I execute another users transaction if I have their typedData and signature from the signedTypeData?

Signed transaction and signed typed data are two different things. They solve two different problems for two different reasons. You can sign a transaction without actually sending it, and that object ...
user avatar
  • 51.3k
2 votes

How to get raw binary data from ethereum blockchain?

Run the following commands (with Geth 1.10.18-stable): rm -fR /tmp/foo; geth --syncmode full --datadir /tmp/foo ... ... Imported new chain segment blocks=2 Press Ctrl-C when there are ...
user avatar
  • 21
1 vote

How long before transaction is removed from the Mempool

Your valid signed tx expires - it's removed/purged from the memory pool - only if it becomes invalid. To become invalid, another tx with the same nonce should be mined, or the account should not have ...
user avatar
1 vote

How to simulate a transaction before sending it

You can simply fork mainnet locally. Modern tooling allows you to do this easily, check for example https://hardhat.org/hardhat-network/guides/mainnet-forking . After you have forked it, you can do ...
user avatar
1 vote

What is the ethereum transaction data structure?

As of London fork, a new EIP-2718 transaction is introduced with TransactionType 2, as described in ethereum/EIPs/eip-1559. The new payload structure - rlp([chain_id, nonce, max_priority_fee_per_gas, ...
user avatar
  • 2,435
1 vote
Accepted

contract write function has no input data(0x)

There are a receive and fallback methods check this for more information about them and how to use them. Those are responsable for two scenarios: A contract received ether and no data. A contract ...
user avatar
  • 2,466
1 vote

ETH address with 35 leading zeros transacting?

The example you provided doesn't show an address with 35 leading zeros sending a transaction, but sending and receiving ERC20 tokens. Ad 1: You're right in the first part, but ERC20 transfers are not ...
user avatar
  • 665
1 vote
Accepted

Who pays for the gas used when reading from storage or calling pure / view functions?

View functions only use gas when they are called by non-view functions inside of the contract. View functions don't consume gas because you are only making a call to your Node, so you're not asking ...
user avatar
1 vote

how to fail a ether transaction on blockchain (with insufficient balance)

Not sure if it is similar to what you want to do but you can either write a script to transfer ether without Metamask OR write a smart contract that does not accept ether and then try to send ether to ...
user avatar
  • 2,466
1 vote

A few queries on Transactions from solidity documentation

If you try to send funds to a null address, Ethereum does not send it to burn address or a null address, instead it mints a new smart contract and send there. In your first question, you are using a ...
user avatar
1 vote

How are the Ethereum mempool transactions stored and routed?

Every node has a mempool present in it. mempool has default size of 300 MB and every node is independent of including a transaction to its mempool. In your second question, It is not a problem if any ...
user avatar
1 vote
Accepted

What are these 2 transactions with the same hash and different values?

Looking at the transaction in your example on etherscan I see this transaction makes multiple transfers of erc20 tokens to various address. It seems that the etherscan endpoint you are querying ...
user avatar
1 vote

Please help me find what this function does? Is there is a way around it

Stay away from this kind of contract. Actually, with that function in place, the contract owners can change the balances of the tokens as they prefer. Moreover, the contract is bugged or tries to hide ...
user avatar

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