ltonetwork / lto-public-chain

Public blockchain designed for notary type transactions
Apache License 2.0
26 stars 4 forks source link

Unbonding period information #143

Open Zolpho opened 2 years ago

Zolpho commented 2 years ago

Please add the information about the unbonding period in API (/addresses/balance/details/address) Something like:

"unbonding_block_start" : "unbonding_block_end" :

jasny commented 2 years ago

It's not so straightforward. Each canceled lease will start unbending the leased amount. So some LTO might be released in 100 blocks, while more LTO is released after 2000 blocks.

Instead, we must add a new endpoint /addresses/balance/unbonding, which returns a list of amounts and blocks.

Currently the way unbonding is stored, this isn't supported. So the internal structure needs to change.

Related to #137