product-sdk-chain-connection
OfficialEffortlessly connect to Polkadot chains and interact with their state.
Authorparitytech
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill unit addresses the challenge of connecting to Polkadot chains, querying their state, and interacting with their APIs, simplifying the process for developers.
Core Features & Use Cases
- Chain Connection: Establish connections to Polkadot parachains using predefined or custom descriptors.
- Querying Chain State: Retrieve information like account balances, block numbers, and transaction details.
- Subscriptions: Monitor changes in chain state, such as balance updates.
- Raw API Access: Provides access to the raw PAPI client for advanced operations.
- Environment Support: Currently supports the "paseo" environment, with plans for "polkadot" and "kusama".
Quick Start
Use the getChainAPI function to connect to the "paseo" environment and query an account balance.
import { getChainAPI } from "@parity/product-sdk-chain-client";
const client = await getChainAPI("paseo");
const account = await client.assetHub.query.System.Account.getValue(
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
);
console.log("Free balance:", account.data.free);
client.destroy();
Dependency Matrix
Required Modules
@parity/product-sdk-chain-client@parity/product-sdk-descriptors
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: product-sdk-chain-connection Download link: https://github.com/paritytech/product-sdk/archive/main.zip#product-sdk-chain-connection Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.