blockchain-compare-avalanche
v1.0.0
Published
npm Package - blockchain-compare-avalanche
Downloads
164
Readme
blockchain-compare-avalanche
Compare NEAR Protocol and Avalanche blockchain metrics including gas prices, transaction speed, features, and account information.
Installation
npm install blockchain-compare-avalanche
Usage
import { compareGasPrices, compareSpeed, compareFeatures, generateFullReport, getNearAccountInfo, } from 'blockchain-compare-avalanche';
Compare Gas Prices
const gas = await compareGasPrices(); console.log(gas);
Compare Transaction Speed
const speed = await compareSpeed(); console.log(speed);
Compare Features
const features = await compareFeatures(); console.log(features);
Generate Full Report
const report = await generateFullReport(); console.log(report);
Get NEAR Account Info
const account = await getNearAccountInfo('alice.near'); console.log(account.accountId, account.balance, account.codeHash);
API
| Function | Returns |
|---|---|
| compareGasPrices() | Promise<GasComparison> |
| compareSpeed() | Promise<SpeedComparison> |
| compareFeatures() | Promise<FeatureComparison> |
| generateFullReport() | Promise<FullReport> |
| getNearAccountInfo(accountId: string) | Promise<{ accountId, balance, codeHash }> |
License
MIT
