<< All versions
Skill v1.0.0
currentLLM-judged scan90/100utsavsavani08/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-contractsorsolana-anchor) instead - The task is pure web2 with no on-chain component
Instructions
- Confirm the actual on-chain requirement — many "blockchain" asks are better served by a normal database. Challenge it first.
- If on-chain is justified, run the chain-selection decision tree below.
- Hand off to the chain-specific skill; record the decision in the task record / wiki
decisions.md.
Core mental model
| Concept | EVM (Ethereum, Polygon, Arbitrum, Base, Optimism) | Solana | |
|---|---|---|---|
| State model | Contract storage per account; account-based balances | Accounts hold data; programs are stateless and operate on passed-in accounts | |
| Execution | EVM bytecode (Solidity/Vyper) | BPF/SBF (Rust via Anchor, C) | |
| Fees | Gas × gas price (volatile, EIP-1559 base+priority) | Tiny fixed fees + per-account rent | |
| Throughput | ~tens of TPS L1, high on L2 rollups | High TPS, sub-second slots | |
| Composability | Synchronous calls between contracts | Cross-Program Invocation (CPI), parallel via account locks | |
| Tooling | Foundry, Hardhat, viem/wagmi | Anchor, 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-securityis 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
| Decision | Next skill | |
|---|---|---|
| EVM contracts | solidity-smart-contracts → token-standards, foundry-hardhat-testing, gas-optimization, smart-contract-security | |
| EVM dapp frontend | web3-frontend | |
| DeFi protocol | defi-patterns | |
| Solana program | solana-anchor (+ rust-pro) | |
| Deploy/verify/upgrade | smart-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