I'm trying to get a list of unique addresses that have interacted with a contract. As well as some data included in the events of each transaction. In order to do this, I use the action=getLogs query when using the etherscan API. Everything is returned in hex value it seems, and while I can decode one portion of the data I need, the address will not cooperate.
What it is returning is 0x[0(x24)]address.
What is the purpose of adding in the 24 0's?
Do I use regex to strip the 0's, or is there a more consistent approach, perphaps using web3?
I've attemped using web3.eth.abi.decodeLog, but no matter how many times I adjust, it results in "property not found".