WalletScanner
WalletScanner is a JavaScript library that allows you to retrieve transaction data for a given wallet address on various blockchain networks. It uses API keys to interact with the blockchain network APIs and provides a simple way to fetch transaction information.
Installation
To install WalletScanner, use npm:
npm install axios wallet-scanner
Usage
First, require the WalletScanner module and create an instance:
const WalletScanner = require('wallet-scanner');
const walletScanner = new WalletScanner();
Then, you can use the getTransactions
method to fetch transactions for a specific wallet address and blockchain network:
const address = 'your_wallet_address';
const network = 'ethereum'; // or 'tron', 'polygon', 'bsc', 'optimism', 'arbitrum', etc.
const result = await walletScanner.getTransactions(address, network);
console.log(result);
The method returns an object with properties success
, message
, and data
. The success
property indicates whether the request was successful or not. If success
is true
, the data
property contains the result of the transaction list. If success
is false
, the message
property contains an error message.
API Keys
Please note that this library requires API keys to access blockchain network APIs. You need to provide API keys for different blockchain networks by initializing the protectedKeys
object inside the WalletScanner
constructor.
Contributing
Contributions to the WalletScanner library are welcome. Feel free to submit issues and pull requests on the GitHub repository: https://github.com/your-username/wallet-scanner
License
This project is licensed under the MIT License - see the LICENSE.md file for details.