base

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

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

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. - Bridging & Gas Estimation: OP Stack L1-to-L2 deposits, L2-to-L1 withdrawal flow, and L1 data fee estimation via the GasPriceOracle predeploy. - 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 paymasterService capability pointed at your CDP paymaster URL, and configure the contract allowlist policy in the CDP dashboard. ## 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 plus 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 allowlisting your contract addresses and function selectors.

Does Coinbase Smart Wallet work with wagmi?

Yes, wagmi's coinbaseWallet connector supports Smart Wallet with the preference option set to smartWalletOnly. Users authenticate with passkeys and the wallet deploys counterfactually on their first transaction.

Why is my Base transaction more expensive than eth_estimateGas suggests?

eth_estimateGas returns only L2 execution gas, excluding the L1 data fee which dominates costs on Base. Query the GasPriceOracle predeploy's getL1Fee function with your serialized transaction data to get the full cost.

Why does my contract block Coinbase Smart Wallet users?

Contracts checking tx.origin == msg.sender block Smart Wallet users because Smart Wallet is an ERC-4337 contract account, so msg.sender is the wallet contract. Remove that check and use a reentrancy guard instead.

How long does withdrawing ETH 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.