polygon

Configure Polygon PoS and zkEVM chains with Foundry and Hardhat.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/0xinit/cryptoskills --skill polygon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: polygon
Source: https://github.com/0xinit/cryptoskills/tree/main/skills/polygon
Command: npx skills add https://github.com/0xinit/cryptoskills --skill polygon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and tools for developing on the Polygon network, covering its various chains (PoS, zkEVM) and interop solutions (AggLayer).

Core Features & Use Cases

  • Chain Configuration: Detailed RPC endpoints, chain IDs, and explorer links for Polygon PoS and zkEVM.
  • Deployment & Verification: Foundry and Hardhat examples for deploying and verifying smart contracts.
  • Bridging: Instructions and code snippets for bridging assets between chains using Polygon's native bridges.
  • Use Case: A developer needs to deploy a new DeFi protocol on Polygon zkEVM. They can use this Skill to quickly get the correct RPC endpoints, understand gas costs, and deploy their contract using Foundry.

Quick Start

Use the polygon skill to find the RPC endpoint for the Polygon zkEVM mainnet.

Frequently Asked Questions about polygon

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

FAQPage Schema
How do I deploy and verify smart contracts on Polygon zkEVM using Foundry or Hardhat?

To deploy and verify smart contracts on Polygon zkEVM, you need specific chain configurations, RPC endpoints, and deployment scripts. This Skill provides Foundry and Hardhat examples for deploying and verifying contracts on both Polygon PoS and zkEVM networks.

What is the difference between developing for Polygon PoS and Polygon zkEVM?

The difference between Polygon PoS and Polygon zkEVM involves distinct chain IDs, RPC endpoints, gas costs, and interop solutions. This Skill addresses these common development challenges and differences to help you configure your deployments correctly across both chains.

How do I bridge assets between Polygon chains using native bridges?

Bridging assets between Polygon chains requires using Polygon's native bridges with specific instructions and code snippets. This Skill provides bridging examples for transferring assets between Polygon PoS, zkEVM, and AggLayer interop environments.

Can I use Foundry and Hardhat for deploying DeFi protocols on the Polygon ecosystem?

Yes, you can use Foundry and Hardhat for deploying DeFi protocols on the Polygon ecosystem. This Skill supports both frameworks, providing the necessary chain configurations, deployment scripts, and verification guides for deploying on Polygon zkEVM and PoS.

What RPC endpoints and chain IDs do I need for Polygon zkEVM mainnet?

For Polygon zkEVM mainnet, you need specific RPC endpoints, chain IDs, and explorer links to configure your development environment. This Skill provides detailed chain configurations to quickly get the correct connection details for both Polygon PoS and zkEVM networks.

Does Polygon AggLayer interop work with both Foundry and Hardhat deployment workflows?

Polygon AggLayer interop integrates with both Foundry and Hardhat deployment workflows by providing chain configurations and bridging examples. This Skill helps developers understand and utilize cross-chain interoperability within the Polygon multi-chain ecosystem.