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.3.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

[!IMPORTANT] This package is published for use within Circle's SDK packages. Its exports are marked @internal and are not currently a supported public API. They may change between releases without compatibility guarantees.

Applications should not import this package directly.

The package contains Circle Quote API integration used by Unified Balance Kit for FAST cross-chain deposits, including signed fee-quote retrieval and validation. The client wraps POST /v2/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).

Use @circle-fin/unified-balance-kit to estimate and execute deposits:

const estimate = await kit.estimateDeposit({
  from,
  amount: '10',
  token: 'USDC',
  to: { chain: 'Arc_Testnet' },
  config: { transferSpeed: 'FAST' },
})

const result = await kit.deposit({
  ...estimate,
  from,
})

Validating a signed quote

A signed quote is short-lived and bound to the exact on-chain call it will be submitted with. Before you burn, re-check it against the complete contract call via POST /v2/quote/validate/usdc/{sourceDomain}. validateQuote returns whether the quote is still claimable, the failedChecks blocking it (see QUOTE_REJECTION_REASONS), and the authoritative expiry status at the current source-chain tip.

import { validateQuote } from '@circle-fin/provider-fee-v1'

const result = await validateQuote({
  sourceDomain: 3, // Arbitrum CCTP domain
  // The exact function and arguments you will submit on-chain.
  abiSignature:
    'depositForBurnWithHookAndFees(uint256,uint32,bytes32,address,bytes32,bytes,(bytes,address))',
  args: [
    '1000000',
    '26',
    '0x0000000000000000000000001111111111111111111111111111111111111111',
    '0x2222222222222222222222222222222222222222',
    '0x0000000000000000000000000000000000000000000000000000000000000000',
    '0x636374702d666f72776172640000000000000000000000000000000000000000',
    ['0x01abcd', '0x3333333333333333333333333333333333333333'],
  ],
  isTestnet: false,
})

if (result.claimable) {
  console.log('safe to submit', result.expiry.secondsRemaining)
} else {
  console.warn('do not submit', result.failedChecks)
}

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 or expiry.expiresAtBlock); 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.