Skip to main content

General

Yes! NEAR Playground is completely free. Testnet deployments cost nothing - we fund the accounts for you.Mainnet deployments require your own NEAR tokens.
No. NEAR Playground runs entirely in your browser. Just visit nearplay.app and start coding.
Yes. Your code auto-saves as you type and is stored in your account. You can close the browser and come back later.
Yes. Each project has a shareable link. Others can view your code and deployed contracts.

Compilation

First compilation takes longer because dependencies need to be downloaded and cached. Subsequent compilations are faster.
We use the latest stable Rust with cargo-near for NEAR-optimized builds.
Currently, NEAR Playground supports single-file contracts with near-sdk. For complex projects with multiple dependencies, use a local development environment.
Common issues:
  • Missing semicolons or brackets
  • Wrong near-sdk macro usage
  • Type mismatches
Check the error messages in the output panel - they show the exact line and issue.

Deployment

Playground mode: Free testnet deployment. We create and fund the account for you.Wallet mode: Mainnet deployment with your own wallet (Meteor). Uses real NEAR tokens.
No. Meteor wallet only supports mainnet. For testnet, use Playground mode - it’s free and has the same functionality.
Roughly 0.1 NEAR per 10KB of contract size, plus ~0.01 NEAR for gas. A typical 150KB contract costs about 1.5 NEAR.
In Playground mode, each deployment creates a new address. In Wallet mode, you deploy to your own account and can update it.

Contract Interface

The method might be returning () (unit type) instead of a value. Make sure your view method has a return type.
Make sure your method takes &mut self instead of &self. Only mutable methods can change state.
For structs or vectors, use JSON format in the input field:
{"name": "Alice", "age": 25}

Troubleshooting

  • Clear your browser cache
  • Try a different browser (Chrome or Firefox recommended)
  • Disable browser extensions
  • Make sure your wallet is unlocked
  • Try refreshing the page
  • Check if popup blockers are preventing the wallet window
Deployments usually complete in 5-10 seconds. If stuck:
  • Check your internet connection
  • Try refreshing and deploying again