Skip to content

About

A Typescript SDK for configuring lock escrow using the Locker Program

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-sdk

Initialization

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:

  1. Create and fund a vesting escrow using createVestingEscrowV2.
  2. Users can claim the escrow using claimV2.

Program Address

  • Mainnet-beta: LocpQgucEQHbqNABEYvBvwoxCPsSbG91A1QaQhQQqjn
  • Devnet: LocpQgucEQHbqNABEYvBvwoxCPsSbG91A1QaQhQQqjn

About

A Typescript SDK for configuring lock escrow using the Locker Program

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages