Skip to main content
This guide provides instructions on how to get started with building on Meteora’s Meteora Lock program using the Meteora Lock TypeScript SDK. Before you begin, here are some important resources:

Installation

To use the SDK in your project, install it using your preferred package manager:
  • npm
  • pnpm
  • yarn
npm install @meteora-ag/met-lock-sdk @solana/web3.js

Initialization

Once installed, you can initialize the SDK in your TypeScript/JavaScript project like this:
import { Connection } from "@solana/web3.js";
import { LockClient } from "@meteora-ag/met-lock-sdk";

// Initialize a connection to the Solana network (e.g., Mainnet)
const connection = new Connection("https://api.mainnet-beta.solana.com");

// Create a new instance of the LockClient
const client = new LockClient(connection, "confirmed");

Development Resources

Faucets

I