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 communityI assume, that you want to query this for particular token, not for all tokens.
Approval
events with _spender
equal to x
logged by particular token contract._owner
values from all such events and deduplicate these values. This will give you all addresses that have ever approved anything to x
.x
to remove addresses that do not have allowance for x
anymore.Approval
events with _spander
equal to x
.
Aug 4, 2019 at 22:14