polkadot-contracts

Create typed contract handles and submit transactions for Solidity and ink! contracts on Polkadot Asset Hub.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Interacting with smart contracts on Polkadot Asset Hub can be verbose and error-prone. This skill provides typed, high-level abstractions to read contract state, create contract handles, and submit transactions across Solidity and ink! contracts.

Core Features & Use Cases

  • Typed contract access via ContractManager, createContract, and createContractFromClient for safe, autocomplete-supported interactions with CDM-managed contracts.
  • CDM integration using cdm.json to manage contract metadata and addresses.
  • Codegen support to generate TypeScript types for contract ABIs and automated tooling.

Quick Start

Instantiate a ContractManager with your cdm.json and InkSdk, then read a contract state or submit a contract transaction.

Frequently Asked Questions about polkadot-contracts

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

FAQPage Schema
How do I interact with Solidity and ink! contracts on Polkadot Asset Hub?

You interact with Solidity and ink! contracts on Polkadot Asset Hub by instantiating a ContractManager with cdm.json to read state and submit typed transactions using CDM metadata.

What is CDM metadata and how is it used for Polkadot contract interaction?

CDM metadata uses cdm.json to manage contract metadata and addresses, enabling typed, safe contract access and automated TypeScript typings generation for Polkadot Asset Hub interactions.

Can I generate TypeScript types for my contract ABIs when using Polkadot contracts?

Yes, the skill provides codegen support to generate TypeScript types for contract ABIs, enabling autocomplete-supported, typed interactions with CDM-managed contracts and automated tooling.

Does this approach require a specific signer for submitting contract transactions?

Submitting transactions requires signer and origin resolution, which the skill handles robustly to ensure safe contract transaction submissions across Solidity and ink! contracts.

What is the best way to create contract handles for typed access on Polkadot?

The best way is using createContract or createContractFromClient functions, which provide typed, high-level abstractions for safe, autocomplete-supported interactions with CDM-managed contracts.