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

coinrailz-agentkit

v1.1.0

Published

Coinbase AgentKit action provider for CoinRailz USDC yield vault on Base. 6 actions: deposit, deposit_permit (1-tx EIP-2612), redeem, check_position, get_rates, get_contract_info.

Downloads

319

Readme

coinrailz-agentkit

Coinbase AgentKit action provider for the CoinRailz USDC Yield Vault on Base.

5 actions:

  • coinrailz_yield_deposit — approve + deposit USDC (2 txs, works with any wallet)
  • coinrailz_yield_deposit_permit — EIP-2612 permit deposit (1 tx, requires signTypedData)
  • coinrailz_yield_redeem — redeem crUSDC shares for USDC (1 tx, 0% exit fee)
  • coinrailz_yield_check_position — live on-chain position query
  • coinrailz_yield_get_rates — live APY across Aave v3, Compound v3, Morpho Blue

Vault: 0x86e2508ca0de34530dc847645f60f0d46d95176a (Base mainnet, ERC-4626)
Auto-routes to highest-yield protocol. 0.5% entry fee, 15% performance fee on yield, 0% exit.

Install

npm install coinrailz-agentkit

Usage with Coinbase AgentKit

import { AgentKit } from '@coinbase/agentkit'
import { CoinRailzYieldActionProvider } from 'coinrailz-agentkit'

const agentKit = await AgentKit.from({
  walletProvider,
  actionProviders: [
    new CoinRailzYieldActionProvider(),
  ],
})

// Your agent now understands:
// "Deposit $100 USDC to earn yield"
// "Check my current yield position"
// "What APY am I earning?"
// "Withdraw my USDC"
// "Deposit $50 USDC in a single transaction"  ← uses permit

Usage standalone (no AgentKit)

import { CoinRailzYieldActionProvider } from 'coinrailz-agentkit'

const provider = new CoinRailzYieldActionProvider()

// Deposit $100 USDC
const result = await provider.deposit(walletProvider, { amount_usd: 100 })
console.log(result) // "✅ Deposited $100 USDC..."

// 1-tx permit deposit (requires wallet.signTypedData)
const result2 = await provider.depositPermit(walletProvider, { amount_usd: 100 })

// Check position
const pos = await provider.checkPosition(walletProvider, {})

// Withdraw all
const redeem = await provider.redeem(walletProvider, {})

Permit vs Standard Deposit

| Mode | Transactions | Requires | |------|-------------|----------| | coinrailz_yield_deposit | 2 (approve + deposit) | Any EVM wallet | | coinrailz_yield_deposit_permit | 1 (permit + deposit) | wallet.signTypedData |

The permit flow uses EIP-2612 (supported by USDC on Base) and routes through the PermitAndDeposit helper contract.

Wallet Provider Interface

Your wallet must implement:

interface EvmWalletProvider {
  getAddress(): string
  sendTransaction(tx: { to: `0x${string}`; data: `0x${string}` }): Promise<`0x${string}`>
  waitForTransactionReceipt(hash: `0x${string}`): Promise<{ status: string }>
  readContract(params: { address: `0x${string}`; abi: ...; functionName: string; args?: ... }): Promise<unknown>
  signTypedData?(params: { domain; types; primaryType; message }): Promise<`0x${string}`>  // optional, for permit
}

Coinbase AgentKit's EvmWalletProvider, CDP SDK wallets, viem WalletClient, and ethers Signer all satisfy this interface with minor adapters.

Links