w3-kit add

Add recipes, components, or contract templates to an existing project. Each recipe includes working code and optional educational output explaining what it does.

Command

npx w3-kit add <recipe> [options]

Options:
  --contract          Add contract template instead of recipe
  --chain <chain>     Target: evm, solana, or both
  --no-learn          Skip educational output

Available Recipes

Wallet
connect-walletdisconnect-walletsign-messageswitch-network
Tokens
create-tokentransfer-tokensapprove-spendingget-balancefetch-metadatawatch-transfers
NFTs
mint-nftfetch-nft-collectionbuy-nftdisplay-nft-metadata
DeFi
swap-tokensprovide-liquiditystake-tokensclaim-rewards
Utils
resolve-addressestimate-fees

Examples

# Add a recipe with educational output
npx w3-kit add connect-wallet

# Add a contract template for EVM
npx w3-kit add create-token --contract --chain evm

# Skip the learning output
npx w3-kit add swap-tokens --no-learn

# Solana-specific recipe
npx w3-kit add transfer-tokens --chain solana