JavaScript API for checking if user send tip

I as a publisher want to have the possibility to offer better experiences to a user who sends tips. Therefore an API which will work via JavaScript in my web site or app, which notifies me via an event whenever a user visits my web site who provided a tip would be necessary.

Dear Brave makers, I would highly appreciate this feature and I guess it will come in handy for other publishers too. Can you take this into consideration please?

I currently detect Coil monetization using the API they propose, document.monetization. Would love to see this used by Brave as well.