If you are using web3, you can encode it with:
You can then decode the output with the following:
Encoding is based on the Contract ABI Specification. It is hard to get through, but these docs have all the answers to ...
From the details that you've posted, I believe that the address parameter in your event is indexed. Therefore, it is not going to be provided in the data string, but in the topics array at the 2nd entry (i.e., topics).
If you want the actual address, then you can do:
const address = "0x" + topics.slice(26); // get rid of 24 leading zeros
Since the ...