Docs Category: Examples

Coin Flip

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; import {CodeTabs, Language, Github} from "@site/components/codetabs" Coin Flip is a game where the player tries to guess the outcome of a coin flip. It is one of the simplest contracts implementing random numbers. Starting the Game You have two options …

Coin Flip Read More »

Cross Contract Call

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; import {CodeTabs, Language, Github} from "@site/components/codetabs" This example performs the simplest cross-contract call possible: it calls our Hello NEAR example to set and retrieve a greeting. It is one of the simplest examples on making a cross-contract call, and the …

Cross Contract Call Read More »

Hello NEAR

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; import {CodeTabs, Language, Github} from "@site/components/codetabs" Hello NEAR! is a friendly decentralized App that stores a greeting message. It is one of the simplest smart contracts you can create in NEAR, and the perfect gateway to introduce yourself in the …

Hello NEAR Read More »

Donation

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; import {CodeTabs, Language, Github} from "@site/components/codetabs" Our donation example enables to forward money to an account while keeping track of it. It is one of the simplest examples on making a contract receive and send money, and the perfect gateway …

Donation Read More »

Count on NEAR

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; import {CodeTabs, Language, Github} from "@site/components/codetabs" Our counter example is a decentralized app that stores a number and exposes methods to increment, decrement, and reset it. It also features a friendly frontend with a smiling handheld console. Starting the Counter …

Count on NEAR Read More »

Scroll to Top
Report a bug👀