Docs Category: Api

Social API

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; VM provides a convenient API to get data from the SocialDB contract. There are four methods: Social.get Social.getr Social.index Social.keys Social.set Social.get Social.get fetches the data from the SocialDB contract by calling get and returns the data. While the data …

Social API Read More »

Introduction

To Share and +4 nLEARNs Login with NEARBOS provides a complete API to allow your components to interact with different blockchains, websites, and store data in a decentralized way. Custom objects: Social – the SocialDB API. State – the state updates API. Near – the NEAR API. Clipboard – the clipboard API. Standard objects: JSON …

Introduction Read More »

Primitives API

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; Near Social VM provides a set of custom APIs that can be used by the components. Standard objects: JSON – the JSON API. Object – the Object API. Date console – the console API. Math Array Number Buffer Audio Image …

Primitives API Read More »

Fetch API

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; fetch fetch is a global function that allows to fetch data from the URL. It acts like a hook. It’s a wrapper around the fetch function from the browser behind the caching layer. It’s useful for fetching data from the …

Fetch API Read More »

Cache API

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; The VM implements caching layer for most network requests. You can leverage it manually by using useCache hook. useCache The method acts like a hook that takes a promise through a generator function, fetches the data and caches it. The …

Cache API Read More »

Clipboard API

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; The VM implements a clipboard API that works like Mozilla’s Clipboard, providing write access to the contents of the system clipboard. The Clipboard API can be used to implement cut, copy, and paste features within a web application. ::info For …

Clipboard API Read More »

Scroll to Top
Report a bug👀