Docs Category: near-components

Smart Contract Interaction

Login with NEARYour frontend can interact with different blockchains using the built-in BOS API. Let’s see how to create an application that reads and stores a greeting from a NEAR smart contract. View of our Hello Near app when the user is logged-in info Check the finished example at [near.social code page](https://near.social/#/mob.near/widget/WidgetSource?src=gagdiez.near/widget/HelloNear). The Contract We …

Smart Contract Interaction Read More »

Using IFrames

Login with NEARIframes In this tutorial you’ll learn how to use the iframe VM tag and the Iframe resizer library, so you can embed external HTML or use custom DOM elements when building NEAR components. You can use it along the rest of approved VM tags to simplify your component development. Using IFrames on NEAR …

Using IFrames Read More »

Push Notifications

Login with NEARPush messages enable your gateway to send notifications on desktop and mobile devices even when the users are not active. To implement push notifications, you need to: Create a Service Worker Ask the user for permission to send push notifications Send the client identifier information to our notification server Add logic to display …

Push Notifications Read More »

Design Components

Login with NEARDesign System Components When building components, the NEAR VM provides a complete set of Radix primitives to simplify UI development. Radix UI Using embedded Radix primitives on the NEAR VM is simple and straight-forward. You don’t need to import any files: return ( <Label.Root className=”LabelRoot”> Hello World! </Label.Root> ); :::caution Limitations Currently, NEAR …

Design Components Read More »

Lido Example

Login with NEARHello Lido! If you are ready to explore further, the Lido component serves as an excellent fully-fledged example, as it demonstrates how to interact with a smart contract deployed on the Ethereum mainnet. info Ethers.js This component uses the [Ethers JavaScript](https://ethers.org) library to interact with Ethereum smart contracts. Follow [this link](https://docs.ethers.org/v6/) for the …

Lido Example Read More »

NEAR for Ethereum developers

Login with NEARNEAR components are chain-agnostic, enabling you to create decentralized frontends tailored for any Ethereum dApps. Throughout this article, we’ll navigate prevalent use-cases with code snippets. You’ll also find links to exemplary NEAR components for reference. Interact with Ethereum using Ethers.js The NEAR VM has imported the Ethers.js library, allowing for seamless interaction with …

NEAR for Ethereum developers Read More »

Scroll to Top