Quickstart

NEAR By Example is a comprehensive educational platform that bridges the gap between learning NEAR smart contract development and actually building on the NEAR blockchain. The platform provides over 60 categorized examples covering everything from basic contract structure to advanced topics like NFTs, fungible tokens, cross-contract calls, and security best practices. Each example is available in both Rust and JavaScript/TypeScript implementations, allowing developers to learn in their preferred language.
Want to learn about writing content from scratch? Head to the Basics section to learn more.
Key Features
60+ Interactive Examples - Categorized by topic and difficulty, with Rust and JavaScript implementations
Live Code Editor - Edit contracts in-browser with syntax highlighting and language switching
Real-time Compilation - Compile contracts to WASM and see results instantly
Testnet Deployment - Deploy contracts via backend CLI or wallet integration
Function Testing - Call view and change methods on deployed contracts
AI-Powered Assistance - Get explanations and answers about contract code
Advanced Filtering - Search and filter examples by category, difficulty, and keywords
Wallet Integration - Connect MyNearWallet or Meteor Wallet for transactions
Responsive Design - Works seamlessly on desktop and mobile devices
Dark Theme - Modern, developer-friendly interface
Compilation & Deployment Workflow
Select an Example - Browse categories or search for specific topics
Edit Code - Modify the contract code in the editor (optional)
Run/Compile - Click "Run" to compile the contract and see WASM output
Deploy - Click "Deploy" to compile and deploy to NEAR TestNet
Test Functions - Use the Function Testing tab to interact with your deployed contract
View Results - Check the console for compilation status, transaction hashes, and contract addresses

🤝Contributing
Contributions are welcome! Please feel free to submit issues, fork the repository, and create pull requests for any improvements.
Last updated
Was this helpful?