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

v0.2.0

Published

Lombard Action Provider for Coinbase AgentKit - stake BTC, mint LBTC, and interact with DeFi via AI agents

Readme

@lombard.finance/sdk-agentkit

Coinbase AgentKit ActionProvider for the Lombard protocol. Enables AI agents built with AgentKit to stake Bitcoin, mint LBTC, check balances, and deploy to DeFi vaults.

Installation

npm install @lombard.finance/sdk-agentkit
# or
yarn add @lombard.finance/sdk-agentkit

Peer Dependencies

npm install @coinbase/agentkit viem zod

Quick Start

import { lombardActionProvider } from "@lombard.finance/sdk-agentkit";
import { AgentKit } from "@coinbase/agentkit";

const agentkit = await AgentKit.from({
  walletProvider,
  actionProviders: [lombardActionProvider()],
});

// Agent now has access to all Lombard actions
const actions = agentkit.getActions();

With LangChain

import { lombardActionProvider } from "@lombard.finance/sdk-agentkit";
import { AgentKit } from "@coinbase/agentkit";
import { getLangChainTools } from "@coinbase/agentkit-langchain";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const agentkit = await AgentKit.from({
  walletProvider,
  actionProviders: [lombardActionProvider()],
});

const tools = getLangChainTools(agentkit);
const agent = createReactAgent({ llm: yourModel, tools });

Available Actions

Write Actions

| Action | Description | | ------ | ----------- | | stake_btcb_to_lbtc | Stake BTC.b to receive LBTC. Handles approval and fee authorization automatically | | unstake_lbtc_to_btc | Unstake LBTC to native BTC (cross-chain) or BTC.b (same-chain) | | redeem_lbtc_to_btcb | Simple same-chain LBTC to BTC.b conversion | | deploy_to_earn | Deploy LBTC into a DeFi vault (Bitcoin Earn) for additional yield | | claim_lbtc_deposit | Claim a notarized BTC deposit to mint LBTC |

Read Actions

| Action | Description | | ------ | ----------- | | get_lbtc_balance | Check LBTC balance for any address on the current chain | | get_btcb_balance | Check BTC.b balance for any address on the current chain | | get_lbtc_exchange_rate | Current LBTC/BTC exchange rate and minimum stake amount | | get_deposit_status | Track all deposits (pending, claimable, claimed, failed) | | get_redemption_status | Track all unstake and redemption operations |

Supported Networks

| AgentKit Network ID | Chain | Environment | | ------------------- | ----- | ----------- | | ethereum-mainnet | Ethereum | Production | | ethereum-sepolia | Ethereum Sepolia | Testnet | | base-mainnet | Base | Production | | base-sepolia | Base Sepolia | Testnet |

Network aliases are also accepted: ethereum, eth, mainnet, sepolia, base, base-sep.

How It Works

The LombardActionProvider bridges Coinbase AgentKit and the Lombard SDK:

  1. Network mapping: Translates AgentKit network IDs to Lombard chain configuration
  2. Wallet adaptation: Converts AgentKit's wallet provider to EIP-1193 for the Lombard SDK
  3. Automatic approvals: Checks and sets token allowances before transactions
  4. Fee authorization: Handles EIP-712 fee signatures on chains that require them (Ethereum, Sepolia)
  5. Error sanitization: Strips RPC URLs and sensitive data from error messages

All write actions execute real on-chain transactions through the AgentKit wallet.

Utilities

import {
  resolveNetwork,
  resolveChainName,
  isLombardSupportedNetwork,
} from "@lombard.finance/sdk-agentkit";

// Check if a network is supported
isLombardSupportedNetwork(network); // boolean

// Resolve AgentKit network to Lombard config
const resolved = resolveNetwork(network);
// { chainId, env, networkId }

// Resolve by friendly name
const resolved = resolveChainName("ethereum");
// { chainId: 1, env: "prod", networkId: "ethereum-mainnet" }

Requirements

  • Node.js: 18+
  • @coinbase/agentkit: 0.2+
  • viem: 2.21+

License

MIT