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

celeriz-sdk

v1.0.7

Published

A modern, type-safe SDK for blockchain wallet management and transactions

Readme

Celeriz SDK

Celeriz SDK Version License TypeScript

A modern, type-safe SDK for blockchain wallet management, transactions, and fiat on/off ramping.

DocumentationInstallationQuick StartAPI ReferenceExamples

Installation

# Using npm
npm install celeriz

# Using yarn
yarn add celeriz

# Using pnpm
pnpm add celeriz

Quick Start

import { Celeriz } from 'celeriz';

// Initialize the SDK
const celeriz = new Celeriz({
  apiKey: 'your-api-key'
});

// Create a new wallet
const wallet = await celeriz.createWallet({
  network: 'Ethereum',
  name: 'My Wallet'
});

console.log('Wallet created:', wallet.address);

Documentation

Initialization

const celeriz = new Celeriz({
  apiKey: string;      // Your Celeriz API key
  baseUrl?: string;    // Optional, defaults to 'https://api.celeriz.com'
});

Wallet Management

Create Wallet

const wallet = await celeriz.createWallet({
  network: 'Ethereum' | 'Base' | 'ArbitrumOne' | 'Optimism' | 'Polygon';
  name?: string;       // Optional wallet name
  clientId?: string;   // Optional client identifier
  tags?: string[];     // Optional tags for organization
});

Get Wallet

const wallet = await celeriz.getWallet(walletId: string);

List Wallets

const wallets = await celeriz.listWallets({
  limit?: number;      // Number of wallets to return
  cursor?: string;     // Pagination cursor
  externalId?: string; // Filter by external ID
});

Transactions

Sign Message

const signature = await celeriz.signMessage({
  walletId: string;
  message: string;
});

Sign Transaction

const signedTx = await celeriz.signTransaction({
  walletId: string;
  transaction: string;
});

Broadcast Transaction

const txHash = await celeriz.broadcastTransaction({
  walletId: string;
  transaction: string;
  kind?: 'Json';       // Optional transaction kind
  externalId?: string; // Optional external identifier
});

Balance

Get Wallet Balance

const balances = await celeriz.getWalletBalance({
  walletId: string;
});

Fiat On/Off Ramping

Get Onramp Quotes

const quotes = await celeriz.getOnrampQuotes({
  sourceCurrency: string;    // Fiat currency (e.g., 'USD')
  destinationCurrency: string; // Crypto currency (e.g., 'ETH')
  amount: string;            // Amount in source currency
});

Create Onramp Order

const order = await celeriz.createOnrampOrder({
  quoteId: string;
  walletId: string;
  sourceCurrency: string;
  destinationCurrency: string;
  sourceAmount: string;
  destinationAmount: string;
  paymentMethod: 'card' | 'bank_transfer';
  redirectUrl?: string;
  metadata?: Record<string, any>;
});

Get Onramp Order Status

const order = await celeriz.getOnrampOrder(orderId: string);

Get Offramp Quotes

const quotes = await celeriz.getOfframpQuotes({
  sourceCurrency: string;    // Crypto currency (e.g., 'ETH')
  destinationCurrency: string; // Fiat currency (e.g., 'USD')
  amount: string;            // Amount in source currency
});

Create Offramp Order

const order = await celeriz.createOfframpOrder({
  quoteId: string;
  walletId: string;
  sourceCurrency: string;
  destinationCurrency: string;
  sourceAmount: string;
  destinationAmount: string;
  destinationAddress: string; // Bank account or other fiat destination
  metadata?: Record<string, any>;
});

Get Offramp Order Status

const order = await celeriz.getOfframpOrder(orderId: string);

Examples

Creating and Managing Wallets

// Create a new wallet
const wallet = await celeriz.createWallet({
  network: 'Ethereum',
  name: 'Trading Wallet',
  tags: ['trading', 'active']
});

// Get wallet details
const details = await celeriz.getWallet(wallet.id);

// List all wallets
const wallets = await celeriz.listWallets({
  limit: 10
});

Transaction Operations

// Sign a message
const signature = await celeriz.signMessage({
  walletId: wallet.id,
  message: 'Hello, Blockchain!'
});

// Sign and broadcast a transaction
const signedTx = await celeriz.signTransaction({
  walletId: wallet.id,
  transaction: '0x...'
});

const txHash = await celeriz.broadcastTransaction({
  walletId: wallet.id,
  transaction: signedTx
});

Fiat On/Off Ramping

// Get onramp quotes for converting USD to ETH
const quotes = await celeriz.getOnrampQuotes({
  sourceCurrency: 'USD',
  destinationCurrency: 'ETH',
  amount: '100'
});

// Create an onramp order
const order = await celeriz.createOnrampOrder({
  quoteId: quotes[0].id,
  walletId: wallet.id,
  sourceCurrency: 'USD',
  destinationCurrency: 'ETH',
  sourceAmount: '100',
  destinationAmount: '0.05',
  paymentMethod: 'card',
  redirectUrl: 'https://your-app.com/callback'
});

// Get offramp quotes for converting ETH to USD
const offrampQuotes = await celeriz.getOfframpQuotes({
  sourceCurrency: 'ETH',
  destinationCurrency: 'USD',
  amount: '0.1'
});

// Create an offramp order
const offrampOrder = await celeriz.createOfframpOrder({
  quoteId: offrampQuotes[0].id,
  walletId: wallet.id,
  sourceCurrency: 'ETH',
  destinationCurrency: 'USD',
  sourceAmount: '0.1',
  destinationAmount: '200',
  destinationAddress: '0x...' // Bank account or other fiat destination
});

Error Handling

All methods throw errors with descriptive messages:

try {
  const wallet = await celeriz.createWallet({
    network: 'Ethereum',
    name: 'My Wallet'
  });
} catch (error) {
  console.error('Failed to create wallet:', error.message);
}

Supported Networks

  • Ethereum
  • Base
  • Arbitrum One
  • Optimism
  • Polygon

Development

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Lint
npm run lint

# Format code
npm run format

License

MIT

Support

Links