Skip to main content

Python Substrate Interface: Polkascan Extension

Latest Version Supported Python versions License

Description

This extension enables Substrate Interface to use indexes provided by the Polkascan Explorer API

Installation

pip install substrate-interface-polkascan

Initialization

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

events = substrate.extensions.filter_events(pallet_name="Balances", event_name="Transfer", page_size=25)

Filter extrinsics

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

Metadata

Release files for substrate-interface-polkascan 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for substrate-interface-polkascan 0.2
File Size Uploaded
substrate-interface-polkascan-0.2.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for substrate-interface-polkascan 0.2
File Interpreter ABI Platform
substrate_interface_polkascan-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 18.6 kB

Release files / substrate-interface-polkascan-0.2.tar.gz

Download URL substrate-interface-polkascan-0.2.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
99968a9fdae18be5476b25912be9f220242fccfac9e91d2548c19e75e1b2942e
BLAKE2b-256 checksum
How to use checksums
80311073930fe0d0dd62a10bf336da87e73d6b12a1a295a719255071777731bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / substrate_interface_polkascan-0.2-py3-none-any.whl

Download URL substrate_interface_polkascan-0.2-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b354301e98379b8f05f859ba0bd2598c878e460ba44d1b2e9c9605aaa86a869
BLAKE2b-256 checksum
How to use checksums
d546856c86ece744d379d06c70e3a3da358fc0bdbe189698c5c87bb03aa3002b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page