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 🙏

© 2024 – Pkg Stats / Ryan Hefner

pumpfun-api-cryptoscan

v1.0.0

Published

A TypeScript API wrapper for interacting with PumpFun on Solana blockchain.

Downloads

54

Readme

PumpFun API - Cryptoscan

A TypeScript API wrapper for interacting with PumpFun on Solana blockchain.

Current Price: $900 Contacts: https://t.me/dan_cryptoscan

What you get:

  • Free setup into your hosting.
  • Free help to integrate app to your server
  • Full access to the codebase and code updates
  • Free updates for app, you can request for free updates via access to issues
  • Full access to Project Time tracking by developers

Features

  • Create buy/sell transactions for PumpFun tokens
  • Get real-time rates and price information
  • Fetch coin details
  • WebSocket support for real-time updates
  • Built-in retry mechanisms and error handling
  • Proxy support for requests

Installation

npm install pumpfun-api

Quick Start

import { PumpFunApi } from 'pumpfun-api';

// Create instance with default settings
const api = new PumpFunApi();

// Or with custom parameters
const api = new PumpFunApi({
  buySlippage: 1,
  sellSlippage: 5,
  // custom connection and request handlers
});

API Methods

Get Coin Information

const coinInfo = await api.getCoin("COIN_ADDRESS");

Get Exchange Rate

const rate = await api.getRate({
  from: "sol",
  to: "COIN_ADDRESS",
  amount: 1
});

Create Transaction

const transaction = await api.createTransaction({
  to: "DESTINATION_ADDRESS",
  from: "SOURCE_ADDRESS",
  amount: 1,
  walletAddress: "WALLET_ADDRESS",
  slippage: 1
});

Listen to Price Updates

api.listenCoinBump("COIN_ADDRESS", (coin) => {
  console.log("New price update:", coin);
});

REST API Endpoints

The package includes a Hono-based HTTP server with the following endpoints:

  • GET /coin?address=<address> - Get coin information
  • GET /rate?from=<from>&to=<to>&amount=<amount> - Get exchange rate
  • GET /createTransaction - Create a new transaction

Configuration

Default parameters:

  • Buy slippage: 1%
  • Sell slippage: 5%
  • Network: Solana Mainnet

Error Handling

The API includes built-in retry mechanisms for network requests and comprehensive error messages. All methods will throw errors with descriptive messages when operations fail.

WebSocket Support

Real-time updates are available through WebSocket connections, with automatic reconnection handling and error recovery.

Requirements

  • Node.js 14+
  • Solana Web3.js
  • Active internet connection

License

ISC