Open taha-abbasi opened 1 year ago
Okay, so it turns out this is a bit more involved. Unless the contract broadcasts the burned amount, we need to query transfer events and look for transfers to the burn address and sum them.
This can't be done every time you hit the endpoint, so we'll need to store historical data and then update it periodically with new events.
Will come back to this.
Create an endpoint to retrieve the number of tokens burned across networks and the total sum of tokens burned.