product-sdk-contracts

Manage smart contract interactions on Polkadot Asset Hub with ContractManager.

8|3|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/paritytech/product-sdk --skill product-sdk-contracts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: product-sdk-contracts
Source: https://github.com/paritytech/product-sdk/tree/main/product-sdk/skills/product-sdk-contracts
Command: npx skills add https://github.com/paritytech/product-sdk --skill product-sdk-contracts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @parity/product-sdk-contracts, @parity/product-sdk-chain-client, @parity/product-sdk-signer, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves the problem of interacting with smart contracts on Asset Hub, providing a simple and efficient way to manage contract operations and data retrieval.

Core Features & Use Cases

  • Contract Management: Manage multiple contracts with cdm.json manifests or ad-hoc contracts.
  • State Management: Perform read-only calls and state-changing transactions on contracts.
  • Integration: Seamlessly integrates with other SDK packages for a full Polkadot ecosystem experience.
  • Use Case: Build a decentralized application that requires contract interactions on Asset Hub, such as a marketplace or token management system.

Quick Start

To get started, create a ContractManager instance and use it to interact with a contract. For example, to read the count from a contract, use the following command:

const counter = manager.getContract("@example/counter");
const { value } = await counter.getCount.query();

Frequently Asked Questions about product-sdk-contracts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I interact with smart contracts on Polkadot Asset Hub?

To interact with smart contracts on Polkadot Asset Hub, use a ContractManager instance to handle contract creation, state retrieval, and transaction submission for Solidity and PolkaVM contracts.

What is the best way to manage multiple smart contracts in a Polkadot decentralized application?

The best way to manage multiple smart contracts in a Polkadot decentralized application is using a ContractManager to organize contracts via cdm.json manifests or ad-hoc contract definitions.

Do I need specific SDK packages to perform contract interactions on Asset Hub?

Yes, performing contract interactions on Asset Hub requires the @parity/product-sdk-contracts package alongside @parity/product-sdk-chain-client and @parity/product-sdk-signer for full ecosystem integration.

Can I execute read-only calls and state-changing transactions on Asset Hub contracts?

Yes, you can execute read-only calls and state-changing transactions on Asset Hub contracts by utilizing the state management capabilities provided by the ContractManager component.

Does the Asset Hub contract SDK support both Solidity and PolkaVM contracts?

Yes, the Asset Hub contract SDK supports both Solidity and PolkaVM contracts, allowing you to manage contract operations and data retrieval across both virtual machine environments.