0.1.2 • Published 2 months ago

web3-wallet-insights v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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();