polkascan / py-substrate-interface

Python Substrate Interface
https://polkascan.github.io/py-substrate-interface/
Apache License 2.0
239 stars 111 forks source link

support for ImOnline module #390

Closed Maharacha closed 1 month ago

Maharacha commented 1 month ago

I'm trying to use the ImOnline module https://polkadot.js.org/docs/kusama/storage/#receivedheartbeatsu32-u32-optionbool with no success. Something like this:

    received_heartbeats = substrate.query(
        module='ImOnline',
        storage_function='ReceivedHeartbeats',
        params=[ss58_decode("F7jUQyYybzQJMnfoYninC1G1j6BCkj4MtJps7z87w2Sxwat")]
    )

Is this not supported or am I doing something wrong?

freshsalis commented 1 month ago

I tried the same approach too and I got substrateinterface.exceptions.StorageFunctionNotFound: Pallet "ImOnline" not found

arjanz commented 1 month ago

It seems since a recent runtime upgrade, the pallet ImOnline is removed from Polkadot/Kusama. It's not present in the Metadata anymore, I checked with PolkadotJS.

arjanz commented 1 month ago

More info: https://github.com/paritytech/polkadot-sdk/pull/3902

Maharacha commented 1 month ago

More info: paritytech/polkadot-sdk#3902

Oh interesting. Not related to this library then. Thanks for fast response!