Closed johnuopini closed 2 years ago
No on the contrary, Subscan is showing incorrect results.. As you can see in PolkadotJS/apps, which is showing pure on-chain data, the extrinsic should only have triggered one event directly.
The other events seem to be triggered by other extrinsics in the same block or are system events.
Trust but verify :)
You are right, those are not related to the extrinsic but to the block itself, JS lists them inside the "System events" for the block, does the library support fetching system events?
Sorry just found a storage query System.events() that accepts an hash, will use that, closing this!
You can retrieve all the events for a block with:
events = substrate.get_events(block_hash="0x88f5fb3ff6384c127d16408dcfad626fe63081a856c303bf3423b5421a2ced65")
Found that, great stuff!!!
I am trying to get events in this extrinsic: https://moonbeam.subscan.io/extrinsic/413415-0
I do this by using:
substrate.retrieve_extrinsic_by_identifier("413415-0")
Problem is that result has just one event and not hundreds like the one in Subscan. Is this a library limitation?