crypto-wallet-analyzer
v1.0.2
Published
# What is this?
Maintainers
Readme
crypto-wallet-analyzer
What is this?
Analyze Bitcoin and Ethereum wallet activity, balances, and transaction history.
What it can do:
- Analyzes any BTC or ETH address
- Returns balance, transaction stats, USD value, and activity scores
- Useful for detecting inactive or risky wallets
- Built in pure TypeScript
- No external packages or blockchain SDKs
How to set up:
npm install crypto-wallet-analyzer
How to use:
import { analyzeCryptoWallet } from 'wallet-analyzer';
const profile = await analyzeCryptoWallet("bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kygt080");
console.log(profile);
{ network: 'bitcoin', address: 'bc1qw...', balance: 0.54, usdValue: 17890.23, firstTransaction: '2017-10-19T02:11:45Z', txCount: 14, activityScore: 50, riskScore: 5 }
What types?
type Network = 'bitcoin' | 'ethereum';
interface CryptoWalletProfile { network: Network; address: string; balance: number; usdValue: number; firstTransaction: string; txCount: number; activityScore: number; // 0–100 riskScore: number; // 0–100 }
