subscan-explorer / subscan-issue-tracker

The issue tracker for Subscan.io.
3 stars 5 forks source link

Missing Event: staking (unbond) #53

Closed ghost closed 1 year ago

ghost commented 1 year ago

Confirmation

Affected Network(s)

Polkadot

Steps to reproduce

Open the Subscan Web Interface Find a succesfull extrinsic with the event module=staking and call=unbond using the following link:

https://polkadot.subscan.io/extrinsic?module=staking&call=unbond

Pick one like:

https://polkadot.subscan.io/extrinsic/14375428-2

Extract the address and compose an API call requesting all Staking events to https://polkadot.api.subscan.io/api/scan/events

like this:

{"row": 1, "page": 0, "module": "Staking","address": "12RLRhaELgntbUsaatzNLfBaCpqnQDJHbF297Z3aE7gv4twQ"}

Expected output

Have the API provide results for this event (module / call combination) like is shown in the webinterface here:

https://polkadot.subscan.io/account/12RLRhaELgntbUsaatzNLfBaCpqnQDJHbF297Z3aE7gv4twQ

Actual output

{ "code": 0, "message": "Success", "generated_at": 1681459085, "data": { "count": 0, "events": null } }

Additional factoids or references

No response

freehere107 commented 1 year ago

@dave4odyssey Hi. I think this is what you need https://polkadot.subscan.io/event?address=13nreBV2LznezGgv4PZoCRJk8bqHCimSPipy8hqYYEAyiMWq&module=staking&event=unbonded&startDate=&endDate=&startBlock=&endBlock=&timeType=date&version=9370

freehere107 commented 1 year ago

Since the unbonded event parameter is stash account_id, you cannot use the controller account to query