Gettings Started

This guide will help you get started with the Lens Storage Nodes.


TypeScript

You can interact with the Lens Storage Nodes via the @lens-protocol/storage-node-client library.

1

Install the Package

First, install the @lens-protocol/storage-node-client package:

npm install @lens-protocol/storage-node-client@latest

2

Instantiate the Client

Then, instantiate the client with the following code:

import { StorageClient, testnet } from "@lens-protocol/storage-node-client";
const storageClient = StorageClient.create(testnet);

That's it—you are now ready to use its methods.

API

You can also interact with the Lens Storage Nodes by means of a RESTful API.

NetworkURL
Testnethttps://storage-api.testnet.lens.dev
MainnetComing soon

In the following guides we will show you how to interact with these API using cURL commands.