Skip to content

Mzstar123/web3-wallet-insights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Web3 Wallet Insights

A Node.js module for crypto enthusiasts to gain deep insights into their Ethereum wallets. Analyze transactions, calculate portfolio balances, estimate gas fees, and more.

Features

  • Get wallet balance in ETH.
  • Count transactions made by the wallet.
  • Calculate total gas fees spent.

Installation

npm install web3-wallet-insights

## Usage

const WalletInsights = require('web3-wallet-insights');
const insights = new WalletInsights('<WEB3_PROVIDER>', '<ETHERSCAN_API_KEY>');

async function main() {
    const balance = await insights.getBalance('<WALLET_ADDRESS>');
    console.log(`Balance: ${balance} ETH`);

    const transactionsCount = await insights.getTransactionCount('<WALLET_ADDRESS>');
    console.log(`Transactions: ${transactionsCount}`);

    const gasSpent = await insights.getGasSpent('<WALLET_ADDRESS>');
    console.log(`Gas Spent: ${gasSpent} ETH`);
}

main();

About

A Node.js module to provide insights into cryptocurrency wallets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published