Skip to main content
NEAR Docs home page
Docs
Dev ToolKit
RPC API
Search...
Navigation
Anatomy of a Contract
Basic Anatomy
Search docs...
âK
Explorers
Wallets
NEAR Catalog
Getting Started
What is NEAR?
Create an Account
Get Testnet Tokens
Hackathon Guide
Tools for AI Agents
Docs
Protocol
Smart Contracts
Quickstart
Concepts
Anatomy of a Contract
Basic Anatomy
External Interface
State (Storage)
SDK Types
Collections
Environment
Transfers & Actions
Cross-Contract Calls
Yield and Resume
Global Contracts
Deploy, Update & Lock
Advanced
Test the Contract
Security
Tutorials
App Development
Multi-Chain
Tokens & Primitives
Data Infrastructure
Docs
Smart Contracts
Concepts
Anatomy of a Contract
Basic Anatomy
Copy page
Learn the basic anatomy of all smart contracts.
Copy page
Letâs illustrate the basic anatomy of a simple âHello Worldâ contract. The code on this page comes from our
Hello NEAR repository
on GitHub.
Was this page helpful?
Yes
No
Your First Smart Contract
Previous
External Interface
Next
âI