Docs Category: 716

Cross Contract Call

Login with NEARThis 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 perfect gateway to the world of interoperative contracts. info Advanced Cross-Contract Calls Check the tutorial on how to perform …

Cross Contract Call Read More »

Guest Book

Login with NEAROur Guest Book example is a simple app composed by two main components: A smart contract that stores messages from users, allowing to attach money to them. A simple web-based frontend that displays the last 10 messages posted. Obtaining the Guest book Example You have two options to start the Guest book Example. …

Guest Book Read More »

Self Upgrade & State Migration

Login with NEARThree examples on how to handle updates and state migration: State Migration: How to implement a migrate method to migrate state between contract updates. State Versioning: How to use readily use versioning on a state, to simplify updating it later. Self Update: How to implement a contract that can update itself. State Migration …

Self Upgrade & State Migration Read More »

Factory

Login with NEARA factory is a smart contract that stores a compiled contract on itself, and automatizes deploying it into sub-accounts. We have two factory examples: Token Factory: A factory that creates fungible tokens contracts. A Generic Factory: A factory that creates donation contracts, but allows to change the contract it deploys. info In this …

Factory Read More »

Frontend Interacting with Multiple Contracts

Login with NEARThis example showcases how to interact with multiple contracts from a single frontend. Particularly, this example shows how to: Query data from multiple contracts. Call methods in multiple contracts simultaneously. Query Data from Multiple Contracts To query multiple contracts simply perform multiple view calls: Dispatching Multiple Transactions The wallet object enables to dispatch …

Frontend Interacting with Multiple Contracts Read More »

Count on NEAR

Login with NEAROur counter example is a friendly decentralized app that stores a number and exposes methods to increment, decrement, and reset it. Obtaining the Counter Example You have two options to start the Counter Example. You can use the app through GitHub Codespaces, which will open a web-based interactive environment. Clone the repository locally …

Count on NEAR Read More »

Scroll to Top