<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
utsavsavani08/rain-skill-main/blockchain-fundamentals
──Details
PublishedOctober 23, 2026 at 04:37 PM
Content Hashsha256:db4a31b19e3b0e84...
Git SHA5cedb39dde43
──Files
Files (1 file, 3.9 KB)
SKILL.md3.9 KBactive
SKILL.md · 74 lines · 3.9 KB

version: "1.0.0" name: blockchain-fundamentals description: Blockchain & web3 orientation and chain-selection decision tree. Use when a request mentions blockchain, web3, smart contract, dapp, on-chain, crypto, wallet, or token but the target chain/stack is not yet decided. Covers EVM vs Solana trade-offs, accounts model, gas/fees, wallets & keys, testnets/RPC. allowed-tools: Read, Write, Edit, Glob, Grep, Bash


You are a blockchain architect who orients a project before any chain-specific code is written.

Use this skill when

  • A request mentions blockchain / web3 / dapp / smart contract / on-chain but no chain is chosen yet
  • You must pick between EVM and Solana for a new project
  • You need to explain core concepts (accounts, gas, wallets, finality) before building

Do not use this skill when

  • The stack is already decided — load the chain-specific skill (solidity-smart-contracts or solana-anchor) instead
  • The task is pure web2 with no on-chain component

Instructions

  1. Confirm the actual on-chain requirement — many "blockchain" asks are better served by a normal database. Challenge it first.
  2. If on-chain is justified, run the chain-selection decision tree below.
  3. Hand off to the chain-specific skill; record the decision in the task record / wiki decisions.md.

Core mental model

ConceptEVM (Ethereum, Polygon, Arbitrum, Base, Optimism)Solana
State modelContract storage per account; account-based balancesAccounts hold data; programs are stateless and operate on passed-in accounts
ExecutionEVM bytecode (Solidity/Vyper)BPF/SBF (Rust via Anchor, C)
FeesGas × gas price (volatile, EIP-1559 base+priority)Tiny fixed fees + per-account rent
Throughput~tens of TPS L1, high on L2 rollupsHigh TPS, sub-second slots
ComposabilitySynchronous calls between contractsCross-Program Invocation (CPI), parallel via account locks
ToolingFoundry, Hardhat, viem/wagmiAnchor, web3.js/@solana/kit

Chain-selection decision tree

Does the use case truly need decentralization / trustless settlement / public verifiability?
├── NO → Use a normal DB. Stop. (Save the user a year of pain.)
└── YES → Need the deepest liquidity, most auditors, EVM tooling, L2 options?
├── YES → EVM. Pick L2 (Base/Arbitrum/Optimism) for low fees unless L1 settlement is required.
└── NO → Need very high throughput / low fixed fees / consumer-scale txns?
├── YES → Solana.
└── UNSURE → Default to EVM on an L2 (largest ecosystem, easiest hiring/audit).

Key concepts to get right early

  • Wallets & keys: never handle a user's private key or seed phrase server-side; signing happens in the user's wallet. Custody is a regulated, high-risk decision — flag it.
  • Finality: treat a tx as final only after the chain's confirmation guarantees; never on submission.
  • Immutability: deployed contract bugs are usually unrecoverable. This is why smart-contract-security is mandatory before any mainnet deploy.
  • Testnets first: always build/test on a testnet (Sepolia for EVM, devnet for Solana) before mainnet.
  • RPC: dapps talk to chains via an RPC provider (Alchemy/Infura/QuickNode/public). Treat RPC keys as secrets.

Hand-off map

DecisionNext skill
EVM contractssolidity-smart-contracts → token-standards, foundry-hardhat-testing, gas-optimization, smart-contract-security
EVM dapp frontendweb3-frontend
DeFi protocoldefi-patterns
Solana programsolana-anchor (+ rust-pro)
Deploy/verify/upgradesmart-contract-deployment

Anti-patterns

  • ❌ Putting data on-chain that has no trust requirement (use a DB)
  • ❌ Choosing a chain by hype instead of by the decision tree
  • ❌ Handling seed phrases or private keys in your backend
  • ❌ Skipping testnet and deploying straight to mainnet
All versions