Questions tagged [logs]
Questions dealing with the contracts or clients logs. The tag "events" may be more appropriate, see https://ethereum.stackexchange.com/questions/tagged/events
68
questions with no upvoted or accepted answers
5
votes
0
answers
169
views
What are best practices for monitoring the OpenEthereum (Parity) logging?
Monitoring of the logging output of the Ethereum clients is essential for stable blockchain operation.
Do you have recommendations, experiences and/or lessons learned
concerning the logging of ...
4
votes
0
answers
847
views
geth throwing header invalid error all the time
lately my ethereum node is repeatedly throwing this error:
E0811 16:44:00.646126 core/blockchain.go:1128] uncle[0](30508438) header invalid: nonce for #2004585 [...
3
votes
1
answer
896
views
Get logs for a transaction without actually sending the transaction
I'm trying to simulate a transaction without actually sending the transaction. The trace_call method (on Alchemy) returns 3 types of traces - vmTrace, trace, stateDiff. The trace object returns all ...
3
votes
0
answers
1k
views
How to use logx in Solidity?
Aim: To log data from a smart contract.
Following function is written in accordance with low level interface to Logs in ethereum. However, due to lack of documentation, and being new in Solidity, I ...
3
votes
0
answers
298
views
How to parse through the logsBloom of a block or transaction using solidity
Currently trying to figure out how to parse through the logsBloom portion of block and transaction headers using solidity. I've researched the topic so far and have come to the understanding that RLP ...
3
votes
1
answer
1k
views
How to access non-indexed event arguments from Go types.Log?
The Go bindings have a type called Log that has the following fields
type Log struct {
// Consensus fields:
// address of the contract that generated the event
Address common.Address `...
3
votes
0
answers
822
views
ERC20 Transfer Event error or intended?
I'm trying to get an Event "Transfer" for the ERC20 Token with web3 function getTransactionReceipt
event Transfer(address indexed _from, address indexed _to, uint256 _value)
You can see the term ...
2
votes
0
answers
31
views
Where is EVM state and transaction journal stored?
The question of where and how special data structures are stored (and appear!) on the node: the state of the EVM (where the current values of all variables of all smart contracts are stored) and the ...
2
votes
1
answer
99
views
Foundry Logging no longer working for contracts in lib folder?
My fuzz tests are calling Smart Contracts in my lib/ folder.
In these tests, I'm trying to log variables, but nothing is logged.
Yes, I'm using -vv.
I even increased verbosity (all the way up to -...
2
votes
0
answers
312
views
console.log results in Anvil output
I am using the library forge-std/console.sol in a contract for debugging purposes and execute the corresponding functions on a local Anvil network. I use Cast to send the transaction to the network.
...
2
votes
0
answers
963
views
How to display formatted transaction information in Remix IDE from web3.eth.getTransactionReceipt()?
tl,dr: Remix shows a formatted transaction summary for transactions that are initiated within the Remix IDE. Is it possible to display the same output for an arbitrary transaction hash?
Sorry if this ...
2
votes
0
answers
883
views
Web3 Ethereum log subscriptions - removed field?
I am trying to subscribe to Ethereum events (via Infura) but I'm a bit confused.
I am following this documentation: https://web3js.readthedocs.io/en/v1.2.0/web3-eth-subscribe.html#subscribe-logs
...
2
votes
0
answers
46
views
Logs of Token couldn't be received
I am using Ethereum Wallet Version 0.8.9 on Ubuntu 16.04. I added Golem token to Wallet about week ago and now I get following error messages on logs:
[ERROR] (ui: browser) - Logs of Token Golem ...
1
vote
1
answer
251
views
How to fetch events emitted in a deployment transaction using ethers JS?
The newest Transparent Proxy from Openzeppelin deploys the admin contract by itself and emits an event from where we can find the admin contract's address.
This event is emitted during the deployment ...
1
vote
0
answers
54
views
Transaction involving contract and ETH
I have a problem in Web3. I'm trying to obtain data from an ETH transaction but it involves a contract (Coinbase 10). From what I understand of the transaction, it looks a lot like token transactions (...
1
vote
1
answer
288
views
Using web3.py to filter previous transactions by swap, returns empty array
I am using the web3 python package to filter transactions using the transfer function. The issue is no matter what I try to do, w3.filter.get_all_entries() returns an empty array. Any ideas as to why ...
1
vote
0
answers
28
views
What is wrong with this function that is supposed to listen to an event from a smart contract?
I am essentially just trying to create a simple API that listens to this one event on a smart contract I created but for some reason the function doesn't output anything. I am pretty sure it has ...
1
vote
0
answers
40
views
How to identify where coin/token value is changed
I'd like to build an algorithm that analyzes value creation, transfer and destruction on a blockchain (such as new ETH minted, ETH gas burned, ERC-20 tokens transferred, etc.).
Assuming I have a ...
1
vote
1
answer
424
views
web3py get_logs() can't find my log
I'm trying to retrieve Uniswap logs via web3py. Why doesn't my get_logs query match the last log of txn 0xb576ab12c999e20737f478044cd5b0e22c2b324c4125f88404de656f16cd8da4? Same result for Quicknode ...
1
vote
1
answer
56
views
Is it possible to determine how many logs a block contains from the newHeader logsBloom?
given this block header example:
{
parentHash: '0x3fb321ef847c655e0a3bac64e6bac1a2d3d479c602dab0523e48dc94533e80c8',
sha3Uncles: '0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347'...
1
vote
0
answers
623
views
How to know that logs for a block are available
Following code snippet:
const latestBlock = await provider.getBlockNumber()
const logs = await provider.getLogs({
fromBlock: latestBlock,
toBlock: latestBlock,
})
if (logs....
1
vote
0
answers
77
views
How is Etherscan Token Tracker Feature Built
How is the Etherscan ERC-20 Token Address page built (different from address Page)?
My understanding is that ERC-20 only logs (emits) the events 'Transfer' and 'Aprove', so we are limited to these ...
1
vote
0
answers
285
views
BSC chunking log files
I have a BSC full node running and I have bsc logs being created on /bsc/logs/bsc.log.
What's bothering me is that it's chunking the log files in too small pieces of around 350K each, see output below ...
1
vote
0
answers
218
views
What comes first: pendingTransactions, logs, newBlockHeaders?
I am trying to understand the order in which the data propagates.
My understanding at the moment is:
Assuming someone just made sendTransaction call, then...
First we would receive ...
1
vote
1
answer
264
views
mempool transactions' logs
Is it possible to see the logs of the mempool transactions somehow? What can I do in order to achieve the goal? FYI eth_getLogs does not return logs of the mempool transactions.
1
vote
0
answers
262
views
decode a transaction receipt which does not have an event log
Is there a way to decode a transaction receipt which does not have an event log? In the case of an event log we have topics which we can decode, but what about the case when an event isn't triggered ...
1
vote
1
answer
294
views
Is it possible to get duplicates of the log events on Ethereum when we have a fork of the chain?
Let's suppose we have 2 chains of ethereum blockchain. When I fetching contract's log events from x block to getBlockNumber().
Will i get two or one the same log events from each block? Or ...
1
vote
0
answers
193
views
Handling EOF when subscribing to Event Logs
I'm trying to subscribe to events logs to handle Transfer(address,address,uint64) events. I've followed this example.
https://github.com/miguelmota/ethereum-development-with-go-book/blob/master/en/...
1
vote
1
answer
674
views
How to handle events using drizzle?
strange that after much searching, i havent found even one piece of info out there which clearly elaborates on how the events are manipulated in drizzle. From what i understand, the event names (and ...
1
vote
0
answers
51
views
Error deploying the subgraph: Internal error: Could not pick index node
I'm playing with "The Graph" example counter project. If all I do is change the contract address in the mapping.ts to the same Counter contract on Rinkeby, then try to deploy, I get this error:
...
1
vote
0
answers
124
views
Read args object from particular block transaction in truffle console.
Hi I have question on how to read args from specific block transaction that are passed when event was called. I have triggered an event, my block is created and i got transaction tx. In the ' Logs: ' ...
1
vote
0
answers
186
views
Why do are the 'type' & 'removed' fields in receipt logs different between Ganache and Geth?
When I run a particular transaction and log the receipt, I am getting different results depending on if my EVM is Geth or Ganache. Specifically, Ganache returns receipt.logs[0].type: 'mined' while in ...
1
vote
0
answers
254
views
Filtering blocks on basis of transaction logs in web3j
I want to filter blocks on the basis of a log present inside transactions. How can I do that?
I don't have any contract address and want to filter all the blocks generated by all the contracts.
...
1
vote
0
answers
749
views
Can you explain some fields in geth logs "Imported new state entries"?
Here is a part of logs during geth syncing:
INFO [04-13|05:01:20] Imported new state entries count=1152 elapsed=6.026ms processed=21622419 pending=7126 retry=0 duplicate=28494 ...
1
vote
0
answers
75
views
Get root data of smart contract
I am deploying a Smart contract with set of fields.
Updating some fields using events.Till here is fine.
Now here i need to fetch the root data(data while deploying the contract)
Please suggest.
...
0
votes
1
answer
13
views
What search filter value use to find hexadecimal indexed events logs?
I am trying to retrieve logs per topic, but I am having trouble retrieving the values.
I have the following event defined in the SC:
event Log(
uint256 indexed dHash,
uint256 timestamp
);
...
0
votes
0
answers
22
views
Smart Contract version update doubts
It is possible to update smart contracts using unstructured storage. But I have some doubts.
Would it keep the same address as the first SC?
Would it keep the persistence of the log information, or ...
0
votes
0
answers
11
views
eth_getBlockByNumber loop in truffle genache
When writing contracts and testing them with truffle develop, I like to have two terminals:
truffle develop --log
truffle develop
One is for logs so I see what is happening and in another one I test. ...
0
votes
1
answer
24
views
Displaying terminal logs while calling a function from a specific wallet in Forge test?
Context
As part of a test I would like to assert the funds from wallet investorWallet are reduced with the investmentAmount after an investment is made (by calling the receiveInvestment function in ...
0
votes
1
answer
14
views
Are errors emitted as logs on the blockchain?
Say if an error is caused due to a revert statement will it be emitted as an event so front end application will be aware or not?
0
votes
1
answer
148
views
Solidity Event String parameter decoding
The value of aggregatorId in the event emitted by the below tx is not equal to value “oneInchV5FeeDynamic” in the tx? Also, I can’t decode the value emitted in the event “...
0
votes
1
answer
15
views
Why we use 'log' in Vyper?
What is the usage of the log? I want to get some examples of why 'log' is used in vyper
0
votes
1
answer
53
views
Could not find corresponding event log from 0x aggregator contract
Looking at the event log from the 0x Protocol aggregator contract ("0xdef1c0ded9bec7f1a1670819833240f027b25eff"), I could not find corresponding event to the following log topics0 "...
0
votes
1
answer
245
views
How to get events pushed instead of polling in Ethereum?
I am trying to see how I can subscribe to an events on the Ethereum blockchain and I can only see polling mechanism and no push mechansim
I am look at the documentation for the JSON RPC endpoints here ...
0
votes
1
answer
143
views
How to make sense of the Etherscan logs API?
I'm trying to practice making api calls to etherscan using python, and I built a function that calls the Get Event Logs endpoint for the staked aave address: 0x4da27a545c0c5B758a6BA100e3a049001de870f5....
0
votes
1
answer
57
views
How to show transaction logs message on frontend to user as alert message?
I want to show condition in require as a message on frontend to user as alert message like 'wait for 5 minutes or wait while transaction is being processed'. In console.log, I can see this message but ...
0
votes
1
answer
346
views
How to log / trace method calls in Solidity
Is there a way to know which methods were called/triggered during a run?
Sometimes a chain of methods are called within the smart contract (implicitly or explicitly) and it would be beneficial to know ...
0
votes
1
answer
378
views
eth_subscribe for logs on alchemy
I am trying to subscribe to log events on ETH mainnet using alchemy provider as explained here
The subscription request returns successful response but I am not receiving any notifications at all
Here ...
0
votes
2
answers
344
views
newHeads: does logsBloom contain all addresses?
Looking at newHeads and the docs say:
Fires a notification each time a new header is appended to the chain, including chain reorganizations. Users can use the bloom filter to determine if the block ...
0
votes
0
answers
773
views
How to manually interpret balance change after custom Events using web3.py
Context
I am trying to build my own Ethereum explorer. I know this already exists on Etherscan out-of-the-box but the features that I want are either rate-limited or not even provided via its API.
To ...