base

Deploy contracts and build apps on Base L2 with OnchainKit, Smart Wallet, and Paymaster.

1|1|Updated May 21, 2026
One-click install
npx skills add https://github.com/naruto11eth/cryptoskills --skill base-naruto11eth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: base
Source: https://github.com/naruto11eth/cryptoskills/tree/main/skills/base
Command: npx skills add https://github.com/naruto11eth/cryptoskills --skill base-naruto11eth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agents often have stale or incorrect knowledge about Base L2 development — wrong gas assumptions, hallucinated contract addresses, and confusion about Smart Wallet, Paymaster sponsorship, and the OP Stack bridging flow. This Skill provides verified chain configuration, contract addresses, and working code patterns for building on Base. ## Core Features & Use Cases - Deployment & Verification: Foundry and Hardhat configurations for Base Mainnet (chain ID 8453) and Base Sepolia, including Basescan and Blockscout contract verification commands. - Smart Wallet & Paymaster Integration: wagmi and OnchainKit patterns for passkey-based Coinbase Smart Wallet, EIP-5792 batch transactions, and gasless transactions via the Coinbase Developer Platform paymaster. - Gas & Bridging Guidance: OP Stack gas model explanation (L2 execution fee plus L1 data fee via GasPriceOracle) and step-by-step ETH bridging between Ethereum L1 and Base L2. - Use Case: You want to add a gasless NFT mint to your React app on Base. Use the Skill's wagmi useWriteContracts pattern with the CDP paymaster URL to sponsor the transaction, and consult the error-code reference when the paymaster rejects a UserOperation. ## Quick Start Ask the agent to deploy a Foundry contract to Base Sepolia with verification, or to set up a wagmi app with Coinbase Smart Wallet and a sponsored gasless transaction on Base.

Frequently Asked Questions about base

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

FAQPage Schema
How do I deploy a smart contract to Base?

Deploy to Base exactly like Ethereum using Foundry or Hardhat — just point at the Base RPC (https://mainnet.base.org, chain ID 8453). Run forge script with --broadcast and --verify, adding a Basescan API key for verification.

How do I implement gasless transactions on Base with a paymaster?

Use wagmi's useWriteContracts hook with the paymasterService capability pointing to your Coinbase Developer Platform paymaster URL. Configure a policy in the CDP dashboard defining allowlisted contracts, methods, and spend limits.

What is the difference between Coinbase Smart Wallet and a regular wallet?

Smart Wallet is an ERC-4337 smart contract account authenticated with passkeys instead of seed phrases or browser extensions. It deploys counterfactually on the first transaction and supports batched calls via EIP-5792 wallet_sendCalls.

Why is my Base transaction more expensive than eth_estimateGas suggests?

eth_estimateGas returns only the L2 execution gas. Base transactions also pay an L1 data fee, which is usually the dominant cost. Query the GasPriceOracle predeploy's getL1Fee function to estimate the full cost.

How long does bridging from Base to Ethereum take?

L2-to-L1 withdrawals take about 7 days due to the OP Stack challenge period. The flow is: initiate on L2, wait ~1 hour for the state root, prove on L1, wait 7 days, then finalize on L1.

Why does my contract block Coinbase Smart Wallet users?

Contracts checking tx.origin == msg.sender block Smart Wallet users because msg.sender is the smart contract wallet address, not an EOA. Remove that check and use a reentrancy guard or ERC-1271 signature validation instead.