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

@epicchain/epicvault-api

v1.0.1

Published

The EpicVault-API Module is an advanced API layer built on top of the EpicVault-JS Core, providing an enhanced interface for seamless interaction with the EpicVault platform.

Readme

epicvault-api

Overview

The epicvault-api package provides high-level functionality for crafting and managing transactions within the EpicVault ecosystem. This package is designed to simplify the process of interacting with the EpicVault platform, which is a crucial part of the EpicChain blockchain. It enables developers to build robust and scalable applications by facilitating seamless interactions with the platform's core functionality.

EpicVault is designed to be a decentralized finance (DeFi) platform that includes features like liquidity pools, yield farming, automated market makers (AMMs), and much more. With epicvault-api, you can easily integrate these features into your applications and interact with the blockchain using the most efficient and effective methods.

Features

  • Transaction Creation: Easily craft transactions for interaction with the EpicVault platform.
  • Blockchain Interaction: Interact with the EpicVault core functionality and retrieve data from the blockchain.
  • Liquidity Management: Manage liquidity pools and execute smart contracts for decentralized finance.
  • Cross-Chain Compatibility: Integrate with multiple blockchain networks to ensure your application’s scalability and reach.
  • Yield Farming and Staking: Enable users to stake their tokens and earn rewards in the EpicVault ecosystem.
  • Security: Built-in security measures to ensure transactions are executed safely and reliably.
  • Optimized Performance: Designed for high performance, supporting quick and efficient transaction processing.

Installation

To begin using the epicvault-api, you’ll first need to install both the epicvault-api and epicvault-core packages. This can be done easily with npm or yarn.

Using npm:

npm install @epicchain/epicvault-api @epicchain/epicvault-core

Using yarn:

yarn add @epicchain/epicvault-api @epicchain/epicvault-core

Setup and Configuration

Before using the API, you'll need to configure the environment for accessing the EpicVault platform. This includes setting up the EpicVault network, API keys (if needed), and any other necessary configuration parameters.

Example Configuration:

const { EpicVaultAPI } = require('@epicchain/epicvault-api');
const { EpicVaultCore } = require('@epicchain/epicvault-core');

const api = new EpicVaultAPI({
  network: 'mainnet', // or 'testnet' depending on your environment
  apiKey: 'your-api-key-here', // optional, if the API requires authentication
});

const core = new EpicVaultCore({
  privateKey: 'your-wallet-private-key-here',
  rpcUrl: 'https://your-epicchain-node-url',
});

Usage

The epicvault-api offers a variety of functions to interact with the EpicVault platform. Below are some common use cases for the API.

Example 1: Creating a Transaction

To create a transaction on the EpicVault platform, you can use the following method:

const { EpicVaultAPI } = require('@epicchain/epicvault-api');

const api = new EpicVaultAPI();

// Create a transaction object
const transaction = {
  from: '0xYourWalletAddress',
  to: '0xReceiverAddress',
  amount: '1000', // Amount of tokens to send
  token: 'XPR', // Token type (EpicChain token)
};

// Send transaction
async function sendTransaction() {
  try {
    const txHash = await api.createTransaction(transaction);
    console.log('Transaction Hash:', txHash);
  } catch (error) {
    console.error('Error sending transaction:', error);
  }
}

sendTransaction();

Example 2: Interacting with Liquidity Pools

You can interact with liquidity pools on the EpicVault platform to add or remove liquidity, perform swaps, and more.

const { EpicVaultCore } = require('@epicchain/epicvault-core');
const { EpicVaultAPI } = require('@epicchain/epicvault-api');

const core = new EpicVaultCore({ privateKey: 'your-wallet-private-key' });
const api = new EpicVaultAPI();

// Example of adding liquidity to a pool
async function addLiquidity() {
  const liquidityDetails = {
    poolId: '0xLiquidityPoolId',
    tokenA: 'XPR', // Token A in the pair
    tokenB: 'XPP', // Token B in the pair
    amountA: '1000', // Amount of Token A to add
    amountB: '500',  // Amount of Token B to add
  };

  try {
    const transaction = await api.addLiquidity(liquidityDetails);
    console.log('Liquidity Added:', transaction);
  } catch (error) {
    console.error('Error adding liquidity:', error);
  }
}

addLiquidity();

Example 3: Querying Blockchain Data

You can query blockchain data such as transaction history, account balances, and more using the API.

async function getAccountBalance(address) {
  try {
    const balance = await api.getAccountBalance(address);
    console.log(`Account Balance for ${address}:`, balance);
  } catch (error) {
    console.error('Error retrieving account balance:', error);
  }
}

getAccountBalance('0xYourWalletAddress');

Documentation

For further details on API methods and how to use the library, please refer to the official documentation (coming soon). The documentation will cover all available API endpoints, examples, and best practices for integrating EpicVault with your applications.

Contributing

We welcome contributions to this project! If you'd like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Write tests for any new features or changes.
  4. Ensure all existing tests pass.
  5. Submit a pull request with a detailed description of your changes.

Code of Conduct

We expect all contributors to adhere to our Code of Conduct. Please be respectful and professional in all communications and contributions.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For any inquiries or issues related to the epicvault-api, please feel free to reach out to our support team:

Roadmap

We are continuously improving the epicvault-api package. Here are some of the planned features:

  • Integration with additional blockchains for greater interoperability.
  • Advanced transaction handling to support complex multi-step operations.
  • Better error handling and debugging tools.
  • Additional smart contract features for deeper integration with the EpicVault platform.

Contact

For more information about EpicChain or the EpicVault platform, feel free to get in touch with the EpicChain team: