Socket
Socket
Sign inDemoInstall

@ethers-ancillary/bsc

Package Overview
Dependencies
47
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ethers-ancillary/bsc

An ethers-compatible provider for BSC using the bscscan.com third-party service.


Version published
Weekly downloads
625
decreased by-46.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Ancillary Package: Binance SmartChain (BSC)

npm version

Experimental: This packages is still in the early stages of the ancillary package template and the library has not been thoroughly tested.

An ancillary package for the Binance Smart Chain (BSC).

Installing and Importing

Node

/home/ricmoo> npm install @ethers-ancillary/bsc
// JavaScript
const { BscscanProvider } = require("@ethers-ancillary/bsc");

// TypeScript
import { BscscanProvider } from "@ethers-ancillary/bsc";

Browser

Include the ESM module (ethers-bscscan-provider.esm.js) in the same folder as the core library (i.e. ethers.esm.js) and import using:

<script type="module">
  import { BscscanProvider } from "./bsc.esm.js";
</script>

Application Programming Interface (API)

getDefaultProvider(networkish?)

Create a new default provider connected to networkish, which may be a chain name (i.e. "bsc-mainnet" or "bsc-testnet") or chain ID.

This will create a FallbackProvider, backed by all popular Third-Party BSC services (currently only Bsccsan).

BscscanProvider

The API for this provider is identical to the EtherscanProvider, except uses bscscan.com (which is owned and operated by the same company as Etherscan and has the same underlying API) as its source for the BSC (Binance Smart Chain) network.

See EtherscanProvider.

License

MIT License.

Keywords

FAQs

Last updated on 16 Sep 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc