@skyraptor/bsc-scan
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Node.js BscScan API

version minzipped size downloads Tweet

Node.js package to interact with official BscScan API powered by TypeScript.

Documentation

API reference

Installation

$ yarn add bsc-scan

Usage

import bscscan, { account } from 'bsc-scan'

bscscan.setUrl('https://testnet.bscscan.com')
bscscan.setApiKey('YourApiKeyToken')

const start = async () => {
  try {
    const balance = await account.getBnbBalance('0x765090aB712984081aeE059eA7025C48a4198183')

    console.log(`Your balance is: ${balance}`)
  } catch (err) {
    console.log(err)
  }
}

start()

Readme

Keywords

none

Package Sidebar

Install

npm i @skyraptor/bsc-scan

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

40.3 kB

Total Files

34

Last publish

Collaborators

  • skyraptor