Metadata-Version: 2.1
Name: substrate-interface-polkascan
Version: 0.2
Summary: py-substrate-interface extension to utilize Polkascan API indexes
Home-page: https://github.com/polkascan/py-substrate-interface-extension-polkascan
Author: Stichting Polkascan (Polkascan Foundation)
Author-email: info@polkascan.org
License: UNKNOWN
Description: # Python Substrate Interface: Polkascan Extension
        
        [![Latest Version](https://img.shields.io/pypi/v/substrate-interface-polkascan.svg)](https://pypi.org/project/substrate-interface-polkascan/)
        [![Supported Python versions](https://img.shields.io/pypi/pyversions/substrate-interface-polkascan.svg)](https://pypi.org/project/substrate-interface/)
        [![License](https://img.shields.io/pypi/l/substrate-interface-polkascan.svg)](https://github.com/polkascan/py-substrate-interface-extension-polkascan/blob/master/LICENSE)
        
        
        ## Description
        This extension enables [Substrate Interface](https://github.com/polkascan/py-substrate-interface) to use indexes provided by the [Polkascan Explorer API](https://github.com/polkascan/explorer#explorer-api-component)   
        
        ## Installation
        ```bash
        pip install substrate-interface-polkascan
        ```
        
        ## Initialization
        
        ```python
        from substrateinterface import SubstrateInterface
        from substrateinterface_polkascan.extensions import PolkascanExtension
        
        substrate = SubstrateInterface(url="ws://127.0.0.1:9944")
        
        substrate.register_extension(PolkascanExtension(url='http://127.0.0.1:8000/graphql/'))
        ```
        
        ## Usage
        
        ### Filter events
        
        ```python
        events = substrate.extensions.filter_events(pallet_name="Balances", event_name="Transfer", page_size=25)
        ```
        
        ### Filter extrinsics
        
        ```python
        extrinsics = substrate.extensions.filter_extrinsics(
            ss58_address="12L9MSmxHY8YvtZKpA7Vpvac2pwf4wrT3gd2Tx78sCctoXSE",
            pallet_name="Balances", call_name="transfer_keep_alive", page_size=25
        )
        ```
        
        ## License
        https://github.com/polkascan/py-substrate-interface-extension-polkascan/blob/master/LICENSE
        
Keywords: substrate-interface extension polkascan api
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.7, <4
Description-Content-Type: text/markdown
Provides-Extra: test
