Skip to main content
NEAR Docs home page
Docs
Dev ToolKit
RPC API
Search...
Navigation
Anatomy of a Contract
External Interface
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
External Interface
Copy page
Learn how to define your contract’s interface.
Copy page
Smart contracts expose functions so users can interact with them. There are different types of functions including
read-only
,
private
and
payable
.
Was this page helpful?
Yes
No
Basic Anatomy
Previous
State
Next
⌘I