Waves icon indicating copy to clipboard operation
Waves copied to clipboard

Enhance stateChangesById for sponsored transactions

Open deemru opened this issue 6 years ago • 3 comments

Аbstract Currently there is no trivial way to get how much WAVES sponsor pays for his sponsored asset in fees in transactions.

Motivation and Purposes It hard to maintain the state of sponsorships database, lets use stateChangesById in the way you did for invoke script transactions.

Specification Enhance GET /debug/stateChanges/info/{id} where sponsored asset is used for a fee to get stateChanges as how much WAVES was really paid in exchange for sponsored asset.

deemru avatar Oct 04 '19 21:10 deemru

Hi Dmitry! Ability to give such information is connected to storing additional data in the nodes DB. Which is not needed in most cases. Maybe we implement it later with some optional node extension.

pivoo19 avatar Nov 15 '19 14:11 pivoo19

We already have:

waves.db.store-transactions-by-address = true
waves.db.store-invoke-script-results = true

Sponsored transactions for now are ok, but when you will implement WEP 2 it would be necessary to have this option.

deemru avatar May 28 '20 14:05 deemru

We don't want to implement it in the Node, maybe it should be available in data-service, now thinking about it

pivoo19 avatar Jun 02 '20 11:06 pivoo19