The ERC721/1155 method tokenURI
is a public variable and has a getter for retrieving the data itself (e.g., often returns the ipfs://Qm...
CID). Let's assume the tokenURI
method itself isn't emitting some sort of event when it's called since the only events that are part of the specification are Transfer
, Approval
, and ApprovalForAll
. If it did emit an event, then one could simply parse logs for when this method is called.
So, is it possible to know how often tokenURI
is called across Ethereum as a whole, or at a minimum, for a single ERC721/1155 contract? With centralized services like Infura or Etherscan, they likely have that type of data in-house, but it's not publicly accessible -- e.g., how many times tokenURI
is called via API (or through the UI) across everyone that uses their respective services.
The general goal is to understand Ethereum's most used ERC721/1155 contract methods while highlighting the frequency of tokenURI
reads. I wasn't able to find this exact type of information on Dune.xyz nor The Graph, so I'm curious if I'm just unaware of how straightforward this is...or it's just not possible due to no events being logged.