Engineering JavaScript for Web3
summary
NEAR adds a JavaScript smart‑contract path that compiles JS to WASM/base64 and runs in a QuickJS JS VM deployed as a contract; tooling shown includes near-sdk-js, near-cli/near-js, near-api.js and a Gitpod quickstart. Demo builds a greeting and a coin‑flip game using a cross‑contract call to a random hub (returns 0/1), deploys via Dev‑deploy (grants 200 testnet tokens), uses 300 Tgas for calls, charges ~0.1 NEAR first‑time storage, and works live on testnet with a 4.19 MB initial upload limit.
AI-written summary · about
chapters (11)
- 0:00Web3 JavaScript intro
- 4:11NEAR Protocol overview
- 8:45JavaScript for smart contracts
- 10:30Setting up the development environment
- 11:56Smart contract breakdown
- 14:24Contract build & deploy
- 16:09Interacting with contract
- 18:15Coin-flipping game contract
- 27:20Frontend deployment
- 34:31Feedback & resources
- 36:40Q&A
related talks
37mSafe and Simple Rust Smart Contracts in NEAR
01h 27mWorkshop: NEAR 101
16mEnabling Open Web for Consumer Apps
24mNEAR Protocol & Chainlink Integration
28mJavy: Creating a toolchain for running JavaScript on WebAssembly
03h 23mEthereum and Javascript - what's the big deal?
44mJavaScript in WebAssembly? Why and How
37mInteroperability via the Rainbow Bridge
