
Discover how to build unit tests in cargo for rust smart contracts on the NEAR blockchain, from hello world to counter, chat board, and token transfers.
Meet Mammoth Interactive and discover how this online school, founded in 2012 by John Bara, delivers in-demand tech skills, global reach, and project-driven outcomes.
Learn online effectively through active online teachers, affordable, rewatchable content, and project-based learning that builds a portfolio and proves skills with real results.
Define blockchain as a decentralized, immutable digital ledger of timestamped transactions maintained by networked nodes using a consensus algorithm, enabling trust without middlemen. The lecture previews Cardano and smart contracts.
Discover how smart contracts serve as automated, self-executing agreements on the Cardano blockchain, enabling conditional crypto transfers and financial contracts via Plutus, Marlowe, and Glow.
Explore the Near blockchain, a layer one platform with nightshade sharding and proof-of-stake to deliver fast, low-cost transactions with named accounts and web-based wallets, plus Ethereum interoperability via Rainbow Bridge.
Discover why every developer should know the command line and the terminal's power. Learn how to use npm, git, and front- and back-end tools through the terminal.
Enable the Windows Subsystem for Linux on 64-bit Windows, install an Ubuntu Linux terminal from the Microsoft Store, and access commands like sudo and nano for the course.
Explore Linux and Unix terminals, their history and terminology, and learn how to access and use them on Mac or Windows with Bash or Zsh shells.
Build your first command in the Unix terminal by using the echo command to print text, explore quoting, and passing multiple arguments in zsh and bash on Mac.
Navigate directories and manage files from the Unix-like command line by using ls, mkdir, and cd commands, view your location with pwd, and move through history with arrow keys.
learn to create and edit a new file from the command line using touch or nano, verify with ls, save with ctrl-x and y, and view contents with cat.
Move, copy, and rename files using mv and cp in the Unix shell, while navigating with mkdir, touch, ls, and cd and using relative or full paths.
Discover how Node.js enables building a shared website by running a JavaScript server. Learn front-end and back-end development, database interactions, input validation, and client-server responses.
Install node and npm on mac or windows with the nodejs.org installer, choose 64-bit if offered, then verify with node -v and npm -v and install globally for cross‑project use.
Learn how to install Node.js and npm on Windows, choose the correct 64 bit installer, complete the setup, install optional tools, and verify Node and npm versions.
Explore Rust, an open-source language optimized for performance and memory safety without garbage collection, and its role in building near blockchain smart contracts and safe, faster applications.
Set up a near smart contract project with Rust using the near app template. Inspect the contract and integration tests folders, and run npm install to install dependencies.
Explore building a hello world rust smart contract on the near blockchain, including the default message, contract structure, and public methods to get and set greetings.
Compare Rust string types, including constant and variable, with String and &str, detailing utf eight bytes, heap allocation, and non-owning slices via ampersands.
Define a Rust struct to model smart contracts, using attributes like near_bindgen and derive to enable serialization and cross-file access.
Explore the Rust default trait and how it automatically initializes a struct, like a constructor, returning a default contract with its message value.
Learn Rust mutability and the mute keyword, using mutable self to update contract state, and log messages to the blockchain with NEAR SDK.
learn how to install curl, a command line tool for transferring data with URLs, using homebrew on mac, apt-get on linux, or chocolatey on windows, and prepare to use curl.
install Rust and cargo on mac bash or zsh or Windows using rustup, including curl-based installation, environment variable setup, and version checks.
Learn to build a hello world greeting Rust contract for NEAR, and verify behavior with inline unit tests, including get_greeting, set_greeting, and fail-first testing.
What is the NEAR blockchain?
built to be simple, secure and scalable.
Low cost. High speed. Effortless scale.
<0.01USD Transaction Cost
18M+ Active Accounts
400K Daily Transactions
~2.4s Time to Finality
Contracts, DAOs, dapps, funding
Layer 1 blockchain
not dependent on other chains.
uses a unique scaling mechanism
Nightshade sharding
Scales infinitely
resists short-term usage spikes
Proof of stake
More efficient than Bitcoin and Ethereum
web-based wallet
no need for users to install programs or browser extensions
makes it especially easy to onboard new users (e.g. through named accounts)
Certified carbon neutral
consumes in a year the same energy bitcoin consumes in 3 minutes
Interoperable with Ethereum
using Rainbow Bridge
Your Instructor
Alexandra Kropova is a software developer with extensive experience in smart contract and decentralized app development. She has helped produce courses for Mammoth Interactive since 2016, including many blockchain and Web3 courses.
Mammoth Interactive is a leading online course provider in everything from learning to code to becoming a YouTube star. Mammoth Interactive courses have been featured on Harvard’s edX, Business Insider and more.
Over 11 years, Mammoth Interactive has built a global student community with 1.1 million courses sold. Mammoth Interactive has released over 250 courses and 2,500 hours of video content.
Founder and CEO John Bura has been programming since 1997 and teaching since 2002. John has created top-selling applications for iOS, Xbox and more. John also runs SaaS company Devonian Apps, building efficiency-minded software for technology workers like you.
Join 1.3+ million students in high-quality courses featured at Harvard
Lifetime access that never expires
Project-based curriculum to superboost your portfolio
Graduation certificate for every course
Absolute beginner-friendly
90% off today
Use any computer
Satisfaction guarantee
Get all source code
Popular bundle by Mammoth students
Perfected over years of training
Reviews from the Mammoth Community
"This is AMAZING I just learned how to code without breaking a sweat, this is really easy and fun!" -Shalonda Lewis
"This course so far is by far amazing! The instructor is very encouraging and up beat." -Moiz Saqib
"It was informative and definitely covered the basics. Easy to understand and to follow." -Colin Mooney