npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lombard.finance/sdk-starknet

v0.3.0

Published

The Lombard's Starknet SDK package provides a set of functions that allow interacting with the Lombard protocol and its features.

Readme

@lombard.finance/sdk-starknet

The Lombard's Starknet SDK package provides a set of functions that allow interacting with the Lombard protocol and its features.

Read more about Lombard's mission: https://www.lombard.finance

⚠️ THIS PACKAGE IS EXPERIMENTAL USE AT YOUR OWN RISK!

Installation

Installing per dependencies

npm install @noble/hashes@^1.7.2 axios@^1 bignumber.js@^9

Installing SDK

npm install @lombard.finance/sdk-common@^3.3.0 @lombard.finance/sdk@^3.6.0 @lombard.finance/sdk-starknet

Usage

Getting or generating the BTC deposit address

import {
  Env,
  generateDepositBtcAddress,
  getDepositBtcAddress,
} from '@lombard.finance/sdk';
import { signLbtcDestinationAddrStarknet } from '@lombard.finance/sdk-starknet';

let depositAddress = await getDepositBtcAddress({
  address: walletAccount.address, // connected wallet address,
  chainId: StarknetChainId.SN_SEPOLIA, // the chain identifier, other available options are: StarknetChainId.SN_MAIN
  env: Env.stage, // the environment, use Env.stage for StarknetChainId.SN_SEPOLIA testing,
  partnerId: ENV_PARTNER_ID, // your partner id
});

if (!depositAddress) {
  // Step 1: sign destination address
  const sig = await signLbtcDestinationAddrStarknet({
    walletAccount: walletAccount, // connected wallet account
    chainId: StarknetChainId.SN_SEPOLIA, // the chain identifier, other available options are: StarknetChainId.SN_MAIN
  });

  // Step 2: generate address
  depositAddress = await generateDepositBtcAddress({
    address: walletAccount.address, // connected wallet address,
    chainId: StarknetChainId.SN_SEPOLIA, // the chain identifier, other available options are: StarknetChainId.SN_MAIN
    signature: sig.signatureHex, // the signature hex from step 1
    pubKey: sig.pubKey, // the pubkey from step 1
    env: Env.stage, // the environment, use Env.stage for StarknetChainId.SN_SEPOLIA testing,
    partnerId: ENV_PARTNER_ID, // your partner id
  });
}

Deposit status

import { getDepositsByAddress } from '@lombard.finance/sdk';

const deposits = await getDepositsByAddress({
  address: walletAccount.address, // connected wallet address,
  env: Env.stage, // the environment, use Env.stage for StarknetChainId.SN_SEPOLIA testing,
});

The above results with an array of:

  • txid: string; - The BTC transaction id,
  • index?: number; - The index of the BTC transaction,
  • value: BigNumber; - The deposit amount,
  • address: Address; - The source address,
  • chainId: ChainId | SuiChain | SolanaChain | StarknetChain; -
  • isClaimed?: boolean; - A flag determining whether the particular deposit has been claimed,
  • claimedTxId?: string; - The claimed transaction id,
  • rawPayload?: string; - The raw deposit payload,
  • signature?: string; - The deposit signature,
  • notarizationWaitDur?: Seconds; - Approx. number of seconds until notarization completed,
  • payload?: string; - The deposit payload,
  • notarizationStatus: ENotarizationStatus; - The notarization status.

Minting LBTC

import { mint, Token } from '@lombard.finance/sdk-starknet';

const mintParams = {
  amount: d.value, // The deposit amount
  depositIndex: d.index, // The index of the BTC transaction
  depositPayload: d.rawPayload, // The raw deposit payload
  depositProofSignature: d.signature, // The deposit signature
  depositTxId: d.txid, // The BTC transaction id
  token: Token.LBTC, // The token identifier
  walletAccount: walletAccount, // connected wallet account
};

const txHash = await mint(mintParams);

Checking the balance of LBTC

import { balanceOf, Token, StarknetChain } from '@lombard.finance/sdk-starknet';

const tokenBalance = await balanceOf({
  account: walletAccount, // an instance of the WalletAccount class
  token: Token.LBTC, // the token identifier, other available tokens are: Token.ETH and Token.STRK
  chainId: StarknetChainId.SN_SEPOLIA, // the chain identifier, other available options are: StarknetChainId.SN_MAIN
});

Redeeming LBTC

import { redeem, Token } from '@lombard.finance/sdk-starknet';

const txHash = await redeem({
  amount: amount, // amount to be redeemed, e.g. `BigNumber(0.02)`
  btcAddress: btcAddress, // the BTC destination address
  token: Token.LBTC, // The token identifier
  walletAccount: walletAccount, // connected wallet account
});