
Product
Announcing Bun and vlt Support in Socket
Bringing supply chain security to the next generation of JavaScript package managers
@lens-network/sdk
Advanced tools
The official SDK for the Lens Network 🌿.
pnpm add @lens-network/sdk
# or
npm install @lens-network/sdk
# or
yarn add @lens-network/sdk
This section is for developers who want to contribute to the SDK.
If you use nvm to manage your Node.js versions, you can run:
nvm use
to switch to the correct Node.js version.
We recommend to have corepack enabled to automatically have the correct version of pnpm.
Clone the repository:
git clone https://github.com/lens-network/sdk.git
Install the dependencies:
pnpm install
Create .env file from the .env.example template:
cp .env.example .env
and populate the PRIVATE_KEY environment variable:
PRIVATE_KEY=0x…
with the private key of an account with Lens Network tokens.
[!TIP] Use a Sepolia faucet (e.g., Alchemy Sepolia Faucer) to get some SepoliaETH and then bridge them to the Lens Network.
Run the tests:
pnpm test
Run tests tagged with write:
[!WARNING] These tests requires funds in the account specified within the
.envfile.
pnpm test:write
Lint the code:
pnpm lint
Compile the code:
pnpm build
Clean the build:
pnpm clean
Create a new release branch using the release/X.Y.Z naming convention.
Bumps up version number and updates the changelog.
pnpm changeset version
Commit the changes using chore: bumps up version number as the commit message.
Push the changes to the remote repository.
Open a pull request to the main branch.
Wait for all checks to pass and for the pull request to be approved.
Publish the package.
pnpm changeset publish
Push tags to the remote repository.
git push --follow-tags
Merge the pull request to the main branch.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Lens Network SDK is MIT licensed
FAQs
The quickest way to connect your dApp to the Lens Network.
We found that @lens-network/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.