migrating-an-onchainkit-app

Migrate OnchainKit applications to wagmi/viem components.

3|2|Updated May 6, 2020
One-click install
npx skills add https://github.com/Dargon789/coinbase-ethereum-smartcontracts --skill migrating-an-onchainkit-app-dargon789
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migrating-an-onchainkit-app
Source: https://github.com/Dargon789/coinbase-ethereum-smartcontracts/tree/main/.agents/skills/migrating-an-onchainkit-app
Command: npx skills add https://github.com/Dargon789/coinbase-ethereum-smartcontracts --skill migrating-an-onchainkit-app-dargon789

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wagmi, viem, @tanstack/react-query, tailwindcss, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of migrating OnchainKit applications to standalone wagmi/viem components, simplifying the transition and minimizing dependency on OnchainKit.

Core Features & Use Cases

  • Provider Migration: Replace OnchainKitProvider with WagmiProvider and QueryClientProvider.
  • Wallet Migration: Replace OnchainKit wallet components with a custom WalletConnect component.
  • Transaction Migration: Migrate OnchainKit transaction components to use wagmi hooks.
  • Use Case: Ideal for developers looking to reduce OnchainKit dependency and enhance their application's flexibility.

Quick Start

Run the skill to begin the migration process for your OnchainKit app.

Frequently Asked Questions about migrating-an-onchainkit-app

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

FAQPage Schema
How do I migrate an OnchainKit app to wagmi and viem?

To migrate an OnchainKit app to wagmi and viem, you replace OnchainKitProvider with WagmiProvider and QueryClientProvider, and swap transaction components to use wagmi hooks. This reduces OnchainKit dependency and enhances application flexibility.

What dependencies do I need to install for wagmi and viem migration?

You need to install wagmi, viem, and @tanstack/react-query to execute the wagmi and viem migration. Optionally, you can also install tailwindcss to maintain styling compatibility during the provider and component replacements.

Can I replace OnchainKit wallet components with a custom WalletConnect component?

Yes, you can replace OnchainKit wallet components with a custom WalletConnect component. The migration process handles wallet component replacements while maintaining compatibility with the Coinbase SDK ecosystem for seamless transitions.

Does migrating from OnchainKit to wagmi break Coinbase SDK compatibility?

Migrating from OnchainKit to wagmi does not break Coinbase SDK compatibility. The migration specifically maintains compatibility with the Coinbase SDK ecosystem while replacing wallet and transaction providers with wagmi hooks and viem components.

What is the best way to replace OnchainKit transaction components with wagmi hooks?

The best way to replace OnchainKit transaction components is migrating them directly to use wagmi hooks. This transition is handled alongside provider replacements, ensuring seamless migration and minimal downtime for your application.