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-dappkit

v1.0.7

Published

<p align="center"> <img src="/.github/resources/images/coz.png" width="200px;"> </p>

Readme

EpicVault-DappKit

EpicVault-DappKit is the easiest way to build a dApp on EpicChain. Suitable to connect Web Applications, Off-chain JS Servers, and React-Native Apps to the EpicChain Blockchain. The toolkit offers developers a comprehensive solution for interacting with the EpicChain blockchain while maintaining simplicity and flexibility in development.

WalletConnectSDK uses EpicVault-DappKit Types, so you can easily swap between EpicVault-DappKit implementation and WalletConnectSDK on the fly and reuse code, check the guide.

Why Use EpicVault-DappKit?

EpicVault-DappKit stands out due to its robust feature set and developer-friendly approach. Here’s why you should consider it:

  • Ease of Integration: Integrate with EpicChain in a few simple steps.
  • Comprehensive Features: Includes tools for invoking smart contracts, parsing blockchain data, signing transactions, and listening to blockchain events.
  • Performance-Oriented: Built with a focus on efficiency and minimal resource usage.
  • Cross-Platform Support: Works seamlessly across web applications, server-side environments, and mobile platforms.

Installation

To install the package, simply run:

npm i @epicchain/epicvault-dappkit

In the vite.config.ts file, you must configure the global value as follows:

import {defineConfig} from 'vite'

export default defineConfig({
    // Your configuration here
    define: {
        global: 'globalThis',
        process: {
            version: 'globalThis'
        }
        // Additional configurations...
    },
})

Getting Started

EpicVault-DappKit consists of 4 primary components designed to simplify the development of dApps:

1. EpicVaultInvoker

The EpicVaultInvoker is a powerful tool for invoking smart contracts on the EpicChain blockchain. It supports test invocations and production-ready contract interactions.

2. EpicVaultParser

The EpicVaultParser is a data parsing tool designed specifically for EpicChain types. It enables developers to parse, validate, and interpret blockchain responses effortlessly.

3. EpicVaultSigner

The EpicVaultSigner provides cryptographic functionalities, such as signing and verifying transactions, encrypting/decrypting data, and managing user credentials.

4. EpicVaultEventListener

EpicVaultEventListener allows developers to listen to real-time events on the EpicChain blockchain, making it easier to build interactive and responsive dApps.

Explore detailed examples in the examples folder.

Features

  • Smart Contract Invocation: Perform read and write operations with ease.
  • Data Parsing: Transform raw blockchain data into human-readable formats.
  • Security: Built-in encryption, signing, and verification utilities.
  • Event Monitoring: Receive live updates from the blockchain for specific events.
  • Developer-Friendly: Simple API design with extensive documentation.

Quick Example

Here’s a quick example of how to use EpicVault-DappKit:

import { EpicVaultInvoker, EpicVaultParser, TypeChecker } from '@epicchain/epicvault-dappkit'

const invoker = await EpicVaultInvoker.init({
    rpcAddress: EpicVaultInvoker.TESTNET,
})

const testInvokeResult = await invoker.testInvoke({
    invocations: [
        {
            scriptHash: '0x309b6b2e0538fe4095ecc48e81bb4735388432b5',
            operation: 'getMetaData',
            args: [
                {
                    type: 'Hash160',
                    value: '0x6dc3bff7b2e6061f3cad5744edf307c14823328e'
                }
            ]
        }
    ],
})

console.log(`Invocation state returned: ${testInvokeResult.state}`)
console.log(`Estimated GAS consumed on invoke: ${testInvokeResult.epicpulseconsumed} GAS`) // Using testInvoke ensures zero GAS consumption, unlike invokeFunction.
console.log(`Dapp method returned a map: ${TypeChecker.isStackTypeMap(testInvokeResult.stack[0])}`)
console.log(`Dapp method data returned: ${JSON.stringify(EpicVaultParser.parseRpcResponse(testInvokeResult.stack[0]), null, 2)}`)

Advanced Usage

For advanced developers, EpicVault-DappKit provides customization options, allowing you to:

  • Modify RPC configurations for specific environments.
  • Handle complex data structures using EpicVaultParser.
  • Integrate seamlessly with WalletConnectSDK for extended functionality.

Example: Custom Event Listener

import { EpicVaultEventListener } from '@epicchain/epicvault-dappkit'

const listener = new EpicVaultEventListener({
    rpcAddress: EpicVaultEventListener.TESTNET,
    eventFilter: {
        contract: '0x123456789abcdef',
        eventName: 'Transfer',
    },
})

listener.on('data', (event) => {
    console.log('New event received:', event)
})

listener.start()

Documentation

For complete documentation, visit the official EpicVault-DappKit repository.

Community Support

Join the EpicChain community to get help, share ideas, and stay updated with the latest developments.