Command Palette

Search for a command to run...

Назад к скиллам
скилл № 69779

blockchain-web3

Use this skill when asked about web3 frontend development, ethers.js, viem, wagmi, web3.js, wallet integration (MetaMask, Phantom, WalletConnect), dApp…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить blockchain-web3 в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Blockchain Web3

Purpose

Guide web3 frontend and dApp development covering library selection, wallet integration, contract interaction, transaction management, event handling, and account abstraction. Focuses on TypeScript-based frontend patterns.

Agent Protocol

Trigger

"web3", "ethers.js", "viem", "wagmi", "web3.js", "metamask", "phantom wallet", "walletconnect", "dapp", "decentralized app", "react blockchain", "nextjs web3", "ethers contract", "contract interaction", "read contract", "write contract", "send transaction", "sign message", "eip-1193", "eip-4337", "account abstraction", "multicall", "rpc provider", "infura", "alchemy", "blockchain frontend", "typechain", "wagmi hooks", "viem client", "user operation", "sign typed data"

Input Context

  • Frontend framework (React/Next.js/Vanilla)
  • Blockchain networks (Ethereum/L2/Solana/Multi-chain)
  • Library preference (viem+wagmi/ethers.js/web3.js)
  • Features needed (read/write/events/wallet/signing)
  • Account abstraction requirements (ERC-4337)
  • Performance requirements (RPC calls, caching, multicall)

Output Artifact

Web3 frontend architecture: library selection, provider setup, wallet connection flow, contract interaction patterns, event handling, and transaction management.

Response Format

  1. Library selection: viem/wagmi vs ethers.js vs web3.js rationale
  2. Provider setup: chain config, RPC endpoints, fallback providers
  3. Wallet connection: injected providers (EIP-6963), WalletConnect, smart accounts (ERC-4337)
  4. Contract interaction: read/write patterns, event listening, multicall
  5. Transaction flow: gas estimation, simulation, submission, confirmation tracking
  6. Error handling: revert reasons, user rejection, network errors, rate limiting

Completion Criteria

  • Library selection justified with comparison against alternatives
  • Provider setup handles: multiple chains, fallback RPCs, rate limiting
  • Wallet connection supports: EIP-1193, EIP-6963, WalletConnect
  • Transaction management handles: gas estimation, simulation, confirmation, error states
  • Event handling covers: subscription, polling, historical query, reorg handling

Max Response Length

4000 tokens

Decision Trees

Library Selection

Web3 frontend stack:
├── Modern TypeScript dApp?
│   ├── React + TypeScript → viem + wagmi (default)
│   │   ├── viem: lightweight, tree-shakeable, type-safe
│   │   ├── wagmi: React hooks, auto-refetch, multicall
│   │   └── ConnectKit/RainbowKit: wallet UI components
│   └── Vanilla JS/Node → viem (no React dependency)
├── Legacy / broad compatibility?
│   ├── ethers.js v6 — stable, well-documented
│   ├── TypeChain for typed contracts
│   └── More boilerplate than viem
├── Solana dApp?
│   ├── @solana/web3.js v2
│   ├── @solana/wallet-adapter-react
│   └── Anchor TS client for Anchor programs
└── Cosmos dApp?
    ├── @cosmjs/stargate
    └── Cosmos Kit (React)

Wallet Connection

Wallet integration:
├── Desktop browser?
│   ├── MetaMask (EVM) — most users
│   ├── Phantom (Solana + EVM)
│   ├── Rabby (EVM, superior UX)
│   └── EIP-6963 multi-injected provider discovery
├── Mobile?
│   ├── WalletConnect v2 — universal mobile bridge
│   └── MetaMask SDK — native mobile support
├── Smart accounts (ERC-4337)?
│   ├── Privy, Dynamic, Web3Auth — social login + embedded wallets
│   └── ZeroDev, Biconomy, StackUp — ERC-4337 bundlers
└── Hardware wallet?
    ├── Ledger — Ledger Connect
    └── Trezor — Trezor Suite

Viem + Wagmi Patterns

Provider Setup

import { createConfig, http } from 'wagmi'
import { mainnet, polygon, arbitrum } from 'wagmi/chains'
import { metaMask, walletConnect } from 'wagmi/connectors'

export const config = createConfig({
  chains: [mainnet, polygon, arbitrum],
  connectors: [
    metaMask(),
    walletConnect({ projectId: process.env.NEXT_PUBLIC_WC_PROJECT_ID! }),
  ],
  transports: {
    [mainnet.id]: http(
      `https://eth-mainnet.g.alchemy.com/v2/${process.env.NEXT_PUBLIC_ALCHEMY_API_KEY}`,
      { batch: true } // Enable multicall batching
    ),
    [polygon.id]: http(),
    [arbitrum.id]: http(),
  },
})

Reading Contract State

import { useReadContract } from 'wagmi'
import { abi } from './token-abi'
import { formatUnits } from 'viem'

// React hook — auto-refetches on account/chain change
function TokenBalance({ tokenAddress, userAddress }: Props) {
  const { data: balance, isLoading, isError } = useReadContract({
    address: tokenAddress as `0x${string}`,
    abi,
    functionName: 'balanceOf',
    args: [userAddress],
  })

  if (isLoading) return <div>Loading...</div>
  if (isError) return <div>Error loading balance</div>

  return <div>{formatUnits(balance ?? 0n, 18)} Tokens</div>
}

Writing Transactions

import { useWriteContract, useWaitForTransactionReceipt } from 'wagmi'
import { parseEther } from 'viem'

function TransferForm() {
  const { writeContract, data: hash, isPendin
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/blockchain-web3-advanced.md
  • references/blockchain-web3-fundamentals.md
  • references/cross-chain-dapp-patterns.md
  • references/dapp-architecture.md
  • references/ethers-viem-wagmi.md
  • references/gas-optimization-management.md
  • references/providers-rpc.md
  • references/reference_guide_1.md
  • references/reference_guide_2.md
  • references/reference_guide_3.md
  • references/reference_guide_4.md
  • references/reference_guide_5.md
  • references/reference_guide_6.md
  • references/reference_guide_7.md
  • references/reference_guide_8.md
  • references/wallet-integration.md
  • references/web3-hooks.md
  • references/web3-react-patterns.md

FAQ

Что делает скилл blockchain-web3?

Use this skill when asked about web3 frontend development, ethers.js, viem, wagmi, web3.js, wallet integration (MetaMask, Phantom, WalletConnect), dApp architecture, RPC providers (Alchemy, Infura), and TypeScript blockchain SDKs. Language: TypeScript. Covers reading blockchain state, sending transactions, wallet connection flows, contract interaction patterns, event subscription, gas estimation, multicall patterns, and account abstraction (ERC-4337). Do NOT use for: smart contract development (use blockchain-application), core protocol (use blockchain-core), or blockchain testing (use blockchain-testing).

Как установить скилл blockchain-web3?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл blockchain-web3 запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить blockchain-web3 с