Archives: Docs

Docs

Frontends for Web3 dApps

Login with NEARWhen building decentralized web applications (dApps), developers have two primary options for connecting a front-end user interface (UI) to a smart contract backend. Each option offers distinct advantages and disadvantages, tailored to different project requirements and goals. Standard Web2 Frontend Decentralized Frontend Standard Web 2 Frontend While your user interface layer will remain …

Frontends for Web3 dApps Read More »

Integrating Components

Login with NEARTo integrate Components to your frontend, you will leverage two tools: Wallet Selector: Enables the user to select their preferred NEAR wallet in your dApp. NEAR VM: A package that can retrieve the component’s code from the blockchain and execute it in the browser. Using those tools you will implement the following flow: …

Integrating Components Read More »

Chain Hosted UI tutorial

Login with NEARChain Hosted UI lets you to deploy dApp frontends directly on the NEAR blockchain. In this tutorial you’ll learn how to build and deploy a simple React web app using Chain Hosted UI. warning This experiment reached the MVP stage of functionality but no longer has a maintainer due to Pagoda winding down. …

Chain Hosted UI tutorial Read More »

Chain Hosted UI

Login with NEARChain Hosted UI is a decentralized frontend solution that lets you to deploy dApp frontends directly on the NEAR blockchain. A frontend can be built with typical Web2 tooling (e.g. React + Vite + node.js dependencies), and the resulting compressed bundle can be stored in the state of a smart contract. warning This …

Chain Hosted UI Read More »

Choose your Dev Environment

Login with NEARThe environments in which you can develop Components are divided into two categories: Web Tools: Online tools that allow you to quickly start building and sharing components. Local Tools: Tools that allow you to develop and test components locally. tip andling collaborations If you plan to collaborate with multiple people, we recommend you …

Choose your Dev Environment Read More »

What are NEAR Components?

Login with NEARNEAR Components are a new way to build web applications. They are composable, reusable and decentralized. tip ou can login to interact with the examples in this section. Familiar to Web Developers NEAR Components are built on top of React Components, meaning that they: Handle input through the props variable Handle state through …

What are NEAR Components? Read More »

Yield and Resume

Login with NEARNEAR smart contracts can yield execution, until an external service resumes them. In practice, the contract yields a cross-contract call to itself, until an external service executes a function and the contract decides to resume. This is a powerful feature that allows contracts to wait for external events, such as a response from …

Yield and Resume Read More »

Using components on WebApps

Login with NEARIn order to use the components you create in a WebApp you need to use what is known as the NEAR VM. This virtual machine helps you to easily fetch components from the blockchain and transform them into executable code. There are two possible scenarios: You want to start a WebApp from scratch. …

Using components on WebApps Read More »

SDK Types

Login with NEARLets discuss which types smart contracts use to input and output data, as well as how such data is stored and handled in the contract’s code. ### Native Types Smart contracts can receive, store and return data using JS native types: – `string` – `number` – `boolean` – `Array` – `Map` – `Object` …

SDK Types Read More »

Scroll to Top