vacuumlabs / adalite-backend-service

Icarus, a reference implementation for a lightweight wallet developed by the IOHK Engineering Team.
Apache License 2.0
2 stars 7 forks source link

[question] accountInfo rewards #97

Closed roccomuso closed 4 years ago

roccomuso commented 4 years ago

I saw that api/account/info/:stakingAddress returns something like:

{
    "delegation": {
        ...
    },
    "hasStakingKey": true,
    "rewards": 0
}

Is hasStakingKey true even if wallet unstaked? is it like a field stating the staking key has been revealed? Are those the total collected rewards or pending rewards?

xdzurman commented 4 years ago

In order to stake, you have to register your staking address with a deposit. You can deregister it later to retrieve the deposit. hasStakingKey means whether the address is registered or not.

Pending rewards.