For instance, I'd like to make the following query:
Return all the addresses that have approved spender x on a particular token
It seems that I can only query for a specific (address, spender) pair on Etherscan.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
I assume, that you want to query this for particular token, not for all tokens.
xlogged by particular token contract.
_ownervalues from all such events and deduplicate these values. This will give you all addresses that have ever approved anything to
xto remove addresses that do not have allowance for