@meteora-ag/met-lock-sdk
v1.0.1
Published
A Typescript SDK for interacting with the Lock Program on Meteora.
Downloads
768
Readme
Meteora Lock SDK
A Typescript SDK for interacting with the Lock Program on Meteora.
Overview
This SDK provides a set of tools and methods to interact with the Meteora Lock Program. It enables developers to easily lock vest tokens.
Installation
npm install @meteora-ag/met-lock-sdk
# or
pnpm install @meteora-ag/met-lock-sdk
# or
yarn add @meteora-ag/met-lock-sdkInitialization
import { Connection } from "@solana/web3.js";
import { LockClient } from "@meteora-ag/met-lock-sdk";
const connection = new Connection("https://api.mainnet-beta.solana.com");
const client = new LockClient(connection, "confirmed");Usage
Refer to the docs for how to use the functions.
Flow
The generic flow of how Lock works is as follows:
- Create and fund a vesting escrow using
createVestingEscrowV2. - Users can claim the escrow using
claimV2.
Program Address
- Mainnet-beta:
LocpQgucEQHbqNABEYvBvwoxCPsSbG91A1QaQhQQqjn - Devnet:
LocpQgucEQHbqNABEYvBvwoxCPsSbG91A1QaQhQQqjn
