Back to Developers

Developer Guides

In-depth guides covering smart contract development, security, testing, and integration patterns. Best practices from experienced blockchain developers.

Development Tools Comparison

ToolLanguageSpeedTestingDebuggingBest For
FoundrySolidityVery FastExcellentGoodPerformance-focused development
HardhatJavaScript/TypeScriptFastExcellentExcellentPlugin ecosystem, TypeScript projects
RemixBrowser-basedN/ABasicGoodLearning, quick prototyping

Quick References

Gas Costs Reference

EVM opcode gas costs and optimization tips

Solidity Cheatsheet

Quick reference for Solidity syntax and features

EIP Standards

Common token and contract standards

Network Reference

Chain IDs, RPCs, and block explorers

Featured: Solidity Best Practices

Code Organization

Avoid

// Poor organization
contract Token {
    uint256 supply;
    address admin;
    mapping(address=>uint) bal;

    function t(address a, uint x) public {
        bal[msg.sender] -= x;
        bal[a] += x;
    }
}

Prefer

// Well organized
contract Token {
    // State variables
    uint256 public totalSupply;
    address public owner;
    mapping(address => uint256) public balances;

    // Events
    event Transfer(address indexed from, address indexed to, uint256 amount);

    // Functions
    function transfer(address to, uint256 amount) external {
        require(balances[msg.sender] >= amount, "Insufficient balance");
        balances[msg.sender] -= amount;
        balances[to] += amount;
        emit Transfer(msg.sender, to, amount);
    }
}
Topics covered:
NamingLayoutNatSpecEvents
Read full guide →

Quick Setup

Foundry Setup

# Install Foundry
curl -L https://foundry.paradigm.xyz | bash
foundryup

# Create new project
forge init my-project
cd my-project

# Build and test
forge build
forge test
Full Foundry guide →

Hardhat Setup

# Create new project
mkdir my-project && cd my-project
npm init -y
npm install --save-dev hardhat

# Initialize Hardhat
npx hardhat init

# Compile and test
npx hardhat compile
npx hardhat test
Full Hardhat guide →

Need Help Building?

Join our developer community for support, code reviews, and collaboration.