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

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

why I get <unknown> in my mining log and what is the meaning of all the log items?

My log has in it. I wired my ethminer with Trezor hardware wallet. I can't find anywhere the meaning of all these i / m and <unknown> and Mh -cu0 2.xx all I have no idea and my google search ...
0
votes
1answer
16 views

How to decode log data from bscscan API using PHP?

I'm pulling fight logs from a BSC contract via bscscan API. The data record, which should be a set 6 different values, looks like this: ...
1
vote
0answers
17 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 ...
0
votes
1answer
17 views

Can you filter an indexed event parameters?

Can you filter an indexed event parameters? Does indexing make filtering more efficient or does indexing make filtering possible?
0
votes
1answer
71 views

Indexed events not returning values when decoded

I had asked this question but I omitted some info as I (wrongly) assumed that the omitted info was not part of my problem. When you emit an event like so: event ChildCreated(address indexed creator, ...
0
votes
0answers
29 views

Event not returning indexed parameters when decoded [duplicate]

EDIT: I had omitted some data from my code as I thought it was not the one causing the error turns out I was wrong. Here is the question with the appropriate data and solution. ..... Ignore the text ...
0
votes
0answers
24 views

How to Decode Anonymous MakerDAO LogNote Events using Ethers

I'm trying to decode (anonymous LogNote) transaction logs created by the MakerDAO vat contract (https://etherscan.io/address/0x35D1b3F3D7966A1DFe207aa4514C12a259A0492B#code). // --- Logs --- event ...
0
votes
2answers
26 views

What's the maximum number of logs per transaction?

I am trying to determine what data type to use for indexing transaction logs. At least in the case of transactions per block, there is a hard limit. Is it a fixed number and is there a maximum number?
1
vote
0answers
65 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 ...
0
votes
0answers
16 views

How to print logs such as peer.Log().Debug("") in geth?

I want to check logs such as peer.Log().Debug() in geth.But I haven't find it in my log.txt .It seems that Geth does not log this in log.txt.Only log.logger (), log.dubug ().... are logged in log.txt....
5
votes
1answer
289 views

How do I determine the ABI to use for web3.eth.abi.decodeLog?

This is a follow up from How to identify token transfers looking at a transaction?. I have transaction that results in a transfer of tokens. From PancakeSwap: Router v2 To ...
0
votes
1answer
127 views

Is there a way to listen to log events via websocket with web3py

i am trying to listen to log events via my node's websocket server but i can't seem to find a way to do that using the web3Py lib. the asynchronous implementation of the docs is basically a threaded ...
1
vote
0answers
130 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 ...
5
votes
1answer
163 views

What's the meaning of "dirty" in Geth's INFO logs "Importing new chain segment..."

I am trying to understand the logs I see when I journalctl -fu my Geth service, which I restarted after it was offline for two days. This is less a troubleshooting question and more an extension to ...
0
votes
0answers
25 views

How to get data from earlier blocks in ethereum BC via web3.py?

I am trying to get data from earlier blocks/transactions. I have created events and emitted them. I can see the logs in the Remix IDE. However, I cannot get the logs in web3.py. It only returns empty. ...
0
votes
1answer
867 views

Understanding the Phoenix miner log

I am running a phoenix miner for solo mining in my private network. I want to understand the logs of the miner. Can any one help me to understand the following more in depth especially the shares and ...
4
votes
1answer
719 views

How to understand uniswaps events?

I could not find any explanation about this so I'm reverse engineering it, the 3rd tx is the most interesting, If you look at this transaction https://etherscan.io/tx/...
4
votes
0answers
91 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 ...
2
votes
1answer
27 views

can I trust transactions in blocks with just 1 block confirmation?

In my application, I am using events/logs to capture and display information. So, to decrease the response time, I am returning the result as soon as the block is mined and not waiting for 5-6 block ...
0
votes
1answer
104 views

How to reduce time for block confirmation in the Ethereum blockchain and also time to listen to logs emitted?

I am designing an application in which I am emitting logs through transactions in the Ethereum blockchain. I also created an event listener to listen to the new logs emitted. But I want time from ...
0
votes
0answers
85 views

Programmatically convert log data (hexadecimal) into negative decimal value

I'm having some trouble converting negative numbers in the log data of an Ethereum transaction. In this transaction, log index 192, topic 3 is listed as "...
1
vote
1answer
2k views

myContract.events.MyEvent() vs web3.eth.subscribe('logs', ...);

I'm confused about the difference between myContract.events.MyEvent() and web3.eth.subscribe('logs', ...); Both are subscriptions to events, correct?
0
votes
1answer
66 views

Method's parameters: a way to know a uint256 is a token amount and its number of decimals?

When decoding transaction actions or logs, I never know how to human-read uint256 values when they are token amounts and, if so, how to know how many decimals they are. For the decimals, do I always ...
0
votes
0answers
73 views

How to read all logs from a transaction without having each contract ABI?

From a transaction logs, how do I decode every logs since I don't have all contracts ABI? Do I have to fetch the ABI every time I encounter an unknown contract? How do apps that display all logs deal ...
1
vote
0answers
66 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.
2
votes
1answer
2k views

how to decode log event of my transaction log?

I receive a transaction event in my log of my Ethereum transaction. .on('receipt', function(receipt){ console.log("address: " + receipt.logs[0].address); ...
1
vote
0answers
10 views

Get number of logs in block

Given logs are streamed to a client via the eth_subscribe(“logs”) rpc method with a logIndex, is there a way to tell the number of total logs in a block from its header?
0
votes
1answer
64 views

Recording Event Logs in a DB from a Smart-Contract

I have created a smart-contract and deployed to the Rinkeby Network, it has a client-side application which has been established with React. Now, I would like to observe and audit every transaction or ...
1
vote
0answers
285 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 ...
4
votes
1answer
1k views

ethers.js Why aren't logs filtering? (query returned more than 10000 results)

I'm building an API to scrape events from a contract suite deployed to Rinkeby. Here's an example function with some context: const network = getNetwork(parseInt(`${process.env.CHAIN_ID}`)); const ...
0
votes
1answer
122 views

Why some contract addresses show 0 supply and 0 holders on Etherscan

I have a an old list from December 2019 which showed the holders, supply and transfers in last 24h from Etherscan like here . Howvever while I was revisiting the addresses on Etherscan, there were a ...
1
vote
2answers
464 views

Is Ethereum fast sync feasible to get logs

I want to get the logs of an contract address by filtering the even with transfer Event. I cant use Infura for its restrictions and limits. So i want to sync my own ethereum node for myself. Since my ...
0
votes
1answer
66 views

Is there some possibility to listen MakerDAO's LogNote events?

I wonder is there some possibility to listen MakerDAO's LogNote events, like we able to do with standard events. What I managed to research: I saw that LogNote was listed as an event from contract ...
0
votes
1answer
116 views

Functions that are used for token transfers for ERC20 and ERC721 tokens

Let's suppose there is a contract address A of an erc721 token B. If I want to monitor all of its transfers from A to another address say C then should I only filter the Transfer function or should I ...
0
votes
2answers
456 views

web3js getPastLogs function returns error: query returned more than 10000 results

I have a local ethereum node and I am trying to filter an event for a contract address between a range of blocks. However it throws the following error: node:15689) UnhandledPromiseRejectionWarning: ...
1
vote
1answer
241 views

Infura getFilterLogs api returns empty array

I am trying to filter transfer events using node.js for a contract address between a range of blocks. I am trying to filter the latest 7 transactions which can be shown in etherscan here. My code is ...
0
votes
1answer
277 views

Sending ETH from contract to EOA

OK, I'm baffled guys. maybe it's the amount of gas the function is using up that is causing this not to work. when I call the function: I get the following in response but no movement of Eth from my ...
1
vote
0answers
93 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 ...
0
votes
1answer
125 views

Decoding input paramters throws invalidity error

Using the abi for a smart contract that I got, I was trying to decode the input parameters for a transaction receipt using web3.eth.abi.decodeParameters function. The logs.json file is as below: { &...
1
vote
1answer
199 views

eth_getLogs was only return erc20 tokens

i have used below command to get every logs on the special blocks but its only return erc20 token logs and ethereum transactions was not listed. my geth command: curl --data '{"method":"eth_getLogs",...
0
votes
1answer
307 views

Why eth_getLogs returns empty result for Ethereum account address?

I'm developing an Ethereum platform and need to fetch the events log of a desired address. I found a code like this: curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"topics":...
0
votes
0answers
114 views

How to log an event which emits state of the contract in nethereum?

I am logging a specific event from a specific contract using nethereum. However, my event emits contract state (enum in solidity). My log processor shows 0 events instead of 2. Solidity code snippet:...
0
votes
1answer
49 views

How to retrieve the logs of transactions on one contract and multiple addresses

I have an application which should work as an exchange. Customers have their own Ethereum addresses on my Geth server, and they might receive ERC20 Tokens on them. I need to fetch the incoming ...
1
vote
1answer
491 views

Infura getLogs returns an empty result

I'm writing a crypto based system with PHP on Infura, and now I am coding a script to retrieve logs for a specific address. This is my code: $ch = curl_init($my_server_url); $data = array( '...
2
votes
1answer
121 views

Unique identification of transfers

https://github.com/ethereum/go-ethereum/blob/master/core/types/log.go#L40 // Derived fields. These fields are filled in by the node // but not secured by consensus. ... // index of the log in the ...
2
votes
0answers
255 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 ...
1
vote
1answer
478 views

What data is in 'calldataload'?

I want to parse event logs that are generated by the contract shown below, which assigns different sections of calldataload to the 4 Topics, and the Data section, of the event logs. Topic 0 receives ...
0
votes
1answer
276 views

Smart Contract Transfer Event Log Data & transfer _value [Rust]

I'd like to have a better understanding of events and logs data, more specifically when it comes to interacting with ERC20 tokens smart contracts and their Transfer events. I'm looking for a way to ...
0
votes
2answers
118 views

what is the transferfrom event signature?

I am currently writing a code that list all types of transactions in a given contract . my plan is to just check for all logs whether the topics[0] == an event signature of a function. and now i am ...
1
vote
1answer
340 views

Solidity: Raise events via Assembly using log3

I want to raise events from inside a piece of assembly code. I've extended the answer here with the function AssemblyEvent() which currently causes a runtime error. Working example: pragma ...