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 🙏

© 2025 – Pkg Stats / Ryan Hefner

gasflow-sdk

v0.7.5

Published

Universal Cross-Chain Gas Payment SDK powered by Circle CCTP V2 and Paymaster

Readme

GasFlow SDK

Universal Cross-Chain Gas Payment SDK powered by Circle CCTP V2 and Paymaster

NPM Version GitHub Demo

A universal cross-chain gas payment SDK that enables seamless USDC transfers and gas payments across multiple blockchains using Circle's CCTP V2 and Paymaster technology.

🚀 Features

  • Cross-Chain USDC Transfers: Native USDC transfers using Circle's CCTP V2 burn-and-mint protocol
  • Multi-Chain Balance Aggregation: View USDC balances across all supported chains in one call
  • Gas Payment with USDC: Pay transaction fees using USDC via Circle Paymaster (Beta)
  • Route Optimization: Automatic selection of optimal transfer routes based on cost and speed
  • Real-Time Tracking: Monitor cross-chain transfers with detailed status updates
  • Developer Friendly: TypeScript support with comprehensive documentation

📦 Installation

npm install gasflow-sdk

🚀 Quick Start

import { GasFlowSDK } from 'gasflow-sdk';

// Initialize the SDK
const sdk = new GasFlowSDK({
  apiKey: 'your-circle-api-key',
  environment: 'testnet' // or 'mainnet'
});

// Execute a cross-chain transfer
const result = await sdk.execute({
  fromChain: 'ethereum-sepolia',
  toChain: 'arbitrum-sepolia',
  amount: '100', // 100 USDC
  recipient: '0x...',
  mode: 'fast' // or 'standard'
});

console.log('Transfer completed:', result.transactionHash);

Check Unified Balance

// Get USDC balance across all supported chains
const balance = await sdk.getUnifiedBalance('0x...');
console.log(`Total USDC: ${balance.total}`);
console.log('Per chain:', balance.chains);

Estimate Transaction

// Estimate costs before executing
const estimate = await sdk.estimateTransaction({
  fromChain: 'ethereum-sepolia',
  toChain: 'arbitrum-sepolia',
  amount: '100'
});

console.log('Estimated cost:', estimate.totalCost);
console.log('Estimated time:', estimate.estimatedTime);

🌐 Supported Networks

| Network | Chain ID | USDC Address | Status | |---------|----------|--------------|--------| | Ethereum Sepolia | 11155111 | 0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238 | ✅ Active | | Arbitrum Sepolia | 421614 | 0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d | ✅ Active | | Base Sepolia | 84532 | 0x036CbD53842c5426634e7929541eC2318f3dCF7e | ✅ Active | | Avalanche Fuji | 43113 | 0x5425890298aed601595a70AB815c96711a31Bc65 | ✅ Active | | Polygon Amoy | 80002 | 0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582 | ✅ Active |

🔧 Configuration

Environment Variables

# Required for production CCTP
CIRCLE_API_KEY=your_circle_api_key

# Optional: Custom RPC endpoints
ETHEREUM_SEPOLIA_RPC=your_custom_rpc
ARBITRUM_SEPOLIA_RPC=your_custom_rpc
# ... other chains

Circle API Setup

  1. Sign up at Circle Console
  2. Create a new project
  3. Generate API key for CCTP V2
  4. Use the API key in your SDK configuration

📊 Transfer Modes

| Mode | Speed | Cost | Use Case | |------|-------|------|----------| | Fast | ~30 seconds | Higher gas | Time-sensitive transfers | | Standard | 13-19 minutes | Lower gas | Cost-optimized transfers |

🛡️ Security Features

  • Official Circle Contracts: Only verified CCTP V2 addresses
  • Permit-based Approvals: No unlimited token approvals
  • Private Key Security: Secure key management recommendations
  • Transaction Validation: Multi-layer verification before execution

📚 Documentation & Examples

🤝 Contributing

We welcome contributions! Please see our contributing guidelines and join our development community.

📄 License

MIT License - see LICENSE file for details.

🔗 Links


Built for Circle Developer Bounty 2024 🏆

Simplifying multichain USDC payments for the next generation of dApps