polkascan / py-substrate-interface

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

python call <empty> query storage, how to check? #209

Closed yytomives closed 2 years ago

yytomives commented 2 years ago

python call query storage, how to check? As shown below: image

    call = substrate.query(
        module='System',
        storage_function='Account',
        params=[""]
    )

The value of params is ""? or None? or Null? I've tried both.

arjanz commented 2 years ago

You can use the query_map() function for that. Link to the doc: https://polkascan.github.io/py-substrate-interface/#substrateinterface.SubstrateInterface.query_map