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

@circle-fin/provider-fee-v1

v0.1.2

Published

Client for Circle's Quote API that fetches signed fee quotes for the prepaid FORWARD fast-deposit path of a CCTP v2 USDC burn.

Readme

@circle-fin/provider-fee-v1

Fee-quote client for Circle's Quote API (hosted in Iris). It fetches a signed quote for the prepaid FORWARD fast-deposit path, the price source for a cross-chain CCTP v2 burn submitted through TokenMessengerWithFees. There is no on-chain fee oracle: the signed quote returned here is passed verbatim into the on-chain QuoteClaim.

The client wraps POST /v1/quote/burn/usdc/{sourceDomain}/{destinationDomain}. The endpoint is permissionless (no auth) and edge rate-limited, and is feature-flagged per source chain (a disabled chain returns 503 SERVICE_NOT_ENABLED, surfaced as a fatal, non-retryable error).

Usage

import {
  fetchFeeQuote,
  hydrateForwardRequest,
} from '@circle-fin/provider-fee-v1'

// Bind the FORWARD quote to the EXACT hookData you will burn with on-chain.
// The signed quote covers these bytes; submitting different bytes reverts.
// This is the full 32-byte cctp-forward-framed hookData: the 12-byte
// "cctp-forward" prefix right-padded to 24 bytes, then a uint32 version and a
// uint32 length. It matches what `buildForwardingHookData()` produces.
const requests = hydrateForwardRequest(
  [{ type: 'FORWARD' }, { type: 'PRE_FINALITY' }],
  {
    hookData:
      '0x636374702d666f72776172640000000000000000000000000000000000000000',
    destinationCaller: '0xFa7be2f04F3Ad4ca969260729c6d45B5625984A7',
  },
)

const quote = await fetchFeeQuote({
  sourceDomain: 3, // Arbitrum CCTP domain
  destinationDomain: 26, // Arc CCTP domain
  amount: '1000000', // 1 USDC, in minor units
  requests,
  isTestnet: false,
})

console.log(quote.feeTotalAmount, quote.feeToken, quote.expiry.expiresAt)
// quote.signedQuote -> the on-chain QuoteClaim (kept out of logs).

Notes

  • amount is a decimal string in token minor units.
  • feeToken defaults to the zero address (native); pass a USDC address to pay fees in USDC.
  • The quote is short-lived (expiry.expiresAt / expiry.mode); fetch a fresh quote immediately before submitting on-chain rather than caching it.
  • signedQuote is opaque bytes returned verbatim; do not decode it.
  • The client makes a single attempt (no transport retry/backoff). The endpoint is edge rate-limited, so on a 429 the caller should back off and re-request rather than expecting the client to retry.